:root {
    --primary: #1a3a6c;
    --secondary: #00389a;
    --accent: #2a9d8f;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
}

body {
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header y Navegación */
header {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}



.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('../images/camionetas/camion1.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #0c28a4;
    color: rgb(255, 255, 255);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    color: rgb(0, 0, 0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Servicios Section */
.servicios {
    padding: 100px 5%;
    background-color: var(--light);

}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
  
}



.servicio-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.servicio-content {
    padding: 1.5rem;
}

.servicio-content h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.servicio-content p {
    color: var(--gray);
    text-align: center;
    margin-bottom: 1.5rem;
}

.servicio-highlight {
    text-align: center;
    background-color: #e9ecef;
    padding: 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    color: var(--primary);
}

/* Clientes Section */
.clientes {
    padding: 80px 5%;
    background-color: white;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cliente-logo {
    background-color: var(--light);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.cliente-logo:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Proceso Section */
.proceso {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
}

.proceso-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.proceso-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.proceso-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.proceso-highlight {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Contacto Section */
.contacto {
    padding: 100px 5%;
    background-color: var(--light);
}

.contacto-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contacto-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contacto-detail i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 1rem;
    width: 30px;
}

.contacto-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #14213d;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 5% 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
    bottom: -8px;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .logo {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .logo {
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .logo {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}


@media (max-width: 324px) and (max-height: 665px) {
    .logo {
        text-align: center;
    }


    .hero {
        height: 80vh;
        padding: 1rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }


    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
        background-color: white;
        text-align: left;
        padding: 1.2rem;
        gap: 0;
        overflow-y: auto;
        transition: left 0.25s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1100;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.7rem 1rem;
        font-size: 1.05rem;
        border-radius: 6px;
    }

    .nav-menu a:hover {
        background-color: rgba(0, 56, 154, 0.06);
        color: var(--secondary);
    }
}

@media (max-width: 992px) {

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--color-primary-dark);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
        text-align: center;
    }


    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu a {
        color: var(--color-text-light);
        font-size: 1.1em;
        padding: 10px 0;
        display: block;
    }


    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 25px;
        height: 25px;
        cursor: pointer;
        padding: 5px;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--color-primary-dark);
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }


    .nav-container {
        padding: 0 5%;
    }

    .logo img {
        height: 50px !important;
        width: 50px !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

:root {
    --color-primary-dark: #002e63;
    --color-primary: #004c99;
    --color-secondary: #007bff;
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
}


@media (max-width: 992px) {


    header {
        padding: 5px 0;
    }

    .nav-container {
        padding: 0 5%;

        position: relative;
    }

    .logo img {
        height: 40px !important;
        width: 40px !important;
    }


    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1100;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--color-primary-dark);
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }


    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-primary-dark);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        color: var(--color-text-light);
        font-size: 1.1em;
        padding: 15px 20px;
        display: block;
        width: 100%;
    }


    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* ===== ESTILOS PARA FORMULARIO WHATSAPP ===== */

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #25D366;
}

.notification.error {
    background: #e74c3c;
}

/* Botón de WhatsApp mejorado */
.whatsapp-btn {
    background: #25D366 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3) !important;
}

/* Mensajes del formulario */
#form-messages {
    margin-bottom: 20px;
}

.form-message {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mejoras para los inputs */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 56, 154, 0.1);
}

/* Estado de carga del botón */
.btn-loading {
    display: none;
}

.btn-loading.show {
    display: inline-block;
}

.btn-text.hide {
    display: none;
}

/* Mejoras responsive para el formulario */
@media (max-width: 768px) {
    .contacto-form {
        padding: 1.5rem !important;
    }

    .whatsapp-btn {
        padding: 15px !important;
        font-size: 1rem !important;
    }
}

/* Efectos de hover para tarjetas de servicio mejorados */
.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Mejoras para la sección de contacto */
.contacto-detail {
    transition: transform 0.3s ease;
}

.contacto-detail:hover {
    transform: translateX(5px);
}

.contacto-detail i {
    transition: color 0.3s ease;
}

.contacto-detail:hover i {
    color: #000000;
}