/*
Theme Name: APPIOS
Author: APPIOS SPA
Author URI: https://appios.cl
Description: Theme for APPIOS
Version: 1.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
*/

/* Variables */
:root {
    --color-white: #ffffff;
    --color-cream: #fffaf2;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Aurora Borealis Theme Colors */
    --color-aurora-teal: #64e9c4;
    --color-aurora-blue: #50a7ea;
    --color-aurora-purple: #8265e4;
    --color-aurora-magenta: #d264e9;
    --color-aurora-dark: #14203e;
    --color-pink-pearl: #e8c3ce;
    --color-soft-pink: #f4d9e2;
    --color-aurora-mint: #8df3d8;
    
    /* Nuevos colores para el gradiente */
    --color-aurora-600: #8265e4;
    --color-purple-600: #d264e9;
    --color-pink-600: #e65ef5;
    
    /* Gradientes */
    --gradient-aurora: linear-gradient(135deg, var(--color-aurora-blue), var(--color-aurora-purple), var(--color-aurora-magenta));
    --gradient-text: linear-gradient(90deg, var(--color-aurora-purple), var(--color-aurora-magenta), var(--color-aurora-blue));
    --gradient-subtle: linear-gradient(90deg, var(--color-aurora-mint), var(--color-soft-pink), var(--color-pink-pearl));
    --gradient-button: linear-gradient(to right, var(--color-aurora-600), var(--color-purple-600));
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Estilos Globales */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajuste para el scroll con navbar fija */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-aurora-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: 1280px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Fondos y Efectos Aurora */
.aurora-bg {
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Espacio para la navbar fija */
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(130, 101, 228, 0.2) 0%, rgba(0, 0, 0, 0) 70%),
                radial-gradient(ellipse at bottom left, rgba(100, 233, 196, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.aurora-overlay {
    background: url('../images/aurora-bg.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    mix-blend-mode: screen;
}

.aurora-card {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--color-white);
    box-shadow: var(--shadow-md),
                0 0 20px rgba(130, 101, 228, 0.15);
    border: 1px solid var(--color-soft-pink);
    overflow: visible;
}

.aurora-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-lg),
                0 5px 30px rgba(210, 100, 233, 0.3);
}

.aurora-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        rgba(80, 167, 234, 0.5),
        rgba(130, 101, 228, 0.5), 
        rgba(210, 100, 233, 0.5)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.aurora-pulse {
    background: radial-gradient(circle, rgba(80, 167, 234, 0.2) 0%, rgba(130, 101, 228, 0.15) 50%, rgba(210, 100, 233, 0.1) 100%);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

/* Textos y Títulos */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    letter-spacing: -0.02em;
    padding: 0.05em 0;
    overflow: visible;
}

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-button);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md),
                0 0 15px rgba(130, 101, 228, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--color-purple-600), var(--color-aurora-600));
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg),
                0 0 20px rgba(130, 101, 228, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-aurora-purple);
    color: var(--color-aurora-600, #8265e4);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-aurora-purple);
    border: 2px solid var(--color-aurora-600, #8265e4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary:hover {
    background: var(--gradient-button);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Tarjetas y Contenedores */
.benefit-card, .step-card, .testimonial-card, .pricing-card {
    transition: all 0.3s ease-in-out;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.benefit-card:hover, .step-card:hover, .testimonial-card:hover, .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Logo */
.aurora-logo {
    position: relative;
    color: var(--color-gray-800);
}

.aurora-logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.aurora-logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Media Queries */
@media (max-width: 768px) {
    .gradient-text {
        display: inline-block;
        overflow: visible;
        padding: 0.1em 0;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .animate-blob {
        display: none;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .container, .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    /* Asegurar que ningún elemento se desborde horizontalmente */
    * {
        max-width: 100%;
    }
}

/* Animaciones */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Nuevas animaciones y elementos */
@keyframes blob {
    0% {
        transform: scale(1) translate(10px, -10px);
    }
    33% {
        transform: scale(1.1, 0.9) translate(20px, 20px) rotate(5deg);
    }
    66% {
        transform: scale(0.9, 1.1) translate(-10px, 10px) rotate(-5deg);
    }
    100% {
        transform: scale(1) translate(10px, -10px);
    }
}

.animate-blob {
    animation: blob 7s infinite alternate;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-700 {
    animation-delay: 0.7s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.7s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Estilización para logos */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    filter: grayscale(1) opacity(0.7);
    transition: all 0.3s ease;
}

.logo-grid:hover {
    filter: grayscale(0) opacity(1);
}

.logo-grid img {
    transition: transform 0.3s ease;
}

.logo-grid img:hover {
    transform: scale(1.1);
}

/* Nuevos elementos para maquetación avanzada */
.gradient-border {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        var(--color-aurora-purple),
        var(--color-aurora-magenta),
        var(--color-aurora-teal)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Nuevos estilos para las estadísticas */
.stat-card {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-100);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-aurora-purple);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-aurora-purple);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

/* Efectos de hover para los botones */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Efectos de resplandor para destacar elementos */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 25px rgba(130, 101, 228, 0);
    transition: box-shadow 0.3s ease;
}

.glow:hover::after {
    box-shadow: 0 0 25px rgba(130, 101, 228, 0.5);
}

/* Estilizado para las burbujas de chat */
.chat-bubble {
    position: relative;
    padding: 1rem;
    border-radius: 0.75rem;
    max-width: 20rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.chat-bubble-user {
    background-color: var(--color-aurora-mint);
    border: 1px solid var(--color-aurora-teal);
    color: var(--color-aurora-dark);
    border-top-left-radius: 0;
}

.chat-bubble-assistant {
    background-color: var(--color-aurora-purple);
    color: var(--color-white);
    border-top-right-radius: 0;
    margin-left: auto;
}

/* Efecto de zoom */
.zoom-on-hover {
    overflow: hidden;
}

.zoom-on-hover img {
    transition: transform 0.5s ease;
}

.zoom-on-hover:hover img {
    transform: scale(1.05);
}

/* Efecto de movimiento paralaje */
.parallax {
    transform: translateZ(0);
    transition: transform 0.2s ease-out;
}

.parallax:hover {
    z-index: 1;
}

/* Estilos para el formulario */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-aurora-purple);
    box-shadow: 0 0 0 2px rgba(130, 101, 228, 0.2);
}

/* Animación de carga para simular la IA trabajando */
.aurora-processing {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-aurora-purple), 
        var(--color-aurora-magenta), 
        var(--color-aurora-teal));
    background-size: 300% 100%;
    animation: processing 2s infinite linear;
    border-radius: 4px;
}

@keyframes processing {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Hover para tarjetas */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Parallaje */
.parallax:hover {
    z-index: 1;
}

/* Aspect ratio containers */
.aspect-w-16 {
    position: relative;
    padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%);
    --tw-aspect-w: 16;
}

.aspect-h-9 {
    --tw-aspect-h: 9;
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Estilos para el formulario */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-aurora-purple);
    box-shadow: 0 0 0 2px rgba(130, 101, 228, 0.2);
}

/* Navbar Styles */
.navbar-fixed {
    background-color: rgba(255, 250, 242, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(232, 195, 206, 0.3);
}

.nav-link {
    color: var(--color-aurora-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-aurora-purple);
}

.nav-link.active {
    color: var(--color-aurora-magenta);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, var(--color-cream) 0%, rgba(255, 250, 242, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../images/aurora-overlay.svg') no-repeat;
    background-size: cover;
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Footer Styles */
footer {
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    color: var(--color-gray-700);
    border-top: 1px solid rgba(232, 195, 206, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(130, 101, 228, 0.1) 0%, rgba(0, 0, 0, 0) 70%),
                radial-gradient(ellipse at bottom left, rgba(100, 233, 196, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

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

footer h3 {
    position: relative;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--gradient-aurora);
    border-radius: 3px;
}

footer a {
    color: var(--color-gray-600);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

footer a:hover {
    color: var(--color-aurora-purple);
    transform: translateX(3px);
}

footer .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(130, 101, 228, 0.1);
    color: var(--color-aurora-purple);
    transition: all 0.3s ease;
}

footer .social-link:hover {
    background: var(--gradient-aurora);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

footer .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

footer .contact-item i {
    background: linear-gradient(135deg, var(--color-aurora-blue), var(--color-aurora-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1rem;
    margin-right: 12px;
}

footer .footer-logo {
    position: relative;
    margin-bottom: 20px;
}

footer .copyright {
    position: relative;
    padding: 20px 0;
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

footer .copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-soft-pink), transparent);
}

/* Cards & Features */
.feature-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-pink-pearl);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md),
                0 5px 15px rgba(210, 100, 233, 0.2);
    border-color: var(--color-aurora-teal);
}

/* Form Elements */
input, textarea, select {
    border: 1px solid var(--color-gray-300);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-aurora-teal);
    box-shadow: 0 0 0 3px rgba(100, 233, 196, 0.2);
}

/* Custom accent elements */
.accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-aurora-magenta);
    display: inline-block;
    margin-right: 0.5rem;
}

.accent-line {
    width: 3rem;
    height: 4px;
    background: var(--gradient-aurora);
    border-radius: 2px;
    margin: 1rem 0;
}

/* Pricing Section */
.pricing-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    transition: all 0.4s ease;
}

.pricing-card.featured {
    border: none;
    position: relative;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-aurora);
    border-radius: inherit;
    z-index: -1;
}

.pricing-card-header {
    border-bottom: 1px solid var(--color-pink-pearl);
}

.price {
    color: var(--color-aurora-purple);
    font-weight: 700;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-soft-pink);
}

.quote-icon {
    color: var(--color-aurora-magenta);
    opacity: 0.2;
    font-size: 2rem;
}

/* Aurora Effects */
.aurora-glow {
    position: relative;
}

.aurora-glow::after {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    background: var(--gradient-aurora);
    border-radius: inherit;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.aurora-glow:hover::after {
    opacity: 0.8;
}

/* Section Backgrounds */
.section-alt {
    background-color: rgba(232, 195, 206, 0.1);
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: var(--color-aurora-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/aurora-bg.svg') no-repeat;
    background-position: bottom;
    background-size: cover;
    opacity: 0.4;
    mix-blend-mode: soft-light;
}

/* Text highlights */
.text-highlight {
    position: relative;
    z-index: 1;
}

.text-highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.3em;
    bottom: 0.1em;
    left: 0;
    z-index: -1;
    background: linear-gradient(to right, var(--color-aurora-mint), var(--color-pink-pearl));
    opacity: 0.5;
}

/* Icon styles */
.icon-circle {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-aurora-purple);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.icon-circle:hover {
    background: var(--gradient-aurora);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Cards enhancements */
.card-enhanced {
    background: var(--color-white);
    border-radius: 1rem;
    border: 1px solid var(--color-soft-pink);
    box-shadow: var(--shadow), 0 5px 15px rgba(130, 101, 228, 0.05);
    transition: all 0.3s ease;
}

.card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 10px 20px rgba(130, 101, 228, 0.2);
}

/* Aurora badge */
.aurora-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    background: linear-gradient(90deg, var(--color-aurora-purple), var(--color-aurora-magenta));
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-aurora-purple), var(--color-pink-pearl));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--color-aurora-magenta), var(--color-aurora-teal));
} 