/* ===== CSS Variables & Reset ===== */
:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
}

.dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===== Container ===== */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 56rem;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
}

.header-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--primary));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--foreground));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: transparent;
    color: hsl(var(--foreground));
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: hsl(var(--accent));
}

.icon-moon {
    display: none;
}

.dark .icon-sun {
    display: none;
}

.dark .icon-moon {
    display: block;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: transparent;
    color: hsl(var(--foreground));
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.nav-mobile.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}

.nav-mobile .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    width: 100%;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 42rem;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-official {
    margin-bottom: 2rem;
}

.official-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
}

.official-badge strong {
    font-family: monospace;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-muted {
    background-color: hsl(var(--muted) / 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

/* ===== Cards ===== */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Steps ===== */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    padding: 0;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.step-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    display: block;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: hsl(var(--muted-foreground));
}

.step-tip {
    padding: 1rem 1.5rem;
    padding-left: 6rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.tip-icon {
    margin-right: 0.25rem;
}

@media (max-width: 640px) {
    .step-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-tip {
        padding-left: 1.5rem;
    }
}

/* ===== Requirements Grid ===== */
.requirements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .requirements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.requirement-card {
    padding: 1.5rem;
}

.requirement-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.requirement-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.requirement-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.requirement-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.requirement-list svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: hsl(var(--primary));
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    background: transparent;
    border: none;
    color: hsl(var(--foreground));
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: hsl(var(--accent) / 0.5);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: hsl(var(--muted-foreground));
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid hsl(var(--border));
    background-color: hsl(var(--muted) / 0.3);
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.official-url {
    font-family: monospace;
    background-color: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid hsl(var(--border));
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-small {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.cookie-consent.active {
    display: flex;
}

.cookie-content {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    text-align: center;
}

.cookie-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cookie-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.cookie-link {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: underline;
}

.cookie-link:hover {
    color: hsl(var(--foreground));
}

/* ===== Alert (for Nosotros page) ===== */
.alert {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.alert-primary {
    border-color: hsl(var(--primary) / 0.5);
    background-color: hsl(var(--primary) / 0.05);
}

.alert-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.alert-icon {
    flex-shrink: 0;
    color: hsl(var(--primary));
}

.alert-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-content p {
    font-size: 1rem;
}

/* ===== Page Header (for Nosotros) ===== */
.page-header {
    text-align: center;
    padding: 4rem 0 3rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Info Card (for Nosotros) ===== */
.info-card {
    margin-bottom: 2rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-card-icon {
    color: hsl(var(--primary));
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.info-card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-box {
    background-color: hsl(var(--muted) / 0.5);
    padding: 1rem;
    border-radius: var(--radius);
}

.info-box h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box ul {
    list-style: none;
    font-size: 0.875rem;
}

.info-box li {
    margin-bottom: 0.25rem;
}

.divider {
    border: none;
    border-top: 1px solid hsl(var(--border));
    margin: 1.5rem 0;
}

.info-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-section h4 svg {
    color: hsl(var(--primary));
}

.info-section p,
.info-section ul {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.info-section ul {
    list-style: none;
    margin-top: 0.5rem;
}

.info-section li {
    margin-bottom: 0.25rem;
}

/* ===== Utility Classes ===== */
.text-muted {
    color: hsl(var(--muted-foreground));
}

.font-mono {
    font-family: monospace;
}

.bg-muted {
    background-color: hsl(var(--muted));
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.rounded {
    border-radius: 0.25rem;
}

.ml-1 {
    margin-left: 0.25rem;
}
