* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffd034;
    --secondary-color: rgba(0, 0, 0, 0.8);
    --text-dark: #2b2d42;
    --text-light: #8d99ae;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

.pagination {
    display: flex;
    gap: 10px;
    margin: 20px auto;
    justify-content: center;
}

.pagination button {
    padding: 8px 12px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: default;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* .logo-container {
   height: 30px; 
} 

.logo {
   height: 30px; 
}
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* .container h3 {
    font-weight: bold;
} */

/* Header */
.header-top {
    position: relative;
    z-index: 10;
    
    background-color:rgba(51 51 51);
        padding: 10px 0;
        font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.info-item i {
    color: var(--primary-color);
}


    

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

header.header {
        z-index: 100;
    position: absolute;
    width: -webkit-fill-available;
}

/* Navbar */
.navbar {
    display: block;
    /* position: absolute; */
    /* top: 42px; */
    /* altura del header-top */
    left: 0;
    width: 100%;
    z-index: 50;
    /* background: rgba(0, 0, 0, 0.3); */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 80px;
    /* mismo alto que el navbar */
    width: auto;
    display: block;
    /* evita espacio extraño debajo */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-contacto {
    background-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
}

.btn-contacto:hover {
    background-color: #e6d539b0;
    color: var(--white) !important;
    transition: 0.3s;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-content .dot {
    color: var(--primary-color);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot-nav {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot-nav.active {
    background-color: var(--primary-color);
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    padding: 30px 0;
}

.cta-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-banner h3 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
}

.btn-cta {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.3s;
}

.btn-cta:hover {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.service-card {
    min-height: 400px;
    height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image {
    width: 100%;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    background-color: var(--white);
    padding: 60px;
    flex-direction: column;
    align-items: flex-start;
}

.service-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* Sectors Section */
.sectors {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--secondary-color);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.sector-item {
    background-color: var(--white);
    /* padding: 30px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

.sector-item:hover {
    transform: translateY(-5px);
}

.sector-item img {
    max-width: 100%;
    height: auto;
    /* filter: grayscale(100%); */
    transition: filter 0.3s;
    border-radius: 10px;
}

.sector-item:hover img {
    filter: grayscale(0%);
}

/* Timeline Section */
.timeline {
    padding: 80px 0;
    background-color: var(--white);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 40px;
    width: 2px;
    height: calc(100% + 60px);
    background-color: var(--primary-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.btn-secondary {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #e6d539b0;
}

/* Works Section */
.works {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.works-filter {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    min-width: 200px;
    padding: 10px 30px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
}

/* Certification Section */
.certification {
    padding: 80px 0;
    background-color: var(--white);
}

.cert-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.cert-image {
    flex: 1;
}

.cert-image img {
    width: 100%;
    max-width: 400px;
}

.cert-text {
    flex: 1;
}

.cert-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cert-text p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}
.clients {
    padding: 80px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.client-slide-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.client-slide-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: clientScroll 22s linear infinite;
}

.client-slide-item {
    flex: 0 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-slide-item img {
    width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
    mix-blend-mode: multiply;   /* <-- MAGIA */
}

.client-slide-item:hover img {
    filter: grayscale(0%);
}

@keyframes clientScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Why Us Section */
.why-us {
    padding: 80px 0;
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-item {
    text-align: center;
    padding: 30px;
}

.why-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.why-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-height: 85px;
    /* límite del tamaño */
    width: auto;
    /* mantiene proporción */
    display: block;
    /* evita espacios raros */
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li i {
    color: var(--primary-color);
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}




/* ===== Contacto Styles ===== */
.ctc-container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.ctc-text-primary {
    color: #e9b100;
}

.ctc-text-muted {
    color: #777;
}

.ctc-page-header {
    position: relative;
    background: url('../img/contacto-bg.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 200px 0 80px;
}

.ctc-page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ctc-page-header h1,
.ctc-page-header p {
    position: relative;
    z-index: 2;
}

.ctc-section {
    padding: 80px 0;
}

.ctc-section-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.ctc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.ctc-form-group {
    margin-bottom: 20px;
}

.ctc-form-group input,
.ctc-form-group select,
.ctc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.ctc-btn {
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.ctc-btn-primary {
    background: #e9b100;
    color: #fff;
    padding: 12px 30px;
}

.ctc-btn-primary:hover {
    background: #d3a200;
}

.ctc-contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 20px;
}

.ctc-contact-info-icon {
    font-size: 22px;
    color: #e9b100;
    margin-right: 15px;
}

.ctc-social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.ctc-social-link {
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
}

.ctc-social-link:hover {
    color: #e9b100;
}

.ctc-map-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ctc-map-placeholder {
    width: 100%;
    height: 400px;
    /* o la altura que quieras */
}

.ctc-map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}



.ctc-whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25d366;
    color: white;
    padding: 12px 14px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.ctc-whatsapp-button:hover {
    background: #1ebe5b;
}

/* Responsive */
@media (max-width: 768px) {
    .ctc-contact-grid {
        grid-template-columns: 1fr;
    }
}


/* Responsive */
@media (max-width: 968px) {

      .header-top {
        display: none;
    }

    .navbar {
        position: fixed;
        top: 0px;
        
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top:  141px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .slide-content h1 {
        font-size: 3rem;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .service-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

   .service-card {
        grid-column: 1 / -1;
    }

    /* BLOQUE 1 — (texto, imagen) → (imagen, texto) */
    .service-card:nth-child(1) { order: 2; }
    .service-card:nth-child(2) { order: 1; }

    /* BLOQUE 2 — (imagen, texto) → ya está en orden (imagen, texto) */
    .service-card:nth-child(3) { order: 3; }
    .service-card:nth-child(4) { order: 4; }

    /* BLOQUE 3 — (texto, imagen) → (imagen, texto) */
    .service-card:nth-child(5) { order: 6; }
    .service-card:nth-child(6) { order: 5; }

    /* BLOQUE 4 — (imagen, texto) → ya está en orden */
    .service-card:nth-child(7) { order: 7; }
    .service-card:nth-child(8) { order: 8; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-content {
        flex-direction: column;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-banner .container {
        flex-direction: column;
        gap: 20px;
    }
}




/* ==========================================================
   ESTILOS PÁGINA "NOSOTROS"
   ========================================================== */

/* --- HERO --- */
.hero-nosotros {
    position: relative;
    width: 100%;
    height: 96vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nosotros .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%);
}

.hero-nosotros .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-nosotros .hero-text {
    position: absolute;
    color: var(--white);
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    
}

.hero-nosotros .hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-nosotros .hero-text p {
    font-size: 1.2rem;
    font-weight: 300;
    
    
}

/* --- QUIÉNES SOMOS --- */
.nosotros-descripcion {
    padding: 80px 0;
    background-color: var(--bg-light);
    /* text-align: center; */
    text-align: justify
}

.nosotros-descripcion .section-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.nosotros-descripcion p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- MISIÓN Y VISIÓN --- */
.mision-vision {
    padding: 80px 0;
    background-color: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.mv-item {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.mv-item:hover {
    transform: translateY(-8px);
}

.mv-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mv-item h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mv-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* --- VALORES --- */
.valores {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.valores .section-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.valor-item {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-6px);
}

.valor-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.valor-item h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.valor-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}


/* ===== NAV MENU MOBILE (corregido) ===== */
@media (max-width: 768px) {


    .hero-nosotros .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-nosotros .hero-text p {
        font-size: 1rem;
    }

    .mv-item,
    .valor-item {
        padding: 30px 20px;
    }

    

    .nav-menu {
    
        position: fixed;
        left: -100%;
        top: 0px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        padding: 30px 0;
    }
   

    .nav-menu.active {
        display: flex;
        /* Se despliega hacia abajo */
    }

    /* Botón hamburguesa por encima del menú */
    #hamburger {
        position: relative;
        z-index: 1000;
    }
 }

@media (max-width: 576px) {

    
    
    .header-info {
        flex-direction: column;
        gap: 10px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        gap: 20px;
    }

    .timeline-item::before {
        display: none;
    }
}

/* ===============================
   HERO RESPONSIVE (solo hero-slider)
   =============================== */
@media (max-width: 768px) {

    /* Reducir padding y centrar mejor */
    .slide-content {
        max-width: 90%;
        padding: 0 10px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* H1: siempre en una sola línea */
    .slide-content h1 {
        font-size: 2.2rem;
        white-space: nowrap;     /* <-- esto evita que se parta */
        line-height: 1.1;
    }

    /* H2 más chico */
    .slide-content h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    /* P evita desbordarse y se hace más legible */
    .slide-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 100%;
        word-break: break-word;  /* <-- evita que se salga */
        overflow-wrap: break-word;
    }

    /* La imagen del slide más oscura para mayor contraste */
    .slide img {
        filter: brightness(0.45);
    }
}

@media (max-width: 480px) {

    .slide-content {
        max-width: 95%;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }
}


/* =========================================
   DESKTOP (default)
   ========================================= */

/* Desktop: navbar normal (NO fixed) */
.navbar {
    position: relative;
    width: 100%;
    z-index: 50;
}

/* Desktop: menú horizontal */
@media (min-width: 769px) {
    .nav-menu {
        position: static;
        transform: none;
        display: flex;
        flex-direction: row;
        gap: 40px;
        background: none;
        padding: 0;
    }

    .hamburger {
        display: none;
    }
}

/* =========================================
   MOBILE (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* Ocultar header-top en mobile */
    .header-top {
        display: none;
    }

    /* Navbar fijo SOLO en mobile */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        /*background: rgba(0,0,0,0.35);  ajustá si querés */
        
    }

    /* Para que el contenido no quede tapado */
    body {
        padding-top: 0px; /* ajustá si tu navbar es más grande */
    }

    /* Menú mobile */
    .nav-menu {
        position: absolute;
        top: 100%; /* queda pegado al navbar automáticamente */
        right: 0;
        width: 100%;
        background: rgba(0,0,0,0.35);
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
        transform: translateY(-130%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    /* Hamburguesa visible en mobile */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 10000;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background: var(--white);
    }

    /* Links mobile */
    .nav-menu li a {
        color: var(--white);
        font-size: 1.2rem;
    }
}

/* Desktop – resetea el padding que usa solo mobile */
@media (min-width: 769px) {
    .header {
        padding-top: 0 !important;
    }
}


/* Fuerza el blur del navbar en MOBILE */
@media (max-width: 968px) {
    .navbar {
        /* background: rgba(0, 0, 0, 0.35) !important; */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    .header-br {
    display: none;
    }
}


/* ============================
   FIX NAVBAR MOBILE (unificado)
   ============================ */

@media (max-width: 968px) {
    
     .header-br {
    display: none;
     }

    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        z-index: 9999 !important;
        background: rgba(0, 0, 0, 0.35) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.18) !important;
    }

    .nav-menu {
        top: 100% !important;
        z-index: 999 !important;
    }

    .hero-slider,
    .hero-nosotros {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-height: 800px) and (min-width: 1024px) {
    .slide-content h1 {
        font-size: 4rem;
        margin-top: 80px;
    }

    .slide-content h2 {
        font-size: 2rem;
        
    }

    .dot-nav {
    width: 8px;
    height: 8px;}

}

