/* --- ESTILOS HERO SECTION --- */
.hero-section {
    width: 100%;
    height: 190px; /* Ajustable según necesidad */
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    background-color: #ffffff;
    padding: 20px 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 100px;
    margin-bottom: 30px;
}

.hero-content h1 {
    margin: 0;
    font-family: 'Playfair Display', serif; /* Tipografía elegante para el título */
    font-size: 48px;
    color: #1a2b3c;
    font-weight: 400;
    
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 992px) {
    .nav-list {
        justify-content: flex-start; /* Alinea al inicio para scroll lateral */
        padding-left: 10px;
    }
    
    .hero-content {
        padding: 15px 40px;
        margin-top: 140px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 200px;
        
    }
    
    .hero-content {
        width: 80%;
        text-align: center;
        padding: 10px 20px;
        margin-top: 160px;
    }
}

:root {
            --text-color: #333;
            --accent-color: #000;
            --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        

        /* Contenedor Principal */
        .privilege-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
            align-items: flex-start;
            margin-top: 60px;
            
        }

        /* Columna de Imagen */
        .image-wrapper {
            flex: 1 1 500px; /* Crece y se encoge, base de 500px */
            position: relative;
            line-height: 0;
        }

        .main-img {
            width: 100%;
            height: auto;
            display: block;
            
        }

        /* El Logo Flotante */
        .logo-overlay {
            position: absolute;
            top: 20px;
            width: 120px; /* Ajusta el tamaño de tu logo aquí */
            background-color: rgba(255, 255, 255, 0.8); /* Fondo semi-transparente para que resalte */
            padding: 10px;
           
        }

        /* Columna de Texto */
        .content-wrapper {
            flex: 1 1 400px;
        }

        h1 {
            font-size: 2.5rem;
            font-family: serif; /* Para imitar el estilo elegante de la foto */
            margin-top: 0;
            line-height: 1.1;
            color: var(--accent-color);
        }

        p {
            line-height: 1.6;
            font-size: 0.95rem;
            margin-bottom: 20px;
        }

        ul {
            list-style: none;
            padding: 0;
        }

        li {
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
            font-size: 0.9rem;
        }

      
       

        /* Responsividad para móviles */
        @media (max-width: 768px) {
            h1 {
                font-size: 1.8rem;
            }
            .privilege-container {
                gap: 20px;
            }
            .logo-overlay {
                width: 80px;
                top: 10px;
                left: 10px;
            }
        }

:root {
            --primary-color: #000;
            --text-gray: #444;
            --border-white: rgba(255, 255, 255, 0.8);
        }

       

        /* --- CONTENEDOR PRINCIPAL (GRID / SLIDER) --- */
        .services-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            max-width: 1100px;
            margin: 0 auto;
            margin-top: 60px;
            margin-bottom: 50px;
        }

        .service-card {
            display: flex;
            flex-direction: column;
        }

        /* --- IMAGEN CON MARCO Y SOMBRA --- */
        .img-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000;
            overflow: hidden;
        }

        .img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7; /* Oscurece la imagen para resaltar el texto */
            display: block;
        }

        .white-frame {
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            border: 1px solid var(--border-white);
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        .white-frame h2 {
            color: white;
            text-transform: uppercase;
            text-align: center;
            font-weight: bold;
            font-size: 1.4rem;
            letter-spacing: 2px;
            margin: 0;
        }

        /* --- TEXTO CON EFECTO DE GRADIENTE --- */
        .text-box {
            padding: 15px 0;
            position: relative;
        }

        .collapsible-content {
            max-height: 80px; /* Altura de la vista previa */
            overflow: hidden;
            transition: max-height 0.5s ease;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--text-gray);
        }

        /* El sombreado (degradado) cuando está cerrado */
        .collapsible-content.closed::after {
            content: "";
            position: absolute;
            bottom: 40px; /* Ajustado para que el degradado termine sobre el botón */
            left: 0;
            width: 100%;
            height: 50px;
            background: linear-gradient(transparent, white);
            pointer-events: none;
        }

        .collapsible-content.open {
            max-height: 1000px; /* Suficiente para mostrar todo */
        }

        /* --- BOTÓN LEER MÁS --- */
        .toggle-btn {
            background: none;
            border: none;
            color: #1a1a1a;
            font-weight: bold;
            font-size: 0.9rem;
            cursor: pointer;
            padding: 10px 0;
            display: inline-flex;
            align-items: center;
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        .toggle-btn .arrow {
            margin-left: 5px;
            transition: transform 0.3s ease;
            display: inline-block;
        }

        .toggle-btn.active .arrow {
            transform: rotate(180deg); /* La flecha gira hacia arriba */
        }

        /* --- RESPONSIVO Y SLIDER MÓVIL --- */
        @media (max-width: 768px) {
            .services-container {
                display: flex;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                gap: 15px;
                padding-bottom: 20px;
            }

            .service-card {
                min-width: 85%;
                scroll-snap-align: center;
            }

            .services-container::-webkit-scrollbar {
                display: none; /* Oculta scrollbar */
            }

            .white-frame h2 {
                font-size: 1.1rem;
            }
        }