/* ====================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ==================================== */
:root {
    /* Colores - Verde vivo exacto de referencia */
    --green-primary: #00FF88;
    --green-hover: #00E67A;
    --green-dark: #00CC6A;
    
    /* Grises - Fondo principal tipo referencia */
    --gray-bg: #F5F5F5;
    --gray-light: #FAFAFA;
    --gray-medium: #E0E0E0;
    --gray-text: #2A2A2A;
    --gray-text-light: #666666;
    --white: #FFFFFF;
    
    /* Tipografía - Similar a Aeonik */
    --font-primary: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Bordes */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
}

/* ====================================
   RESET Y BASE
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    color: var(--gray-text);
    background: var(--gray-bg);
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    position: relative;
}

/* ====================================
   LOGO FIJO
   ==================================== */
.logo-container-fixed {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    width: 120px;
    height: auto;
    opacity: 0;
    animation: logoFadeIn 1.2s ease-out 0.3s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.logo-container-fixed:hover {
    transform: scale(1.08) translateY(-2px);
}

.logo-container-fixed:active {
    transform: scale(1.05);
}

.logo-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.logo-container-fixed:hover .logo-image {
    filter: drop-shadow(0 4px 16px rgba(0, 255, 136, 0.4));
    transform: rotate(2deg);
}

.logo-container-fixed:active .logo-image {
    transform: rotate(0deg);
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8) rotate(-5deg);
    }
    50% {
        transform: translateY(5px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    }
    50% {
        filter: drop-shadow(0 4px 16px rgba(0, 255, 136, 0.3));
    }
}

/* Animación continua sutil después de la entrada */
.logo-container-fixed {
    animation: logoFadeIn 1.2s ease-out 0.3s both, logoFloat 4s ease-in-out 2s infinite;
}

.logo-image {
    animation: logoGlow 3s ease-in-out 2s infinite;
}

/* Ocultar logo fijo en primera y última slide */
.slide-hero .logo-container-fixed,
.slide-cta .logo-container-fixed {
    opacity: 0;
    pointer-events: none;
}

/* ====================================
   LOGO GRANDE EN HERO Y CTA
   ==================================== */
.logo-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: logoHeroFadeIn 1.2s ease-out 0.1s both;
}

.logo-hero-image {
    width: 280px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoHeroScale 1.5s ease-out 0.3s both, logoHeroFloat 4s ease-in-out 2s infinite;
}

.logo-hero-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 24px rgba(0, 255, 136, 0.4));
}

@keyframes logoHeroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.8);
    }
    50% {
        transform: translateY(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoHeroScale {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes logoHeroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Animaciones cuando el slide está activo */
.swiper-slide-active .logo-hero {
    animation: logoHeroFadeIn 1.2s ease-out 0.1s both;
}

.swiper-slide-active .logo-hero-image {
    animation: logoHeroScale 1.5s ease-out 0.3s both, logoHeroFloat 4s ease-in-out 2s infinite;
}

/* ====================================
   SWIPER CUSTOMIZATION
   ==================================== */
.swiper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    min-height: 100vh;
    background: var(--gray-bg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

/* Elementos ocultos por defecto, visibles solo cuando el slide está activo */
.swiper-slide:not(.swiper-slide-active) .hero-headline,
.swiper-slide:not(.swiper-slide-active) .hero-subheadline,
.swiper-slide:not(.swiper-slide-active) .section-title,
.swiper-slide:not(.swiper-slide-active) .section-text,
.swiper-slide:not(.swiper-slide-active) .feature-item,
.swiper-slide:not(.swiper-slide-active) .highlight-box,
.swiper-slide:not(.swiper-slide-active) .benefit-box,
.swiper-slide:not(.swiper-slide-active) .cta-button,
.swiper-slide:not(.swiper-slide-active) .cta-question,
.swiper-slide:not(.swiper-slide-active) .cta-footer,
.swiper-slide:not(.swiper-slide-active) .hero-image-placeholder,
.swiper-slide:not(.swiper-slide-active) .logo-hero,
.swiper-slide:not(.swiper-slide-active) .success-item,
.swiper-slide:not(.swiper-slide-active) .automation-item {
    opacity: 0;
}

/* Animaciones solo cuando el slide está activo */
.swiper-slide-active .hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.swiper-slide-active .hero-subheadline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.swiper-slide-active .hero-image-placeholder {
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.swiper-slide-active .section-title {
    animation: fadeInUp 0.8s ease-out both;
}

.swiper-slide-active .section-text {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.swiper-slide-active .highlight-box {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.swiper-slide-active .feature-item:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.swiper-slide-active .feature-item:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.swiper-slide-active .feature-item:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.swiper-slide-active .feature-item:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.swiper-slide-active .benefit-box {
    animation: scaleIn 0.8s ease-out 0.3s both;
}

.swiper-slide-active .cta-button {
    animation: scaleIn 0.8s ease-out 0.4s both;
}

.swiper-slide-active .cta-question {
    animation: fadeInUp 0.8s ease-out both;
}

.swiper-slide-active .cta-footer {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.swiper-slide-active .logo-hero {
    animation: logoHeroFadeIn 1.2s ease-out 0.1s both;
}

.swiper-slide-active .logo-hero-image {
    animation: logoHeroScale 1.5s ease-out 0.3s both, logoHeroFloat 4s ease-in-out 2s infinite;
}

.swiper-slide-active .success-item {
    opacity: 1 !important;
}

.swiper-slide-active .success-item:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    opacity: 1 !important;
}

.swiper-slide-active .success-item:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    opacity: 1 !important;
}

.swiper-slide-active .success-item:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    opacity: 1 !important;
}

.swiper-slide-active .automation-item:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.swiper-slide-active .automation-item:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ====================================
   CONTENIDO DE SLIDES
   ==================================== */
.slide-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ====================================
   SLIDE 1: HERO
   ==================================== */
.slide-hero {
    background: var(--gray-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slide-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.slide-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

/* Hero badge eliminado - ahora usamos solo el logo */

.hero-headline {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-text);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    position: relative;
    opacity: 0;
}

.hero-headline::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--green-primary);
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    opacity: 0;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 700px;
    height: 400px;
    background: var(--white);
    border: 2px solid var(--green-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-placeholder:hover .hero-image {
    transform: scale(1.05);
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: slideInLeft 2s ease-in-out infinite;
    animation-delay: 1s;
}

.placeholder-content {
    text-align: center;
    color: var(--gray-text-light);
}

.placeholder-content i {
    font-size: 4rem;
    color: var(--green-primary);
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

/* ====================================
   SLIDE 2: EL PROBLEMA
   ==================================== */
.slide-problem {
    background: var(--gray-bg);
    position: relative;
}

.slide-problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
    animation: slideInLeft 1s ease-out;
}

.problem-content {
    max-width: 800px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-text);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: var(--spacing-md);
    opacity: 0;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--green-primary);
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.section-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
}

.highlight-box {
    background: var(--white);
    border-left: 4px solid var(--green-primary);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-xl);
    position: relative;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.highlight-box::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--green-primary);
    border-right: 2px solid var(--green-primary);
    border-radius: 0 var(--border-radius) 0 0;
    opacity: 0.5;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text);
    line-height: 1.8;
    margin: 0;
}

.highlight-text strong {
    font-weight: var(--font-weight-bold);
    color: var(--gray-text);
}

/* ====================================
   SLIDE 3: LA SOLUCIÓN
   ==================================== */
.slide-solution {
    background: var(--gray-bg);
    position: relative;
}

.slide-solution::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite;
}

.solution-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Los delays se manejan en las animaciones activas */

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.2);
    border-color: var(--green-primary);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    border: 2px solid var(--green-primary);
    position: relative;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--green-primary);
    transition: transform 0.4s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-text);
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--green-primary);
    transition: width 0.4s ease;
}

.feature-item:hover .feature-title::after {
    width: 80px;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text-light);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* ====================================
   SLIDE 4: CASOS DE ÉXITO
   ==================================== */
.slide-success {
    background: var(--gray-bg);
    position: relative;
}

.success-content {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.success-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.success-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border-top: 4px solid var(--green-primary);
    transition: all 0.4s ease;
    opacity: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.success-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.success-item:hover::before {
    left: 100%;
}

.success-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.2);
}

.success-item.featured-success {
    background: linear-gradient(135deg, var(--green-light), rgba(255, 255, 255, 0.95));
    border-top-width: 6px;
    border-left: 4px solid var(--green-primary);
    border-right: 4px solid var(--green-primary);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
    transform: scale(1.02);
}

.success-item.featured-success:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 255, 136, 0.25);
}

.success-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    background: linear-gradient(135deg, var(--gray-light), rgba(0, 255, 136, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-item.featured-success .success-image {
    height: 280px;
}

.success-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    min-height: 100%;
}

.success-image::after {
    content: 'Imagen del Proyecto';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray-text-light);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.success-img:not([src*="placeholder"]) {
    position: relative;
    z-index: 2;
}

.success-img[src*="placeholder"] {
    display: none;
}

.success-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-image:hover::before {
    opacity: 1;
}

.success-item:hover .success-img {
    transform: scale(1.05);
}

.success-content-inner {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.success-item.featured-success .success-content-inner {
    padding: var(--spacing-xl);
}

.success-title {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-text);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.success-item.featured-success .success-title {
    font-size: 1.6rem;
}

.success-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--green-primary);
}

.success-item.featured-success .success-title::after {
    width: 70px;
    height: 3px;
}

.success-client {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--green-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.success-description {
    font-size: 0.95rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text-light);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

.success-item.featured-success .success-description {
    font-size: 1.05rem;
}

.success-metric {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--green-primary);
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--green-primary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ====================================
   SLIDE 5: AUTOMATIZACIÓN TÉCNICA
   ==================================== */
.slide-automation {
    background: var(--gray-bg);
    position: relative;
}

.automation-content {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.automation-item {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--green-primary);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.1);
}

.automation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.2);
}

.automation-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-text);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.automation-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--green-primary);
}

.automation-image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--gray-light);
    border: 2px solid var(--green-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-md) 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.automation-image-placeholder.maxel {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.02));
    border-width: 3px;
}

.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--green-primary);
    text-align: center;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
    animation: pulse-green 2s ease-in-out infinite;
}

.coming-soon-text {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.coming-soon-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--white);
    opacity: 0.9;
    letter-spacing: 0.05em;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
        border-color: var(--green-primary);
    }
    50% {
        box-shadow: 0 8px 40px rgba(0, 255, 136, 0.5);
        border-color: rgba(0, 255, 136, 0.8);
    }
}

.automation-image-placeholder .placeholder-content {
    text-align: center;
    color: var(--gray-text-light);
}

.automation-image-placeholder .placeholder-content i {
    font-size: 4rem;
    color: var(--green-primary);
    margin-bottom: var(--spacing-sm);
    opacity: 0.6;
}

.automation-image-placeholder .placeholder-content p {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

.automation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.automation-item:hover .automation-img {
    transform: scale(1.05);
}

.automation-description {
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text);
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

/* ====================================
   SLIDE 4: LA OFERTA
   ==================================== */
.slide-offer {
    background: var(--gray-bg);
    position: relative;
}

.slide-offer::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--green-primary), transparent);
    animation: slideInLeft 1s ease-out;
}

.offer-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.benefit-box {
    background: var(--white);
    border: 2px solid var(--green-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
}

.benefit-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.benefit-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--green-primary);
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.benefit-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--green-primary);
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 255, 136, 0.3));
}

.benefit-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.benefit-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text);
    line-height: 1.8;
    margin: 0;
}

.benefit-text strong {
    font-weight: var(--font-weight-bold);
    color: var(--gray-text);
    position: relative;
}

.benefit-text strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-primary);
    opacity: 0.3;
    animation: slideInLeft 0.8s ease-out 0.7s both;
}

/* ====================================
   SLIDE 5: CALL TO ACTION
   ==================================== */
.slide-cta {
    background: var(--gray-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slide-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite;
}

.slide-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
    animation: slideInLeft 1s ease-out;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.cta-question {
    font-size: 1.5rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text);
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-sm);
    opacity: 0;
}

.cta-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--green-primary);
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.cta-button {
    background: var(--green-primary);
    color: var(--gray-text);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3), 0 0 0 0 rgba(0, 255, 136, 0.4);
    min-width: 400px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: var(--green-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.5), 0 0 0 4px rgba(0, 255, 136, 0.2);
    letter-spacing: 0.12em;
}

.cta-button:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-footer {
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    color: var(--gray-text-light);
    margin-top: var(--spacing-xl);
    line-height: 1.6;
    position: relative;
    padding-top: var(--spacing-md);
    opacity: 0;
}

.cta-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--green-primary);
    opacity: 0.5;
    animation: slideInLeft 0.8s ease-out 0.8s both;
}

/* ====================================
   NAVEGACIÓN Y CONTROLES
   ==================================== */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    color: var(--gray-text);
    margin-top: 0;
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--green-primary);
    color: var(--gray-text);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
}

.swiper-button-next {
    right: 20px;
}

.swiper-button-prev {
    left: 20px;
}

.swiper-pagination {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    width: auto !important;
    pointer-events: none;
}

.swiper-pagination-bullet {
    pointer-events: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--gray-medium);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--green-primary);
    opacity: 1;
    transform: scale(1.3);
}

.slide-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-text);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-slide {
    color: var(--green-primary);
    font-weight: var(--font-weight-bold);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .success-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 600px;
    }
    
    .success-item.featured-success {
        transform: scale(1);
        order: -1;
    }
    
    .success-item.featured-success:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .swiper {
        overflow-y: visible;
        height: auto;
        min-height: 100vh;
    }
    
    .swiper-slide {
        padding: var(--spacing-md);
        min-height: auto;
        height: auto;
        align-items: flex-start;
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
        overflow-y: visible;
    }
    
    .swiper-wrapper {
        align-items: flex-start;
        height: auto;
    }
    
    .logo-container-fixed {
        top: 20px;
        left: 20px;
        width: 80px;
    }
    
    .logo-hero-image {
        width: 200px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-text {
        font-size: 1.125rem;
    }
    
    .hero-image-placeholder {
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 100%;
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
    
    .success-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 100%;
    }
    
    .success-item.featured-success {
        transform: scale(1);
    }
    
    .success-item.featured-success:hover {
        transform: translateY(-5px);
    }
    
    .success-image {
        height: 200px;
    }
    
    .success-item.featured-success .success-image {
        height: 220px;
    }
    
    .success-content-inner {
        padding: var(--spacing-md);
    }
    
    .success-item.featured-success .success-content-inner {
        padding: var(--spacing-lg);
    }
    
    .success-title {
        font-size: 1.2rem;
    }
    
    .success-item.featured-success .success-title {
        font-size: 1.3rem;
    }
    
    .metric-number {
        font-size: 2.5rem;
    }
    
    .automation-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .automation-image-placeholder {
        height: 250px;
    }
    
    .slide-content {
        padding-bottom: var(--spacing-xl);
    }
    
    .success-content,
    .automation-content {
        padding-bottom: var(--spacing-xl);
    }
    
    .cta-button {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
        position: fixed !important;
        z-index: 1000 !important;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .swiper-button-next {
        right: 10px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
    
    .swiper-pagination {
        position: fixed !important;
        bottom: 20px !important;
        z-index: 1000 !important;
    }
    
    .slide-counter {
        bottom: 20px;
        right: 20px;
        z-index: 1001 !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .logo-container-fixed {
        top: 15px;
        left: 15px;
        width: 60px;
    }
    
    .logo-hero-image {
        width: 150px;
    }
    
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .hero-image-placeholder {
        height: 250px;
    }
    
    .cta-button {
        font-size: 0.75rem;
        padding: var(--spacing-sm);
    }
}

/* ====================================
   ACCESIBILIDAD
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================
   OPTIMIZACIONES DE RENDIMIENTO
   ==================================== */
.swiper-slide {
    will-change: transform, opacity;
}
