/* ========================================
   VARIABLES DE COLOR
   ======================================== */
:root {
    --azul-corporativo: #2B7A9B;
    --azul-oscuro: #1A4A5E;
    --naranja-energetico: #F39C12;
    --verde-hover: #10b981;
    --gris-oscuro: #2C3E50;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --negro-suave: #1a1a1a;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gris-oscuro);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}


/* ========================================
   HEADER FLOTANTE
   ======================================== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1400px;
    z-index: 1000;
    transition: transform 0.3s ease, top 0.3s ease;
}

.header.hide {
    transform: translateX(-50%) translateY(-150%);
}

.header.show {
    transform: translateX(-50%) translateY(0);
}

.nav-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - TU LOGO NORMAL */
.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 200px; /* Tu tamaño original */
    width: auto;
}

/* Menú */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--azul-corporativo);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azul-corporativo);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Botones derecha */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Botón idioma */
.btn-lang {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-lang:hover {
    color: var(--azul-corporativo);
}

/* CTA Button oscuro */
.btn-cta-dark {
    background: #1a1a1a;
    color: white;
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-cta-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        width: calc(100% - 40px);
        top: 15px;
    }
    
    .nav-container {
        padding: 0 1.5rem;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .header {
        width: calc(100% - 20px);
        top: 10px;
    }
    
    .nav-container {
    height: auto; /* Que se ajuste al logo */
    padding: 1rem 2rem; /* Dale padding vertical */
}
    
    .logo-img {
        height: 35px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ========================================
   HERO PRINCIPAL
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay oscuro */
}

.hero .container {
    max-width: 1400px;
    margin: 0;
    padding-left: 5rem; /* Padding solo a la izquierda */
    display: flex;
    justify-content: flex-start; /* Alinea todo a la izquierda */
}

.hero-content {
    max-width: 650px;
    text-align: left; /* Asegura alineación izquierda */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: left; /* Forzar izquierda */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    text-align: left; /* Forzar izquierda */
}

.hero-cta {
    display: inline-block;
    background: var(--naranja-energetico);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.hero-cta:hover {
    background: #ff8800;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 6rem 0 3rem;
    }
    
    .hero .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--naranja-energetico);
    color: var(--blanco);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--azul-corporativo);
    border: 2px solid var(--azul-corporativo);
}

.btn-outline:hover {
    background: var(--azul-corporativo);
    color: var(--blanco);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.3rem 3rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* ========================================
   CONTAINERS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0.8;
}

/* ========================================
   QUÉ ES XANAEL (SIN NÚMEROS, HOVER VERDE)
   ======================================== */
.what-is {
    background: var(--blanco);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.card {
    background: var(--gris-claro);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--verde-hover);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 1.05rem;
    color: var(--gris-oscuro);
    line-height: 1.7;
}

/* ========================================
   CÓMO FUNCIONA (4 EN LÍNEA)
   ======================================== */
.how-it-works {
    background: var(--gris-claro);
}

.process-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-corporativo), var(--azul-oscuro));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blanco);
}

.process-step h3 {
    font-size: 1.2rem;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--gris-oscuro);
    line-height: 1.6;
}

/* ========================================
   DE REACTIVO A PREVENTIVO
   ======================================== */

.reactive-preventive {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.comparison-card {
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.comparison-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-card h3 {
    font-size: 1.4rem;
    color: var(--azul-oscuro);
    padding: 1.5rem 1.5rem 0.8rem;
    font-weight: 700;
}

.comparison-list {
    list-style: none;
    padding: 0 1.5rem 1.8rem;
}

.comparison-list li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    color: var(--gris-oscuro);
    line-height: 1.5;
    font-size: 0.95rem;
}

.comparison-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-list.negative li::before {
    background: #e74c3c;
    content: '✕';
    color: var(--blanco);
}

.comparison-list.positive li::before {
    background: var(--verde-hover);
    content: '✓';
    color: var(--blanco);
}

/* Responsive */
@media (max-width: 968px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-image {
        height: 200px;
    }
}

/* ========================================
   SECTORES SLIDER - FORMATO BIGBELLY
   ======================================== */
.sectores-xanael {
    padding: 6rem 0;
    background: #f8f9fa; /* TU COLOR ORIGINAL */
}

.section-title {
    font-size: 2.8rem;
    color: var(--azul-oscuro);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0.8;
}

/* Slider Wrapper - CONTENEDOR CON OVERFLOW */
.sectores-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: hidden; /* OCULTAR LO QUE SOBRESALE */
}

/* Slider Container - UNA LÍNEA HORIZONTAL */
.sectores-slider {
    display: flex; /* FLEX para línea horizontal */
    gap: 2rem;
    overflow-x: hidden; /* Sin scroll horizontal visible */
    scroll-behavior: smooth;
    width: 100%; /* Ancho completo */
}

/* Cards - TAMAÑO FIJO */
.sector-card {
    min-width: calc(33.333% - 1.35rem); /* Cada card ocupa 1/3 */
    max-width: calc(33.333% - 1.35rem);
    flex-shrink: 0; /* NO se encogen */
}
.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* FOTO ARRIBA */
.sector-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TEXTO ABAJO */
.sector-content {
    background: white;
    padding: 2rem;
}

.sector-content h3 {
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.sector-content p {
    color: var(--gris-oscuro);
    line-height: 1.7;
    text-align: center;
}

/* FLECHAS LATERALES */
.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--azul-corporativo);
    color: var(--azul-corporativo);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: var(--azul-corporativo);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
    width: 28px;
    height: 28px;
}

.slider-btn-prev {
    left: 10px;
}

.slider-btn-next {
    right: 10px;
}

/* DOTS ABAJO */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--azul-corporativo);
    width: 30px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sector-card {
        min-width: calc(50% - 1rem); /* 2 visibles */
    }
}

@media (max-width: 768px) {
    .sector-card {
        min-width: 100%; /* 1 visible */
    }
    
    .sectores-slider-wrapper {
        padding: 0 60px;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    background: var(--blanco);
    padding: 8rem 2rem;
}

.faq-card {
    background: linear-gradient(135deg, var(--azul-corporativo) 0%, var(--azul-oscuro) 100%);
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(43, 122, 155, 0.3);
}

.faq-card h2 {
    font-size: 3rem;
    color: var(--blanco);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.faq-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 3rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--naranja-energetico);
}

.faq-icon {
    flex-shrink: 0;
    transition: var(--transition-smooth);
    stroke-width: 2;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    transition: max-height 0.5s ease-in;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
    padding-bottom: 1.5rem;
}

/* ========================================
   FOOTER BLANCO CON REDES EN COLOR
   ======================================== */
.footer-white {
    background: var(--blanco);  /* ← CAMBIO: de var(--gris-claro) a var(--blanco) */
    padding: 6rem 2rem 3rem;
    border-top: 1px solid var(--gris-claro);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin: 0 auto 3rem;
}

.footer-cta h3 {
    font-size: 2rem;
    color: var(--azul-oscuro);
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-cta .btn {
    margin-bottom: 3rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    background: var(--gris-claro);
}

.social-linkedin {
    color: #0077B5;
}

.social-instagram {
    color: #E4405F;
}

.social-facebook {
    color: #1877F2;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--gris-claro);
    margin: 3rem 0;
}

.footer-legal {
    font-size: 0.9rem;
    color: var(--gris-oscuro);
    margin-bottom: 1.5rem;
}

.footer-legal a {
    color: var(--gris-oscuro);
}

.footer-legal a:hover {
    color: var(--azul-corporativo);
}

.footer-legal .separator {
    margin: 0 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--gris-oscuro);
    opacity: 0.7;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--azul-oscuro);
    color: var(--blanco);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--naranja-energetico);
    text-decoration: underline;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .logo {
        position: static;
    }
    
    .nav-menu {
        position: fixed;
        top: 122px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 122px);
        background: var(--blanco);
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition-smooth);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: static;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }
    
    .process-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200){
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cards-grid,
    .use-cases,
    .security-grid,
    .process-grid-horizontal {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .top-banner {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* ========================================
   PLAGAS OBJETIVO
   ======================================== */

.plagas-objetivo {
    padding: 8rem 0;
    background: var(--gris-claro);
}

.plagas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.plaga-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.plaga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.plaga-card.active {
    border: 3px solid var(--azul-corporativo);
    transform: translateY(-5px);
}

.plaga-card-inner {
    padding: 3rem 2rem;
    text-align: center;
}

.plaga-card-inner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.plaga-card-inner h3 {
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    font-weight: 700;
}

/* CONTENIDO EXPANDIBLE */
.plaga-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    margin-top: 3rem;
}

.plaga-content.active {
    max-height: 2000px;
    opacity: 1;
}

.plaga-content-inner {
    background: var(--blanco);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.plaga-content-inner > h3 {
    font-size: 2rem;
    color: var(--azul-oscuro);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.especies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.especie {
    padding: 2rem;
    background: var(--gris-claro);
    border-radius: 15px;
    border-left: 4px solid var(--azul-corporativo);
}

.especie h4 {
    font-size: 1.2rem;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    font-weight: 600;
}

.especie h4 span {
    font-style: italic;
    font-weight: 400;
    color: var(--gris-oscuro);
    font-size: 1rem;
}

.especie p {
    color: var(--gris-oscuro);
    line-height: 1.7;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.especie p strong {
    color: var(--azul-corporativo);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .plagas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .especies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .plaga-content-inner {
        padding: 3rem 2rem;
    }
}
/* ========================================
   IMAGEN INTERACTIVA
   ======================================== */

.interactive-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto 0;
    align-items: start;
}

.interactive-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.interactive-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* HOTSPOTS - VERSIÓN CORREGIDA */
.hotspot {
    position: absolute;
    width: 28px;  /* MÁS PEQUEÑO */
    height: 28px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.hotspot-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;  /* MÁS PEQUEÑO */
    height: 20px;
    background: var(--azul-corporativo);  /* AZUL DESDE EL INICIO */
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;  /* TEXTO MÁS PEQUEÑO */
    box-shadow: 0 2px 8px rgba(43, 122, 155, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.hotspot:hover .hotspot-number {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 15px rgba(43, 122, 155, 0.5);
}

.hotspot.active .hotspot-number {
    background: var(--naranja-energetico);  /* NARANJA CUANDO ACTIVO */
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.6);
}

/* PULSO ANIMADO - AZUL */
.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--azul-corporativo);  /* AZUL */
    opacity: 0;
    animation: pulse 2.5s ease-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* POSICIONES CORREGIDAS */
.hotspot-1 {
    /* Agujero izquierdo en el bordillo */
    bottom: 23%;
    left: 50%;
}

.hotspot-2 {
    /* Rejilla/tapa derecha */
    bottom: 34%;
    left: 43%;
}

.hotspot-3 {
    /* Centro tapa (entre 1 y 2) */
    bottom: 35%;
    left: 51%;
}

.hotspot-4 {
    /* Trabajador arriba izquierda */
    top: 35%;
    left: 23%;
}

/* PANEL INFORMACIÓN */
.info-panel {
    background: var(--blanco);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-height: 400px;
    position: sticky;
    top: 100px;
}

.info-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.info-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-content h3 {
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.info-content p {
    color: var(--gris-oscuro);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.info-content p strong {
    color: var(--verde-xanael);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .interactive-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .info-panel {
        position: static;
        min-height: auto;
    }
    
    .hotspot {
        width: 45px;
        height: 45px;
    }
    
    .hotspot-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
/* MODAL NOTICIA */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.news-modal.active {
    display: flex;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    background: var(--blanco);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gris-claro);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--gris-oscuro);
    z-index: 10001;
}

.news-modal-close:hover {
    background: var(--azul-corporativo);
    color: var(--blanco);
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 3rem;
}

.news-modal-category {
    display: inline-block;
    background: var(--naranja-energetico);
    color: var(--blanco);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-modal-date {
    display: block;
    font-size: 0.95rem;
    color: var(--gris-oscuro);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.news-modal-title {
    font-size: 2.5rem;
    color: var(--azul-oscuro);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.news-modal-text {
    font-size: 1.1rem;
    color: var(--gris-oscuro);
    line-height: 1.8;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .news-modal-body {
        padding: 2rem;
    }
    
    .news-modal-title {
        font-size: 1.8rem;
    }
}
/* ========================================
   HERO PÁGINAS INTERNAS (Noticias/Contacto)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, #2B7A9B 0%, #1A4A5E 100%);
    padding: 12rem 0 6rem; /* Padding-top grande para cubrir detrás del header */
    text-align: center;
    color: white;
    position: relative;
}

.page-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    color: white;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 10rem 0 4rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
}