/* ==========================================================================
   AITECO - LANDING PAGE STYLES
   Agencia de Automatización e Inteligencia Artificial
   ========================================================================== */

/* ==========================================================================
   VARIABLES Y RESET
   ========================================================================== */

:root {
    /* Colores principales */
    --color-primary: #0F60A4;
    --color-primary-dark: #0A4578;
    --color-primary-light: #1A7BC9;
    --color-white: #FFFFFF;
    --color-gray: #F4F4F4;
    --color-gray-dark: #333333;
    --color-gray-medium: #666666;
    --color-black: #000000;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0F60A4 0%, #1A7BC9 100%);
    --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
    
    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   SPLASH SCREEN - MEJORADO CON ESLOGAN Y NODOS
   ========================================================================== */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.5s ease 5s forwards;
}

.splash-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.splash-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Eslogan del splash */
.splash-tagline {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInTagline 1s ease 2.5s forwards;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInTagline {
    to {
        opacity: 1;
    }
}

/* Canvas para efectos de nodos */
#splash-nodes-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeInNodes 1s ease 2s forwards;
}

@keyframes fadeInNodes {
    to {
        opacity: 0.6;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ==========================================================================
   STICKY HEADER
   ========================================================================== */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(-100%);
    transition: all var(--transition-normal);
}

.sticky-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo .logo-img {
    height: 50px;
    width: auto;
}

.header-phrase {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
}

.header-cta .btn-primary {
    padding: 12px 30px;
    font-size: 0.95rem;
}

/* Header Responsive - ARREGLADO: Centrar botón en móvil */
@media (max-width: 768px) {
    .header-phrase {
        display: none;
    }
    
    .header-logo .logo-img {
        height: 40px;
    }
    
    .header-container {
        justify-content: center;
        gap: 15px;
    }
    
    .header-cta {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .header-cta .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-hero,
.btn-offer,
.btn-offer-featured,
.btn-submit {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(15, 96, 164, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 96, 164, 0.4);
}

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

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.btn-hero {
    padding: 18px 45px;
    font-size: 1.2rem;
}

.btn-offer {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    width: 100%;
    margin-top: 20px;
}

.btn-offer:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.btn-offer-featured {
    background: var(--gradient-primary);
    color: var(--color-white);
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(15, 96, 164, 0.3);
}

.btn-offer-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 96, 164, 0.4);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0A4578 0%, #0F60A4 50%, #1A7BC9 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(26, 123, 201, 0.3) 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    max-width: 300px;
    margin: 0 auto 40px;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 50px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-hero {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}

.hero-cta .btn-hero:hover {
    background: transparent;
    color: var(--color-white);
}

/* ARREGLADO: Botón secundario "Ver video" con hover correcto */
.hero-cta .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
    background-color: transparent;
}

.hero-cta .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

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

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-logo {
        max-width: 200px;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn-hero {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   TIPOGRAFÍA DE SECCIONES
   ========================================================================== */

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-gray-medium);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

/* ==========================================================================
   VSL SECTION - CON EFECTOS DE NODOS EN EL FONDO
   ========================================================================== */

.vsl-section {
    padding: 100px 0;
    background-color: var(--color-gray);
    position: relative;
    overflow: hidden;
}

/* Canvas para efectos de nodos en el fondo */
#vsl-nodes-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 0;
}

.vsl-section .container {
    position: relative;
    z-index: 1;
}

.vsl-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* MODIFICADO: Reducir altura de la carcasa del celular */
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9 / 18.5; /* Cambiado de 19.5 a 18.5 para reducir altura */
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.vsl-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-button {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.vsl-subtitle {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-gray-dark);
    margin-top: 40px;
}

/* VSL Responsive */
@media (max-width: 768px) {
    .vsl-section {
        padding: 60px 0;
    }
    
    .phone-frame {
        max-width: 320px;
    }
}

/* ==========================================================================
   SERVICIOS SECTION
   ========================================================================== */

.servicios-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.servicio-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    border: 2px solid transparent;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.servicio-featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(15, 96, 164, 0.03) 0%, rgba(26, 123, 201, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(15, 96, 164, 0.3);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(15, 96, 164, 0.3);
}

.servicio-icon i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.servicio-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
}

.servicio-descripcion {
    margin-bottom: 25px;
}

.servicio-detalle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: 15px;
}

.servicio-texto {
    font-size: 1rem;
    color: var(--color-gray-medium);
    text-align: center;
    line-height: 1.6;
}

.servicio-precio {
    text-align: center;
    margin: 30px 0 20px;
}

.precio-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
}

.precio-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gray-medium);
    margin-left: 5px;
}

/* Servicios Responsive */
@media (max-width: 768px) {
    .servicios-section {
        padding: 60px 0;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   TECNOLOGÍAS SECTION
   ========================================================================== */

.tecnologias-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.tecnologias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-top: 60px;
    align-items: center;
}

.tech-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    min-height: 140px;
}

.tech-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-logo img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.tech-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Tecnologías Responsive */
@media (max-width: 768px) {
    .tecnologias-section {
        padding: 60px 0;
    }
    
    .tecnologias-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .tech-logo {
        padding: 20px;
        min-height: 100px;
    }
    
    .tech-logo img {
        max-width: 90px;
        max-height: 45px;
    }
}

/* ==========================================================================
   AUTOMATIZACIONES SECTION
   ========================================================================== */

.automatizaciones-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0A4578 0%, #0F60A4 100%);
    color: var(--color-white);
}

.automatizaciones-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.automatizaciones-text .section-title {
    color: var(--color-white);
    text-align: left;
}

.automatizaciones-descripcion {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
}

.automatizaciones-beneficios {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
}

.automatizaciones-text strong {
    color: var(--color-white);
    font-weight: 700;
}

.automatizaciones-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.automation-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.automation-icon {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition-normal);
}

.automation-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.automation-icon i {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.automation-icon span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
}

/* Automatizaciones Responsive */
@media (max-width: 968px) {
    .automatizaciones-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .automatizaciones-text .section-title {
        text-align: center;
    }
    
    .automatizaciones-descripcion,
    .automatizaciones-beneficios {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .automatizaciones-section {
        padding: 60px 0;
    }
    
    .automation-icons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   CONTACTO SECTION
   ========================================================================== */

.contacto-section {
    padding: 100px 0;
    background-color: var(--color-gray);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Información de contacto */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all var(--transition-normal);
}

.info-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.8rem;
    color: var(--color-white);
}

.info-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray-dark);
    margin-bottom: 8px;
}

.info-content a {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 96, 164, 0.4);
}

.social-links a i {
    font-size: 1.3rem;
    color: var(--color-white);
}

/* Contacto Responsive */
@media (max-width: 768px) {
    .contacto-section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--color-gray-dark);
    padding: 40px 0;
    color: var(--color-white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

.footer-tagline {
    font-weight: 300;
    font-size: 0.9rem;
}

/* ==========================================================================
   ANIMACIONES Y UTILIDADES
   ========================================================================== */

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll offset para header fijo */
section {
    scroll-margin-top: 80px;
}

/* ==========================================================================
   RESPONSIVE GENERAL
   ========================================================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-hero {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

