@import url('https://fonts.cdnfonts.com/css/eurostile');

@font-face {
    font-family: 'Eurostile-Black';
    src: url('https://db.onlinewebfonts.com/t/0a6772e03798dc0ba48c08c827cf2ff6.woff2') format('woff2'),
         url('https://db.onlinewebfonts.com/t/0a6772e03798dc0ba48c08c827cf2ff6.woff') format('woff');
    font-weight: 900;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f0f0f;
    --primary-light: #1a2332;
    --primary-lighter: #2a3544;
    --accent: #c8c8c2;
    --accent-light: #d8d8d2;
    --accent-pale: #e8e8e2;
    --text-light: #e8e8e4;
    --text-muted: #a8a8a0;
}

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

html {
    scroll-behavior: smooth;
}

/* HATMI Typography */
.hatmi-text, .logo-text, .hero-title {
    font-family: 'Eurostile-Black', 'Eurostile', sans-serif;
    font-style: italic;
    font-weight: 900;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(16, 23, 32, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 197, 185, 0.1);
    transition: background 0.3s ease;
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 100px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin: -1rem 0;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Logo image responsive */
@media (max-width: 968px) {
    #hero {
        padding-top: 5rem;
    }

    .logo-image {
        height: 80px;
        max-width: 260px;
        margin: -0.8rem 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-video-bg {
        display: block !important;
        visibility: visible !important;
    }
    
    .fixed-video-bg {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .fixed-video-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #hero {
        padding-top: 4rem;
        position: relative !important;
        overflow: visible !important;
        min-height: 100vh !important;
        display: flex !important;
    }

    .logo-image {
        height: 60px;
        max-width: 200px;
        margin: -0.5rem 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 80% !important;
        max-height: 200px !important;
        position: relative !important;
        z-index: 100 !important;
        margin: 0 auto !important;
    }
    
    .hero-logo-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-video-bg {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hero-elevated-container {
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        min-height: 100vh !important;
    }
    
    .hero-content {
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
    }
    
    .fixed-video-bg {
        display: block !important;
        visibility: visible !important;
        opacity: 0.15 !important;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--accent);
    font-weight: 600;
}

nav a.active::after {
    width: 100%;
    background: var(--accent);
}

/* Nav Social Links */
.nav-social-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 1.5rem;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 197, 185, 0.1);
    border: 1px solid rgba(212, 197, 185, 0.2);
    color: var(--accent);
    transition: all 0.3s ease;
}

.nav-social-link:hover {
    background: rgba(180, 100, 200, 0.3);
    border-color: rgba(180, 100, 200, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(180, 100, 200, 0.3);
}

.nav-social-link svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 968px) {
    .nav-social-links {
        display: none;
    }
}

.lang-switcher {
    background: rgba(212, 197, 185, 0.1);
    border: 1px solid rgba(212, 197, 185, 0.2);
    color: var(--accent);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.lang-switcher:hover {
    background: rgba(212, 197, 185, 0.2);
    border-color: rgba(212, 197, 185, 0.4);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    z-index: 1;
}

/* On mobile, all sections are visible by default */
@media (max-width: 968px) {
    section {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Ensure diferencia and contacto sections are always visible on mobile */
@media (max-width: 968px) {
    #diferencia,
    #contacto {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: relative !important;
        z-index: 10 !important;
    }
}

/* Hero should be visible by default */
#hero {
    opacity: 1;
    transform: translateY(0);
}

/* Section Background Variations */

/* Team section specific text colors for contrast */
#equipo .section-title,
#equipo .section-subtitle {
    color: rgba(245, 245, 240, 0.95);
}

/* Team section specific pastel colors */
#equipo .team-name {
    color: rgba(240, 235, 230, 0.95);
}

#equipo .team-role {
    color: rgba(220, 215, 210, 0.85);
}

#equipo .team-title {
    color: rgba(200, 195, 190, 0.8);
}

#equipo .team-bio {
    color: rgba(225, 220, 215, 0.9);
}

/* Team section specific text colors for contrast */
/* Fixed Video Background */
.fixed-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fixed-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.2;
    filter: saturate(0.6);
}

.fixed-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.5) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(8, 8, 8, 0.5) 100%
    );
}

/* Video Overlay Sections */
.video-overlay-section {
    position: relative;
    background: transparent !important;
}

.video-overlay-section > .container {
    position: relative;
    z-index: 2;
}

/* Ensure problema cards are visible */
#problema .problema-card {
    position: relative;
    z-index: 3;
}

/* Fallback: If animation doesn't trigger, ensure cards are visible after section is visible */
#problema.animate-visible .problema-card,
#problema.visible .problema-card {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Force visibility after a delay if animation doesn't work */
#problema .problema-card {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

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

#problema {
    background: transparent;
}

#solucion {
    background: transparent;
}

#stats {
    background: transparent;
    padding: 3rem 0;
}

/* Responsive fixed video */
@media (max-width: 968px) {
    .fixed-video-bg {
        opacity: 0.15;
        display: block !important;
        visibility: visible !important;
    }
    
    .fixed-video-container {
        display: block !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .fixed-video-bg {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .fixed-video-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Ensure sections are visible on mobile */
    #diferencia,
    #contacto {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: relative !important;
        z-index: 10 !important;
    }
}

.problema-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.problema-card {
    position: relative;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 30px rgba(255, 255, 255, 0.03) inset,
        0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Logo background */
.problema-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('Fotos/Solo Leones Vectores BLANCO PNG.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    z-index: 0;
    transition: opacity 0.5s ease, transform 0.8s ease;
    filter: blur(1px);
}

.problema-card:hover::after {
    opacity: 0.06;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Glass border effect */
.problema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.15) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.problema-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 40px rgba(255, 255, 255, 0.05) inset,
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 197, 185, 0.1);
}

.problema-card:hover::before {
    opacity: 1;
}

/* Top glow line on hover */
.problema-card .problema-accent-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 197, 185, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.problema-card:hover .problema-accent-line::before {
    opacity: 1;
}

.problema-number {
    font-family: 'Eurostile-Black', 'Eurostile', sans-serif;
    font-style: italic;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(212, 197, 185, 0.08);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
    transition: color 0.5s ease;
    z-index: 2;
}

.problema-card:hover .problema-number {
    color: rgba(212, 197, 185, 0.15);
}

.problema-accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 2rem;
    transition: width 0.5s ease;
    position: relative;
    z-index: 2;
}

.problema-card:hover .problema-accent-line {
    width: 100px;
}

.problema-title {
    font-family: 'Eurostile-Black', 'Eurostile', sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.problema-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.problema-highlight {
    font-family: 'Eurostile-Black', 'Eurostile', sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 197, 185, 0.15);
    letter-spacing: 0.03em;
    position: relative;
    z-index: 2;
}

@media (max-width: 968px) {
    .problema-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problema-card {
        padding: 2.5rem;
    }

    .problema-title {
        font-size: 2rem;
    }

    .problema-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .problema-card {
        padding: 2rem;
    }

    .problema-title {
        font-size: 1.6rem;
    }

    .problema-text {
        font-size: 1rem;
    }

    .problema-highlight {
        font-size: 1.2rem;
    }

    .problema-number {
        font-size: 2.5rem;
        right: 1rem;
    }
}

/* Solucion and Stats backgrounds now handled by parallax section */

#metodo {
    background: linear-gradient(180deg, rgba(30, 30, 35, 1) 0%, rgba(20, 22, 25, 1) 100%);
}

#servicios {
    background: linear-gradient(180deg, rgba(40, 40, 40, 1) 0%, rgba(15, 15, 15, 1) 100%);
}

#equipo {
    background: linear-gradient(180deg, rgba(70, 70, 70, 1) 0%, rgba(85, 85, 85, 1) 100%);
}

#casos {
    background: linear-gradient(180deg, rgba(28, 28, 28, 1) 0%, rgba(35, 35, 35, 1) 100%);
}

#diferencia {
    background: linear-gradient(180deg, rgba(12, 12, 12, 1) 0%, rgba(8, 8, 8, 1) 100%);
}

/* Diferencia section - left align and reduced line height */
#diferencia .section-title {
    text-align: left !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem;
}

#diferencia .container {
    text-align: left !important;
}

#contacto {
    background: linear-gradient(180deg, rgba(22, 22, 22, 1) 0%, rgba(16, 16, 16, 1) 100%);
}

section .container {
    width: 100%;
    text-align: center;
}

/* Solucion section - left align override */
section#solucion .container {
    text-align: left !important;
}

section#solucion .section-title,
section#solucion h2 {
    text-align: left !important;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.solucion-italic {
    font-style: italic;
    font-family: 'Eurostile-Black', 'Eurostile', sans-serif;
}

.solucion-gray {
    color: rgba(232, 232, 228, 0.7);
}

@media (max-width: 968px) {
    section#solucion .section-title,
    section#solucion h2 {
        line-height: 0.95;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    section#solucion .section-title,
    section#solucion h2 {
        line-height: 1;
        font-size: 1.8rem;
    }
}

section#solucion .grid {
    text-align: left !important;
    gap: 3rem !important;
}

@media (max-width: 968px) {
    section#solucion .grid {
        gap: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    section#solucion .grid {
        gap: 2rem !important;
    }
}

section#solucion .glass-card,
section#solucion .solucion-card {
    text-align: left !important;
}

section#solucion .glass-card h3,
section#solucion .solucion-card h3 {
    text-align: left !important;
    text-transform: uppercase;
}

section#solucion .glass-card p,
section#solucion .solucion-card p {
    text-align: left !important;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section - Elevated Container */
#hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 0 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-elevated-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    background: rgba(26, 35, 50, 0.3);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 197, 185, 0.15);
    border-radius: 30px;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 197, 185, 0.05) inset,
        0 10px 30px rgba(212, 197, 185, 0.05) inset;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.12;
    z-index: 0;
    border-radius: 30px;
    pointer-events: none;
}

.hero-elevated-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 197, 185, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-elevated-container::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 197, 185, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Mobile: Ensure hero content is always visible */
@media (max-width: 768px) {
    .hero-content {
        position: relative !important;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.hero-elevated-container .container {
    position: relative;
    z-index: 5;
}

.hero-title {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1);
    transition: transform 2s ease-in-out;
    text-align: center;
}

.hero-title.animate-scale {
    transform: scale(1.3);
}

.hero-logo-container {
    margin-bottom: 2rem;
    text-align: center;
    transform: scale(1);
    transition: transform 2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-logo-container.animate-scale {
    transform: scale(1.3);
}

.hero-logo {
    max-width: 70%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    display: block;
    margin: 0 auto;
}

.hero-subtitle-wrapper {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-subtitle-line1,
.hero-subtitle-line2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    transition: all 2s ease-in-out;
    transform: scale(1);
    opacity: 1;
    text-align: center;
}

#inevitable-text {
    font-family: 'Eurostile-Black', 'Eurostile', sans-serif;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 220px;
    text-align: left;
}

/* Mobile: Center INEVITABLE on its own line */
@media (max-width: 768px) {
    .hero-subtitle-line2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    #inevitable-text {
        display: block;
        text-align: center;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-subtitle-line2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    #inevitable-text {
        display: block;
        text-align: center;
        min-width: auto;
        width: 100%;
    }
}

.hero-subtitle-line1.animate-fade {
    transform: scale(0.95);
    opacity: 0.1;
}

.hero-subtitle-line2.animate-grow {
    transform: scale(1.3);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.8;
    text-align: center;
}

.hero-text .service-item {
    transition: all 0.3s ease;
    cursor: default;
    display: inline-block;
    position: relative;
}

.hero-text .service-item:hover {
    color: var(--accent);
    text-shadow: 
        0 0 10px rgba(200, 200, 194, 0.5),
        0 0 20px rgba(200, 200, 194, 0.3),
        0 0 30px rgba(200, 200, 194, 0.2);
    transform: translateY(-1px);
}

/* Comas dentro de service-item para evitar que queden solas */
.hero-text .service-item .comma {
    white-space: nowrap;
    display: inline;
}

/* Mobile: Smaller text and better line breaks */
@media (max-width: 768px) {
    .hero-text {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    .hero-text .service-item {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
    .hero-text .service-item {
        white-space: nowrap;
        font-size: 0.95em;
    }
    
    .hero-text .comma {
        white-space: nowrap;
    }
}

/* Glass Card */
.glass-card {
    background: rgba(26, 35, 50, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 197, 185, 0.1);
    border-radius: 20px;
    padding: 1.2rem 2rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 197, 185, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(180, 100, 200, 0.8);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3), 
        0 0 30px rgba(180, 100, 200, 0.5),
        0 0 60px rgba(180, 100, 200, 0.3),
        0 0 100px rgba(180, 100, 200, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover .service-icon-placeholder {
    border-color: rgba(212, 197, 185, 0.5);
    background: linear-gradient(135deg, rgba(212, 197, 185, 0.15) 0%, rgba(212, 197, 185, 0.08) 100%);
    transform: scale(1.05);
}

.glass-card:hover .service-icon-placeholder::before {
    opacity: 0.8;
}

/* Ready-to-use class for SVG icons */
.service-icon-svg {
    width: 120px;
    height: 120px;
    margin: -0.5rem auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
}

.service-icon-svg svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-icon-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}


.glass-card:hover .service-icon-svg {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .service-icon-svg {
        width: 100px;
        height: 100px;
        margin: -0.3rem auto 0.4rem;
    }
}

@media (max-width: 480px) {
    .service-icon-svg {
        width: 80px;
        height: 80px;
        margin: -0.2rem auto 0.3rem;
    }
}

.service-icon-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(212, 197, 185, 0.1) 0%, rgba(212, 197, 185, 0.05) 100%);
    border: 2px dashed rgba(212, 197, 185, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.service-icon-placeholder::before {
    content: "📎";
    font-size: 2rem;
    opacity: 0.6;
    color: rgba(212, 197, 185, 0.7);
}

.service-icon-placeholder::after {
    content: attr(data-service);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(212, 197, 185, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-icon-placeholder:hover::after {
    opacity: 1;
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(180, 100, 200, 0.9) 0%, rgba(160, 80, 180, 0.9) 100%);
    border-color: rgba(180, 100, 200, 0.8);
    box-shadow: 0 10px 30px rgba(180, 100, 200, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary.success {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 197, 185, 0.3);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Section Title */
.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-align: center;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

/* Solucion card h3 styles */
.solucion-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(212, 197, 185, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solucion-card h3 .card-icon {
    width: 69px;
    height: 69px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0 rgba(180, 100, 200, 0));
}

.solucion-card:hover h3 .card-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 8px rgba(180, 100, 200, 0.9)) drop-shadow(0 0 12px rgba(180, 100, 200, 0.7));
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 1200px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

section#solucion .grid.grid-3 {
    gap: 3rem !important;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    max-width: 900px;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(16, 23, 32, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 197, 185, 0.15);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 197, 185, 0.08) inset,
        0 4px 16px rgba(16, 23, 32, 0.2) inset;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 180px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(212, 197, 185, 0.08) 0%,
        transparent 50%,
        rgba(16, 23, 32, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(180, 100, 200, 0.8);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(180, 100, 200, 0.3) inset,
        0 0 30px rgba(180, 100, 200, 0.5),
        0 0 60px rgba(180, 100, 200, 0.3),
        0 0 100px rgba(180, 100, 200, 0.15);
    background: rgba(16, 23, 32, 0.5);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Metodo Header */
.metodo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    gap: 0;
}

.metodo-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0;
    line-height: 0.7;
}

.metodo-logo {
    width: 450px;
    height: auto;
    object-fit: contain;
    margin-top: -2rem;
}

.metodo-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

@media (max-width: 968px) {
    .metodo-title {
        font-size: 3.5rem;
    }
    .metodo-logo {
        width: 350px;
        margin-top: -0.6rem;
    }
}

@media (max-width: 480px) {
    .metodo-title {
        font-size: 2.5rem;
    }
    .metodo-logo {
        width: 250px;
        margin-top: -0.4rem;
    }
}

/* Accordion */
.accordion-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(26, 35, 50, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 197, 185, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(180, 100, 200, 0.5);
    box-shadow: 0 0 20px rgba(180, 100, 200, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(212, 197, 185, 0.05);
}

.accordion-icon {
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
    text-align: left;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.accordion-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.accordion-content p strong {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .accordion-header {
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }
    
    .accordion-content {
        padding: 0 1.5rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 1.5rem 1.2rem;
    }
}

/* Timeline - Legacy (keeping for reference) */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin: 3rem auto 0;
    max-width: 900px;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--primary);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.timeline-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.timeline-content p {
    margin-bottom: 1rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    padding: 1rem 0;
}

.carousel-wrapper {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    padding: 0 1.5rem;
}

.team-card {
    min-width: 280px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(50, 50, 50, 0.6) 100%);
    margin: 0 auto 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(240, 235, 230, 0.95);
    font-weight: 700;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-title {
    font-size: 0.8rem;
    color: rgba(10, 10, 10, 0.8);
    margin-bottom: 0.5rem;
    font-style: italic;
    line-height: 1.2;
}

.team-bio {
    color: rgba(10, 10, 10, 0.9);
    font-size: 0.8rem;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.2);
    border: 1px solid rgba(30, 30, 30, 0.3);
    color: rgba(240, 235, 230, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(30, 30, 30, 0.4);
    color: rgba(245, 245, 240, 1);
    transform: scale(1.1);
    border-color: rgba(40, 40, 40, 0.5);
}

/* Cases */
.case-timeline {
    margin: 2rem 0;
}

.case-item {
    padding: 1rem 0;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.case-item strong {
    color: var(--accent);
}

.case-highlights {
    background: rgba(212, 197, 185, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    margin-top: 2rem;
}

.case-highlights p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Comparison */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem auto 0;
    max-width: 1200px;
    text-align: left;
}

.comparison-column h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.comparison-column ul {
    list-style: none;
}

.comparison-column li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 197, 185, 0.1);
    color: var(--text-muted);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
}

/* Form loading states */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading .loading-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}

.btn.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    color: white !important;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal.show {
    opacity: 1;
}

.success-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 30, 45, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(180, 100, 200, 0.3);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(180, 100, 200, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

.success-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.success-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.success-modal-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-modal-logo img {
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(180, 100, 200, 0.3));
}

.success-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(180, 100, 200, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-modal-message {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .success-modal-content {
        padding: 2.5rem 2rem;
        max-width: 90%;
    }

    .success-modal-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .success-modal-message {
        font-size: 1rem;
    }

    .success-modal-logo img {
        width: 60px;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label .required {
    color: rgba(212, 197, 185, 0.6);
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 0.3rem;
    font-style: italic;
}

.form-group label .optional {
    color: rgba(212, 197, 185, 0.6);
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 0.3rem;
    font-style: italic;
}

.whatsapp-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.country-select {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 120px;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 197, 185, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.country-select option {
    font-size: 1.1rem;
    padding: 0.5rem;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.country-select:hover {
    border-color: rgba(212, 197, 185, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.country-select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.whatsapp-number {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 197, 185, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-number:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.whatsapp-number:invalid {
    border-color: rgba(244, 67, 54, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-input-group {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .country-select {
        min-width: 110px;
        max-width: 130px;
        font-size: 0.9rem;
        padding: 0.65rem 0.5rem;
    }
    
    .whatsapp-number {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .whatsapp-input-group {
        flex-direction: row;
        gap: 0.4rem;
    }
    
    .country-select {
        min-width: 100px;
        max-width: 120px;
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 35, 50, 0.4);
    border: 1px solid rgba(212, 197, 185, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(26, 35, 50, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: var(--primary-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(212, 197, 185, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 197, 185, 0.1);
    padding-top: 2rem;
    text-align: center;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 197, 185, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--accent);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: rgba(180, 100, 200, 0.3);
    border: 1px solid rgba(180, 100, 200, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(180, 100, 200, 0.3);
}

.footer-bottom p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent);
}

/* Footer responsive */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .legal-links {
        gap: 1rem;
    }

    .legal-links a {
        font-size: 0.75rem;
    }
}

/* Advanced Scroll Animations */

/* Base animation classes */
.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-child-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Slide animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

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

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

/* Fade animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth fade animations (opacity only) */
@keyframes smoothFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes smoothFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Scale animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Rotate animations */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes rotateOut {
    from {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    to {
        opacity: 0;
        transform: rotate(10deg) scale(0.9);
    }
}

/* Bounce animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Flip animations */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes flipOut {
    from {
        opacity: 1;
        transform: rotateY(0deg);
    }
    to {
        opacity: 0;
        transform: rotateY(90deg);
    }
}

/* Zoom animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Apply animations to sections */
.animate-slide-in-left {
    animation: slideInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-out-left {
    animation: slideOutLeft 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-out-right {
    animation: slideOutRight 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-slide-in-up {
    animation: slideInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-out-up {
    animation: fadeOutUp 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-scale-in {
    animation: scaleIn 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-scale-out {
    animation: scaleOut 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-rotate-in {
    animation: rotateIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-rotate-out {
    animation: rotateOut 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-bounce-in {
    animation: bounceIn 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-bounce-out {
    animation: bounceOut 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-flip-in {
    animation: flipIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-flip-out {
    animation: flipOut 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-zoom-in {
    animation: zoomIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-zoom-out {
    animation: zoomOut 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.animate-slide-in-down {
    animation: slideInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Animations only on desktop */
.animate-smooth-fade-in {
    animation: smoothFadeIn 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-smooth-fade-out {
    animation: smoothFadeOut 1.2s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

/* Disable animations on mobile */
@media (max-width: 968px) {
    .animate-smooth-fade-in,
    .animate-smooth-fade-out {
        animation: none !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Child element animations - visible by default on mobile, animated on desktop */
.glass-card,
.stat-card,
.team-card,
.problema-card,
.solucion-card,
.service-icon-placeholder,
.case-timeline,
.comparison-column,
.contact-form {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* On mobile, all child elements are visible by default */
@media (max-width: 968px) {
    .glass-card,
    .stat-card,
    .team-card,
    .problema-card,
    .solucion-card,
    .service-icon-placeholder,
    .case-timeline,
    .comparison-column,
    .contact-form {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

/* Mobile: Faster, smoother animations */
@media (max-width: 768px) {
    .glass-card,
    .stat-card,
    .team-card,
    .problema-card,
    .solucion-card {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

.glass-card.animate-child-visible,
.stat-card.animate-child-visible,
.team-card.animate-child-visible,
.problema-card.animate-child-visible,
.solucion-card.animate-child-visible,
.service-icon-placeholder.animate-child-visible,
.case-timeline.animate-child-visible,
.comparison-column.animate-child-visible,
.contact-form.animate-child-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Mobile: Enhanced animation visibility */
@media (max-width: 768px) {
    .glass-card.animate-child-visible,
    .stat-card.animate-child-visible,
    .team-card.animate-child-visible,
    .problema-card.animate-child-visible,
    .solucion-card.animate-child-visible {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

/* Light sweep effect for solution section cards */
#solucion .glass-card {
    position: relative;
    overflow: hidden;
}

#solucion .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%,
        transparent 100%
    );
    transition: left 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

#solucion .glass-card:hover::before {
    left: 100%;
}

/* Ensure text stays above the light sweep */
#solucion .glass-card h3,
#solucion .glass-card p {
    position: relative;
    z-index: 2;
}

/* Responsive */
/* Service icon placeholders responsive */
@media (max-width: 968px) {
    .service-icon-placeholder {
        width: 70px;
        height: 70px;
    }

    .service-icon-placeholder::before {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .service-icon-placeholder {
        width: 60px;
        height: 60px;
    }

    .service-icon-placeholder::before {
        font-size: 1.5rem;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-logo {
        max-height: 200px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .hero-logo-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .hero-video-bg {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hero-elevated-container {
        position: relative !important;
        overflow: hidden !important;
    }

    .hero-subtitle-line1,
    .hero-subtitle-line2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .team-card {
        min-width: 250px;
        max-width: 280px;
        height: 350px;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-logo {
        max-height: 150px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
        margin: 0 auto !important;
        max-width: 80% !important;
    }
    
    .hero-logo-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    .hero-video-bg {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translate(-50%, -50%) !important;
        z-index: 0 !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .hero-elevated-container {
        position: relative !important;
        overflow: hidden !important;
    }
    
    #hero {
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Force diferencia and contacto sections to be visible on mobile */
    #diferencia,
    #contacto {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: relative !important;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    .hero-subtitle-line1,
    .hero-subtitle-line2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .team-card {
        min-width: 220px;
        max-width: 250px;
        height: 320px;
        padding: 1rem;
    }

    .team-photo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .team-name {
        font-size: 1.3rem;
    }

    .team-role {
        font-size: 0.8rem;
    }

    .team-title {
        font-size: 0.75rem;
    }

    .team-bio {
        font-size: 0.75rem;
    }
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .animate-flip-in,
    .animate-flip-out,
    .animate-rotate-in,
    .animate-rotate-out {
        animation-duration: 0.5s;
    }

    .animate-bounce-in,
    .animate-bounce-out {
        animation-duration: 0.7s;
    }
}

/* Language switcher responsive */
@media (max-width: 968px) {
    .lang-switcher {
        margin-right: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        display: block !important; /* Show on mobile */
        position: fixed;
        top: 70px;
        right: 15px;
        z-index: 1001;
        background: rgba(20, 20, 30, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(212, 197, 185, 0.3);
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        margin-right: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        min-width: 45px;
        text-align: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(200, 120, 220, 1), rgba(160, 80, 180, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(180, 100, 200, 0.4);
    border-top: 1px solid rgba(220, 140, 240, 0.6);
    border-bottom: 1px solid rgba(140, 70, 160, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(180, 100, 200, 0.5),
        0 0 25px rgba(180, 100, 200, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 0 8px rgba(220, 140, 240, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    transform: translateY(0);
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    background: radial-gradient(circle at 30% 30%, rgba(220, 140, 240, 1), rgba(180, 100, 200, 1));
    border-top: 1px solid rgba(240, 160, 255, 0.7);
    border-bottom: 1px solid rgba(150, 80, 170, 0.6);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 6px 18px rgba(180, 100, 200, 0.7),
        0 0 35px rgba(180, 100, 200, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        inset 0 0 10px rgba(240, 160, 255, 0.3);
}

.whatsapp-float:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(180, 100, 200, 0.5),
        0 0 20px rgba(180, 100, 200, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(255, 255, 255, 0.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}