/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Fija */
.navbar {
    background-color: #ffffff;
    height: 80px;
    width: 100%;
    position: fixed; /* Mantiene el menú arriba */
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: #007BFF;
}

/* Menú Desktop */
.menu ul {
    display: flex;
    list-style: none;
}

.menu ul li {
    margin-left: 30px;
}

.menu ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

.menu ul li a:hover {
    color: #007BFF;
}

/* Botón de contacto especial */
.btn-contacto {
    background: #007BFF;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-contacto:hover {
    background: #0056b3 !important;
}

/* Ocultar checkbox y botón de menú por defecto */
#check, .menu-btn {
    display: none;
}

/* --- RESPONSIVO (Móvil) --- */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
        cursor: pointer;
    }

    .menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px;
        transition: 0.3s;
    }

    .menu {
        position: fixed;
        top: 80px;
        left: -100%; /* Escondido */
        background: #fff;
        width: 100%;
        height: 100vh;
        transition: 0.4s;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }

    .menu ul li {
        margin: 20px 0;
    }

    /* Mostrar menú al hacer clic en el botón */
    #check:checked ~ .menu {
        left: 0;
    }
}


/* --------- SECCIÓN HERO --------- */
.hero {
    margin-top: 80px; /* Para que no lo tape el menú fijo */
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1200') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero h1 span { color: #007BFF; }

.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.enfoque {
    font-weight: bold;
    color: #e0e0e0;
}

.cta-whatsapp {
    display: inline-block;
    background: #25D366; /* Color de WhatsApp */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 25px;
    transition: 0.3s;
}

.cta-whatsapp:hover {
    transform: scale(1.05);
    background: #128C7E;
}

/* --- SECCIÓN PROCESO --- */
.proceso-container {
    padding: 80px 5%;
    background: #f9f9f9;
    text-align: center;
}

.proceso-container h2 {
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

.pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.paso {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.numero {
    background: #007BFF;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

/* --- CARACTERÍSTICAS --- */
.caracteristicas {
    padding: 60px 5%;
    text-align: center;
    background: #333;
    color: white;
}

.caracteristicas ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.check-icon {
    color: #007BFF;
    margin-right: 10px;
    font-style: normal;
    font-weight: bold;
}

/* Adaptación para móviles */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}


/* --------- SECCIÓN SERVICIOS --------- */
/* --- DISEÑO DE LAS TARJETAS --- */
.servicio-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    /* Eliminamos el padding de la card para que la imagen ocupe todo el ancho */
    padding: 0; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Asegura que la imagen no se salga de los bordes redondeados */
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #007BFF;
}

/* Imagen de la tarjeta */
.card-image {
    width: 100%;
    height: 180px; /* Altura fija para todas las imágenes */
    background-size: cover;
    background-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 20px; /* Espacio entre la imagen y el contenido */
}

.card-content {
    padding: 0 30px 20px 30px; /* Padding para el contenido de texto */
    flex-grow: 1; /* Permite que el contenido ocupe el espacio disponible */
}

.servicio-num {
    display: block;
    color: #007BFF;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.servicio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.servicio-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lista-check {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.lista-check li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.lista-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
}

/* Contenedor de los botones */
.card-actions {
    display: flex;
    justify-content: space-between; /* Distribuye los botones equitativamente */
    padding: 20px 30px 30px 30px; /* Padding solo para los botones */
    border-top: 1px solid #eee; /* Separador sutil */
    gap: 10px; /* Espacio entre botones */
}

/* Estilos para ambos botones */
.btn-cotizar-servicio,
.btn-ver-mas {
    flex: 1; /* Cada botón ocupa la mitad del espacio disponible */
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Estilos específicos para el botón "Ver más" */
.btn-ver-mas {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-ver-mas:hover {
    background: #e9ecef;
    border-color: #c8c8c8;
}

/* Estilos específicos para el botón "COTIZAR" */
.btn-cotizar-servicio {
    background: #007BFF;
    color: #fff;
    border: 1px solid #007BFF;
}

.btn-cotizar-servicio:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Estilo especial para la card 13 */
.servicio-card.especial {
    background: #333;
    color: #fff;
}
.servicio-card.especial h3, 
.servicio-card.especial p,
.servicio-card.especial .servicio-num {
    color: #fff;
}
.servicio-card.especial .btn-cotizar-servicio {
    background: #007BFF;
    color: #fff;
    border: none;
}
/* El botón "Ver más" en la tarjeta especial se adapta */
.servicio-card.especial .btn-ver-mas {
    background: #555;
    color: #fff;
    border-color: #555;
}
.servicio-card.especial .btn-ver-mas:hover {
    background: #6c757d;
    border-color: #6c757d;
}
.servicio-card.especial .lista-check li {
    color: #ccc;
}
.servicio-card.especial .lista-check li::before {
    color: #25D366; /* El check sigue siendo verde */
}

/* --- RESPONSIVO --- */
/* Los media queries del grid se mantienen del código anterior */
/* Contenedor principal */
.container-servicios {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 800;
}

/* --- EL GRID (Mágico para responsivo) --- */
.servicios-grid {
    display: grid;
    /* Por defecto en móvil: 1 columna */
    grid-template-columns: 1fr; 
    gap: 20px;
}

/* Tablet: 2 columnas */
@media (min-width: 768px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Navegador Web (PC): 3 columnas */
@media (min-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajustes para móviles para evitar que el texto sea muy pequeño */
@media (max-width: 576px) {
    .card-actions {
        flex-direction: column; /* Botones apilados en móviles muy pequeños */
    }
    .btn-cotizar-servicio,
    .btn-ver-mas {
        width: 100%;
    }
}


/* --------- SECCIÓN NOSOTROS --------- */
.nosotros-section {
    padding: 80px 0;
    background-color: #333; /* Fondo solicitado */
    color: #ffffff;
}

.container-nosotros {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title-light {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nosotros-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.intro-text strong {
    color: #007BFF;
}

/* Misión y Visión */
.mision-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border-top: 4px solid #007BFF;
    transition: 0.3s;
}

.mv-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mv-card h3 {
    color: #007BFF;
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mv-card p {
    line-height: 1.6;
    color: #eee;
}

/* Valores */
.valores-container {
    text-align: center;
}

.valores-container h3 {
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.valor-item {
    background: #444;
    padding: 20px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    border: 1px solid #555;
}

.valor-item span {
    font-size: 1.2rem;
}

.valor-item:hover {
    border-color: #007BFF;
    transform: scale(1.05);
    background: #4a4a4a;
}

/* --- RESPONSIVO --- */
@media (min-width: 768px) {
    .mision-vision-grid {
        grid-template-columns: 1fr 1fr; /* Dos columnas en PC */
    }
}


/* --------- SECCIÓN CONTACTO --------- */
.contacto-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.container-contacto {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Columna de información */
.contacto-info h3, .contacto-operativa h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1a1a1a;
    border-bottom: 3px solid #007BFF;
    display: inline-block;
    padding-bottom: 5px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contacto-item .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    background: #f0f7ff;
    padding: 10px;
    border-radius: 8px;
}

.contacto-item a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.contacto-item a:hover {
    text-decoration: underline;
}

/* Tarjeta de Horarios */
.horarios-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #333;
}

.horarios-card p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #444;
}

.horarios-card span {
    font-weight: bold;
    color: #1a1a1a;
}

.nota {
    font-style: italic;
    font-size: 0.9rem !important;
    color: #777 !important;
    margin-top: 15px;
}

/* Enlaces Legales */
.footer-links {
    margin-top: 30px;
}

.aviso-privacidad {
    color: #999;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

.aviso-privacidad:hover {
    color: #007BFF;
}

/* Footer Simple */
.main-footer {
    text-align: center;
    padding: 30px;
    background: #1a1a1a;
    color: #888;
    font-size: 0.85rem;
}

/* --- RESPONSIVO --- */
@media (min-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1.2fr 0.8fr; /* Dos columnas en PC */
        gap: 60px;
    }
}






/* --- MODAL MEJORADO --- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0; /* Quitamos padding para manejarlo por secciones */
    border-radius: 20px;
    width: 95%;
    max-width: 850px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.4s ease-out;
    overflow: hidden;
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cabecera del Modal */
.modal-header {
    background: #1a1a1a;
    color: white;
    padding: 40px;
    position: relative;
}

.modal-header h2 {
    font-size: 2rem;
    margin: 0;
    color: #007BFF;
}

.modal-header p {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Cuerpo del Modal */
.modal-body-content {
    padding: 40px;
}

/* Grid para las listas */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.info-column h4 {
    color: #333;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-column h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #007BFF;
    display: inline-block;
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    background: #f8f9fa;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
    border-left: 3px solid #dee2e6;
    transition: 0.3s;
}

.modal-list li:hover {
    border-left-color: #007BFF;
    background: #f0f7ff;
    transform: translateX(5px);
}

/* Botón de cierre */
.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.close-modal:hover { background: #ff4d4d; transform: rotate(90deg); }

/* Botón de acción */
.btn-modal-cotizar {
    display: block;
    width: 100%;
    background: #007BFF;
    color: white;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.btn-modal-cotizar:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .modal-header { padding: 30px; }
    .modal-body-content { padding: 25px; }
}










/* --- BOTÓN FLOTANTE WHATSAPP --- */
.btn-wa-float {
    position: fixed;
    bottom: 25px; /* Distancia desde abajo */
    right: 25px;  /* Distancia desde la derecha */
    background-color: #25d366; /* Verde oficial WhatsApp */
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000; /* Siempre por encima de todo */
    transition: all 0.3s ease;
}

.btn-wa-float:hover {
    transform: scale(1.08); /* Crece un poquito al pasar el mouse */
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.wa-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-text {
    font-size: 0.95rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.wa-icon {
    width: 30px;
    height: 30px;
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 480px) {
    .wa-text {
        display: none; /* Ocultamos el texto en pantallas muy pequeñas */
    }
    
    .btn-wa-float {
        padding: 12px;
        border-radius: 50%; /* Se vuelve un círculo */
        bottom: 20px;
        right: 20px;
    }
    
    .wa-icon {
        width: 35px;
        height: 35px;
    }
}