/* =========================================
   1. RESET DE ESTILOS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --color-msj: #b3b3b3;
    --color-btn: #d6d6d6;
    --bg-navbar: #ffffff;
    --text-color: #4a4f54;   
    --color-bocina: #0F172A;
    --color-secondary: #032c85;
    --accent-color2: #14b8a5;
    --accent-color: #059281;
    --color-light: #16A34A;
    --color-facebook: #1877F2;
    --color-instagram: #E4405F;
    --color-whatsapp: #25D366;
    --color-linkedin: #0077B5; 
    --color-ubicacion: #FF0000;
    --color-telefono: #34B7F1;
    --azul-tecno: #0056b3;
    --gris-fondo: #f4f4f4; /* Actualizado a f4f4f4 */
    --blanco: #ffffff;
    --negro-puro: #000000; /* Color solicitado */
    --transition: 0.3s ease;
}

body {
    background: #f8fafc;
    color: var(--text-color);
}

/* =========================================
   2. BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================= */
.navbar {
    width: 100%;
    background: var(--bg-navbar);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
  width: 200px;
  margin-right: 5px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 1px;
}

.links {
    display: flex;
    gap: 30px;
}

.links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* =========================================
   3. BOTÓN HAMBURGUESA (MÓVIL)
   ========================================= */
.hamburger {
    width: 30px;
    height: 20px;
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex; 
    }
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* =========================================
    4. DISEÑO RESPONSIVE (NAVBAR)
   ========================================= */
@media (max-width: 750px) {
    .navbar {
        padding: 15px 25px;
        flex-wrap: wrap; 
        top: auto;
    }

    .hamburger {
        display: flex;
    }

    .links {
        position: relative; 
        top: 0;
        background: var(--bg-navbar);
        width: 100%;
        display: none; 
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        gap: 25px;
        border-top: none; 
        box-shadow: none;
        transition: none; 
    }

    .links.show {
        display: flex; 
        width: 100%;
        order: 3; 
    }
}

/* =========================================
   5. ANIMACIONES
   ========================================= */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
    6. SECCIÓN SLIDER
   ========================================= */
.main-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    overflow: hidden;
    background-color: #000; 
    touch-action: pan-y; /* NUEVO: Permite scroll vertical y captura gestos horizontales */
}

.slider-container { 
    position: relative;
    height: 100%; 
    width: 100%; 
}

.slide {
    display: flex; 
    height: 100%;
    width: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
    color: #ffffff;
}

@media (max-width: 900px) {
    .main-slider { height: auto; overflow-y: visible; }
    .slide { height: auto; padding: 40px 0; position: relative; display: none; }
    .slide.active { display: flex; }
    .slide-content { grid-template-columns: 1fr; text-align: center; padding: 20px 5%; }
    .info-box { display: flex; flex-direction: column; align-items: center; }
    .info-box h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); } /* NUEVO: Adaptativo en móvil */
    .info-box p { margin: 0 auto 30px auto; font-size: clamp(0.9rem, 4vw, 1.1rem); } /* NUEVO: Adaptativo */
    .btn-group { justify-content: center; }
    .image-box { order: 2; width: 100%; display: flex; justify-content: center; }
    .image-box img { max-width: 80%; margin-top: 20px; }
}

.slide.active .info-box { animation: fadeInUp 1s ease forwards; }
.info-box h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 20px; } /* NUEVO: Adaptativo */
.info-box h1 span { display: block; opacity: 0.8; }
.info-box p { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 30px; max-width: 500px; } /* NUEVO: Adaptativo */

.btn-group { display: flex; gap: 15px; }
.btn-primary, .btn-secondary, .btn1-primary, .btn2-primary, .btn3-primary {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.btn1-primary { background: #ffffff; color: var(--color-secondary); }
.btn1-primary:hover { background: var(--color-secondary); color: #fff; transform: translateY(-3px); }
.btn2-primary { background: #ffffff; color: var(--accent-color); }
.btn2-primary:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }
.btn3-primary { background: #ffffff; color: var(--color-light); }
.btn3-primary:hover { background: var(--color-light); color: #fff; transform: translateY(-3px); }
.btn-primary { background: #ffffff; color: var(--color-bocina); }
.btn-primary:hover { background: var(--color-bocina); color: #fff; transform: translateY(-3px); }
.btn-secondary { border: 2px solid rgba(255,255,255,0.5); color: #ffffff; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.image-box img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 1s ease;
}
.slide.active .image-box img { transform: scale(1.05); }

/* =========================================
   7. INDICADORES (SLIDER)
   ========================================= */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
/* =========================================
   8. SERVICIOS (Optimizado)
   ========================================= */

.services-section {
  width: 100%;
  min-height: 100vh; /* ocupa toda la pantalla si quieres */
  background-color: #ffffff; /* Un gris claro limpio */; /* rojo ejemplo */
  padding: 40px 20px; /* espacio interno */
  display: flex;
  justify-content: center; /* centra contenido */
  align-items: flex-start;
  box-sizing: border-box;
}

.services-wrapper {
    display: flex;
    flex-direction: column; /* Cambiado a columna para centrar el título sobre las cartas */
    align-items: center; 
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 40px;
}

/* Contenedor de los títulos */
.services-content {
    width: 100%;
    text-align: center; /* Centra el texto del encabezado */
    margin-top: 50px; /* Esto empuja el título hacia abajo */
    margin-bottom: 20px; /* Esto lo separa de las cartas */
    
}

/* CONTENEDOR DE CARTAS: Centrado absoluto */
.services-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Permite que bajen en móviles */
    justify-content: center; /* ESTO ALINEA LAS CARTAS AL CENTRO */
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.service-card {
    background-color: #f4f4f4; /* Asegúrate de definir var(--card-bg) o usa #fff */
    border-radius: 12px;
    padding: 40px 25px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 6px solid #14b8a5; /* Color Turquesa Tecnopromedica */
    transition: transform 0.3s ease;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}



.icon-circle {
    width: 90px;
    height: 90px;
    background-color: #14b8a5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 35px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;

    line-height: 1.6;
    margin: 0;
}

/* Responsividad */
@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        width: 100%;
        max-width: 100%;
    }

    .encabezado-beneficios {
        font-size: 28px;
    }
}
/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    
    .custom-heading {
        font-size: 35px;
    }
}