/* ============================================
   ESTILOS BASE COMUNES - DISEÑO ELEGANTE
   ============================================ */

@font-face {
    font-family: 'GingerBrand';
    src: url('../font/GingerBrand.woff2') format('woff2'),
         url('../font/GingerBrand.woff') format('woff'),
         url('../font/GingerBrand.otf') format('opentype'),
         url('../font/GingerBrand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #1a1a1a; /* Gris muy oscuro */
    --color-secondary: #2a2a2a; /* Gris oscuro */
    --color-accent: #0066ff; /* Azul brillante */
    --color-accent-alt: #0052cc; /* Azul oscuro */
    --color-light: #f5f5f5; /* Gris muy claro */
    --color-white: #ffffff;
    --color-dark: #0a0a0a; /* Casi negro */
    --color-text: #1a1a1a; /* Texto oscuro para contraste */
    --color-text-light: #4a4a4a;
    --color-border: #e0e0e0; /* Borde claro */
    --color-bg-light: #ffffff; /* Fondo blanco */
    --color-bg-section: #f8f8f8; /* Fondo de secciones */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 102, 255, 0.2);
    --shadow-card: 0 2px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--color-bg-light);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
    z-index: -1;
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'GingerBrand', sans-serif;
    font-weight: normal;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.6);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 15px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVBAR ELEGANTE REDISEÑADO
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    transform: translateY(0);
}

.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--color-accent);
    transform: translateY(0);
    padding: 0.5rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.4rem 30px 0.5rem 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'GingerBrand', sans-serif;
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo:hover {
    transform: translateY(-2px);
    color: var(--color-accent);
}

.logo:hover span {
    color: var(--color-accent);
}



@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 70px;
    align-items: flex-end;
}

.nav-item {
    position: relative;
    z-index: 1;
}

.nav-item-dropdown {
    z-index: 1001;
}

/* Dropdown con flecha */
.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-accent);
    opacity: 0.7;
}

.nav-item-dropdown:hover .nav-dropdown-icon,
.nav-item-dropdown.active .nav-dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 16px 24px 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    overflow: visible;
    z-index: 10;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
    transform-origin: center;
    z-index: 1;
    opacity: 0.3;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.nav-link:hover::after {
    left: 100%;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* Submenu Elegante */
.submenu {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    background: var(--color-bg-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    min-width: 320px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 5px;
    padding: 16px 0;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1002;
    pointer-events: none;
    overflow: hidden;
}

.nav-item:hover .submenu,
.nav-item-dropdown.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.submenu-item {
    list-style: none;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--color-text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.1), transparent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu-link:hover {
    background: var(--color-bg-section);
    color: var(--color-accent);
    padding-left: 28px;
    border-left-color: var(--color-accent);
    transform: translateX(5px);
}

.submenu-link:hover::before {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-accent);
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   FOOTER ELEGANTE
   ============================================ */

.footer {
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-section) 100%);
    color: var(--color-primary);
    padding: 80px 0 30px;
    margin-top: 100px;
    position: relative;
    border-top: 3px solid var(--color-accent);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.05);
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-family: 'GingerBrand', sans-serif;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: normal;
}

.footer-logo {
    font-family: 'GingerBrand', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-primary);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.1) rotate(5deg);
}

.footer-brand {
    max-width: 300px;
}

.footer-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: transform 0.3s ease;
}

.footer-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.footer-contact-item i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

.footer-contact-item:hover {
    color: var(--color-accent);
}

.footer-social-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    position: relative;
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
    transform: translateX(5px);
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--color-bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.6);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
    border-radius: 0 0 30px 30px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

.footer-bottom-links span {
    color: var(--color-border);
}

/* ============================================
   ELEMENTOS COMUNES ELEGANTES
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-light);
}

.card {
    background: var(--color-bg-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem 20px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-white);
        flex-direction: column;
        padding: 50px 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-hover);
        gap: 20px;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link::before {
        display: none;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding-left: 20px;
        border: none;
        background: var(--color-light);
        border-radius: 8px;
        margin-top: 10px;
        max-width: 100%;
        min-width: auto;
    }

    .submenu-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .footer {
        padding: 60px 0 25px;
        margin-top: 60px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h2::after {
        width: 50px;
        height: 2px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .card {
        padding: 30px 20px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0.8rem 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 35px;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 30px 15px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 12px 0;
    }

    .submenu {
        padding-left: 15px;
    }

    .submenu-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .footer {
        padding: 50px 0 20px;
        margin-top: 50px;
    }

    .footer-content {
        gap: 30px;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-logo-img {
        height: 40px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h2::after {
        width: 40px;
        height: 2px;
    }

    h3 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .card {
        padding: 25px 18px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float i {
    display: block;
    line-height: 1;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
}