/* ==================== RESET Y CONFIGURACIÓN GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER - RESPONSIVO ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 90px;
    position: relative;
}

/* ========== LOGO EN HEADER (MUCHO MÁS GRANDE Y ANCHO) ========== */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 280px;
    width: 100%;
}

.logo img {
    height: 90px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo img:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Efecto de brillo sutil */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(30, 112, 30, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 15px;
}

.logo:hover::before {
    opacity: 1;
}

/* ==================== NAVEGACIÓN DESKTOP ==================== */
.nav-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-desktop a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: #1e701e;
    background: rgba(30, 112, 30, 0.1);
}

/* Botón WhatsApp Desktop */
.whatsapp-desktop {
    display: flex;
    align-items: center;
}

.whatsapp-desktop .whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    font-weight: 600;
}

.whatsapp-desktop .whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Espaciador para balance en mobile */
.header-spacer {
    width: 44px; /* Igual que el ancho del menú hamburguesa */
    flex-shrink: 0;
    visibility: hidden;
}

/* ==================== MENÚ HAMBURGUESA MOBILE (A LA DERECHA) ==================== */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: auto; /* Empuja a la derecha */
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* ==================== NAVEGACIÓN MOBILE ==================== */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.nav-mobile.active {
    right: 0;
}

/* Cabecera menú mobile */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
    height: 50px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Lista de navegación mobile */
.mobile-nav-list {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav-list a:hover {
    background: rgba(30, 112, 30, 0.2);
    padding-left: 25px;
    color: #1e701e;
}

.mobile-nav-list a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* WhatsApp mobile */
.mobile-whatsapp a {
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.1);
}

.mobile-whatsapp a:hover {
    background: rgba(37, 211, 102, 0.2) !important;
}

/* Información contacto mobile */
.mobile-contact-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.mobile-contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Overlay menú mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== HERO SECTION - RESPONSIVO ==================== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight {
    color: #1e701e;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 30px;
}

/* Features del hero */
.hero-features {
    margin: 40px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.feature i {
    color: #1e701e;
    font-size: 1.5rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.feature p {
    font-size: 1rem;
    color: #ddd;
}

/* Botones del hero */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e701e 0%, #145214 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 112, 30, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 112, 30, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #1e701e;
    border: 2px solid #1e701e;
}

.btn-secondary:hover {
    background: rgba(30, 112, 30, 0.1);
    transform: translateY(-3px);
}

/* ========== IMAGEN DEL HERO (MÁS PEQUEÑA) ========== */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 70%;
    max-height: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    opacity: 0.9;
    border: 2px solid rgba(30, 112, 30, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* ==================== FOOTER - RESPONSIVO ==================== */
footer {
    background: #0c0c0c;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #1e701e;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: #1e701e;
}

/* Información de contacto */
.contact-info .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #25D366;
    margin-bottom: 15px;
    text-decoration: none;
}

.contact-info p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1e701e;
    transform: translateY(-3px);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* ==================== WHATSAPP FLOTANTE ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==================== MEDIA QUERIES - RESPONSIVO ==================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ajustes logo en tablet */
    .logo img {
        height: 80px;
    }
    
    .hero-logo {
        max-width: 60%;
    }
}

/* Mobile (hasta 768px) - MENÚ HAMBURGUESA A LA DERECHA */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 3; /* Coloca a la derecha */
    }
    
    .nav-desktop {
        display: none;
    }
    
    .header-container {
        justify-content: space-between;
        height: 85px;
        padding: 10px 0;
        position: relative;
    }
    
    /* Logo centrado en mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: 250px;
        order: 2; /* Centro */
    }
    
    .logo img {
        height: 70px !important;
    }
    
    /* Espaciador a la izquierda para balance */
    .header-spacer {
        display: block;
        width: 44px; /* Igual que el menú hamburguesa */
        order: 1; /* Izquierda */
        visibility: visible;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-mobile {
        width: 280px;
    }
    
    .hero-logo {
        max-width: 80%;
        max-height: 300px;
    }
}

/* Móvil pequeño (hasta 576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        height: 80px;
        padding: 8px 0;
    }
    
    /* Logo en móvil pequeño */
    .logo {
        max-width: 220px;
    }
    
    .logo img {
        height: 65px !important;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger {
        width: 25px;
    }
    
    .header-spacer {
        width: 40px;
    }
    
    /* Logo menú móvil más pequeño */
    .mobile-logo img {
        height: 40px;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .nav-mobile {
        width: 100%;
        max-width: 320px;
    }
    
    /* Logo hero en móvil muy pequeño */
    .hero-logo {
        max-width: 90%;
        max-height: 250px;
    }
}

/* Desktop (más de 768px) */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .header-spacer {
        display: none;
    }
    
    .logo {
        position: static;
        transform: none;
        max-width: 300px;
        justify-content: flex-start;
        margin: 0;
    }
    
    .logo img {
        height: 100px;
    }
}

/* Pantallas grandes (más de 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Logo más grande en pantallas grandes */
    .logo {
        max-width: 350px;
    }
    
    .logo img {
        height: 110px;
    }
    
    .hero-logo {
        max-width: 60%;
        max-height: 450px;
    }
}

/* Pantallas muy grandes (más de 1600px) */
@media (min-width: 1600px) {
    .logo {
        max-width: 400px;
    }
    
    .logo img {
        height: 120px;
    }
    
    .hero-logo {
        max-width: 50%;
    }
}

/* ==================== ANIMACIONES Y EFECTOS ==================== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Improve button tap targets on mobile */
@media (max-width: 768px) {
    .btn,
    .nav-desktop a,
    .mobile-nav-list a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Support for dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
        color: #f0f0f0;
    }
    
    header {
        background: rgba(15, 15, 15, 0.95);
    }
    
    .nav-mobile {
        background: #151515;
    }
}

/* ==================== AJUSTES ESPECÍFICOS DE LOGOS ==================== */
/* Logo en hero: más pequeño y con efecto sutil */
.hero-logo {
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.hero-logo:hover {
    filter: brightness(1.2) contrast(1.2);
    transform: scale(1.02) translateY(-5px);
}

/* Logo en menú mobile: tamaño medio */
.mobile-logo {
    padding: 5px;
}

.mobile-logo img {
    border-radius: 8px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
}

/* ====== WHATSAPP SECTION ====== */
.whatsapp-section {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 60px 0;
    margin: 40px 0;
}

.whatsapp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.whatsapp-info {
    text-align: center;
}

.whatsapp-info .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.whatsapp-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 600;
}

.whatsapp-number i {
    font-size: 2.5rem;
}

.whatsapp-group {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.whatsapp-group h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.btn-whatsapp {
    background: white;
    color: #25D366;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.link-item {
    text-align: center;
    padding: 20px;
    min-width: 150px;
}

.link-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.link-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-info .section-title {
        font-size: 2rem;
    }
    
    .whatsapp-number {
        font-size: 1.5rem;
    }
    
    .whatsapp-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .link-item {
        min-width: auto;
    }
}

/* ==================== AJUSTES ESPECÍFICOS PARA HEADER EN MOBILE ==================== */
@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Tres elementos: espaciador, logo, hamburguesa */
    .header-spacer {
        order: 1;
        flex: 0 0 44px;
    }
    
    .logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        position: static;
        transform: none;
        max-width: none;
    }
    
    .menu-toggle {
        order: 3;
        flex: 0 0 44px;
    }
    
    /* Asegurar que el logo esté centrado */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
}