/* assets/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;900&display=swap');

:root {
    --bg-color: #4a5775;
    --bg-secondary: #182438;
    --text-primary: #000000;
    --text-secondary: #0a111b;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

header.scrolled .logo,
header.scrolled .nav-links li a {
    color: var(--text-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form inputs */
input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Light Themes */
html.theme-light {
    --bg-color: #e2e8f0;
    /* slater-200 grisaceo */
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(15, 23, 42, 0.25);
    /* Bordes más oscuros */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

html.theme-light-blue {
    --bg-color: #dbeafe;
    /* blue-100 gris azulado */
    --bg-secondary: #eff6ff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --accent-primary: #0284c7;
    --accent-secondary: #0369a1;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(2, 132, 199, 0.35);
    /* Bordes azules remarcados */
    --glass-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.1);
}

html.theme-light-green {
    --bg-color: #dcfce7;
    /* green-100 */
    --bg-secondary: #f0fdf4;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(16, 185, 129, 0.35);
    /* Bordes verdes remarcados */
    --glass-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.1);
}

/* Sunset Theme (Atardecer) */
html.theme-sunset {
    --bg-color: #2a1118;
    --bg-secondary: #3b1725;
    --text-primary: #fdf2f8;
    --text-secondary: #fbcfe8;
    --accent-primary: #f97316;
    --accent-secondary: #db2777;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(59, 23, 37, 0.6);
    --glass-border: rgba(249, 115, 22, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(219, 39, 119, 0.2);
}

/* Fix input colors for light themes */
html[class*="theme-light"] input,
html[class*="theme-light"] select,
html[class*="theme-light"] textarea {
    background: #ffffff;
    color: var(--text-primary);
}

html[class*="theme-light"] input:focus,
html[class*="theme-light"] select:focus,
html[class*="theme-light"] textarea:focus {
    background: #ffffff;
}

/* Overrides for light themes on text that is forced white in inline styles */
html[class*="theme-light"] .hero h1,
html[class*="theme-light"] .hero p,
html[class*="theme-light"] section h3,
html[class*="theme-light"] section .price-value,
html[class*="theme-light"] .featured-card h3 {
    color: var(--text-primary) !important;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
    /* Difuminado externo blanco */
}

/* Special Case for Hero which might need it for contrast */
html[class*="theme-light"] .hero-text {
    color: var(--text-primary) !important;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
}

html[class*="theme-light"] select:focus,
html[class*="theme-light"] textarea:focus {
    background: #ffffff;
}

/* Nav links in light mode */
html[class*="theme-light"] .nav-links li a:not(.btn) {
    background: #1e293b;
    /* Gris oscuro */
    color: #fff !important;
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    text-shadow: none !important;
    font-size: 0.9rem;
    font-weight: 600;
}

html[class*="theme-light"] .nav-links li a:not(.btn):hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}