/* -----------------------------------------------------
   RESET & BASE
----------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0f172a;
    /* dark slate background */
    color: #e5e7eb;
    font-size: 16px;
    line-height: 1.6;
}

/* Layout container */
.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* -----------------------------------------------------
   COLOR TOKENS
----------------------------------------------------- */
:root {
    --bg-page: #0f172a;
    --bg-elevated: #020617;
    --bg-soft: #020617;
    --bg-soft-alt: #020617;
    --border-subtle: rgba(148, 163, 184, 0.3);

    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.12);
    --accent-strong: #16a34a;
    --accent-gradient: linear-gradient(135deg, #22c55e, #0ea5e9);

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-soft: #6b7280;
    --text-strong: #f9fafb;
    --text-link: #38bdf8;

    --danger-soft: rgba(248, 113, 113, 0.12);
    --danger-border: rgba(248, 113, 113, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
    --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.65);
    --blur-bg: blur(18px);
}

/* -----------------------------------------------------
   TYPOGRAPHY
----------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: var(--text-strong);
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
}

h2 {
    font-size: clamp(1.7rem, 2.4vw, 2rem);
}

h3 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

section {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.section-header {
    margin-bottom: 1.8rem;
}

ol {
    padding-left: 1.5rem;
}

.steps-list {

    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-soft);
    max-width: 44rem;
}

/* Lists */
ul {
    margin-bottom: 1rem;
    padding-left: 1.1rem;
}

.check-list {
    padding-left: 0;
}

.check-list li {
    list-style: none;
    margin-bottom: 0.55rem;
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check-list li::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--accent-gradient);
    position: absolute;
    left: 0;
    top: 0.33rem;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.arrow-list li {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

/* Tiny / helper text */
.small-text {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.info-note {
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-subtle);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-muted);
}

/* Links */
a {
    color: var(--text-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------
   HEADER / NAV
----------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: var(--blur-bg);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 55%),
        rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.6rem;
}

.logo-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 10%, #f9fafb, #e5e7eb);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

/* Nav */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.main-nav a:hover {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-strong);
    transform: translateY(-0.5px);
}

.main-nav a.active {
    background: var(--accent-gradient);
    color: #020617 !important;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

/* Primary nav button override */
.main-nav .btn-primary {
    padding-inline: 1rem;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

/* Buttons (global) */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.18s ease, color 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #020617 !important;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.38);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.45);
    text-decoration: none;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.75);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

/* Full-width helper */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.25rem;
}

.menu-icon {
    display: block;
    width: 26px;
    height: 2px;
    background: #e5e7eb;
    position: relative;
    border-radius: 999px;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 2px;
    left: 0;
    background: #e5e7eb;
    border-radius: 999px;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    top: 7px;
}

/* -----------------------------------------------------
   BREADCRUMB
----------------------------------------------------- */
.breadcrumb-wrapper {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 50%),
        rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.6rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.breadcrumb span {
    margin: 0 0.2rem;
}

.breadcrumb a {
    color: var(--text-link);
}

/* -----------------------------------------------------
   SECTIONS & GRID
----------------------------------------------------- */
.section {
    padding: 2.9rem 0;
}

.section-alt {
    padding: 2.9rem 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 55%),
        #020617;
}

.icon-list {
    list-style: none;
}

/* Extra vertical spacing rules inside main content */
.page-main {
    padding-top: 2.5rem;
    /* indent under sticky header */
    padding-bottom: 3.5rem;
}

.page-main .section:first-of-type {
    padding-top: 3.2rem;
    /* more air for first section */
}

.page-main .section+.section {
    padding-top: 2.4rem;
    /* slightly tighter between blocks */
}

/* Grid utility */
.grid {
    display: grid;
    gap: 1.7rem;
    margin-bottom: 0.8rem;
}

.grid-2 {
    grid-template-columns: 1.45fr 1.05fr;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* -----------------------------------------------------
   CARDS
----------------------------------------------------- */
.card {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.93));
    box-shadow: var(--shadow-subtle);
}

.card-neutral {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.09), transparent 55%),
        rgba(15, 23, 42, 0.98);
}

.card-warning {
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.16), transparent 55%),
        rgba(15, 23, 42, 0.98);
    border-color: var(--danger-border);
}

.info-card {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 55%),
        rgba(15, 23, 42, 0.98);
}

/* Image card wrapper */
.img-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-subtle);
    height: min-content;
}

.img-card img {
    display: block;
    width: 100%;
    height: auto;
}

.img-caption {
    padding: 0.7rem 0.95rem 0.9rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* CTA section */
.section-cta {
    text-align: center;
}

.cta-box {
    background: radial-gradient(circle at top center, rgba(34, 197, 94, 0.15), rgba(56, 189, 248, 0.12)),
        #020617;
    border-radius: var(--radius-lg);
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(56, 189, 248, 0.35);
    max-width: 50rem;
    margin: 0 auto;
}

.cta-box.small-cta {
    padding: 1.6rem 1.8rem;
    max-width: 40rem;
}

.cta-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

/* -----------------------------------------------------
   TABLES (GLOBAL & RANKING)
----------------------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    margin-top: 1.3rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #0f172a;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #0f172a;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    min-width: 600px;
    /* Force scroll on very small screens */
}

/* Header styles */
thead tr {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(14, 165, 233, 0.15));
    border-bottom: 2px solid rgba(148, 163, 184, 0.1);
}

th {
    padding: 1.1rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-link);
    text-align: left;
    white-space: nowrap;
}

/* Body styles */
td {
    padding: 1.2rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    vertical-align: middle;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(30, 41, 59, 0.6);
    /* Slightly lighter on hover */
}

/* Specific Columns / Elements */
.table-tag {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    padding: 0.2rem 0rem;
    border-radius: 4px;
    /* background: rgba(56, 189, 248, 0.15); */
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-table:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* -----------------------------------------------------
   FORMS
----------------------------------------------------- */
.contact-form .form-group {
    margin-bottom: 0.9rem;
}

.contact-form label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    outline: none;
    transition: border 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
    background: rgba(15, 23, 42, 0.98);
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
}

.form-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-status {
    font-size: 0.86rem;
}

.form-group.form-group-inline label {
    display: flex;
    align-items: center;
}

#aceptaPoliticas {
    width: auto;
}

/* -----------------------------------------------------
   FAQ ACCORDION
----------------------------------------------------- */
.faq-list {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow-subtle);
}

.faq-item+.faq-item {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0.98rem 1.2rem;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-left: 1rem;
}

.faq-answer {
    display: none;
    padding: 0 1.2rem 0.95rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.faq-answer.active {
    display: block;
}

/* -----------------------------------------------------
   COOKIE BANNER
----------------------------------------------------- */
#btnOpenCookieSettings {
    margin-bottom: 0.8rem;
}

.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    display: none;
    z-index: 2000;
    padding: 0 0 1.1rem;
    pointer-events: none;
}

.cookie-banner-inner {
    pointer-events: auto;
    width: min(1040px, 94%);
    margin: 0 auto;
    padding: 1rem 1.2rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cookie-buttons {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.cookie-modal-content {
    position: relative;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 65%),
        #020617;
    padding: 1.9rem 1.9rem 1.4rem;
    width: min(520px, 92%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: var(--shadow-soft);
    color: var(--text-main);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    position: absolute;
    right: 1.1rem;
    top: 0.8rem;
    cursor: pointer;
    color: var(--text-soft);
}

/* Cookie switches */
.cookie-form {
    margin-top: 1rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 0.87rem;
}

.cookie-option div {
    width: 85%;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option strong {
    color: var(--text-main);
}

.switch {
    position: relative;
    width: 42px;
    height: 22px;
    display: inline-block;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background: rgba(148, 163, 184, 0.7);
    inset: 0;
    border-radius: 999px;
    transition: 0.24s;
}

.slider:before {
    content: "";
    width: 18px;
    height: 18px;
    background: #020617;
    position: absolute;
    border-radius: 999px;
    top: 2px;
    left: 2px;
    transition: 0.24s;
}

input:checked+.slider {
    background: var(--accent-gradient);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.cookie-modal-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.cookie-link-hint {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */
.site-footer {
    background: radial-gradient(circle at top center, rgba(34, 197, 94, 0.09), transparent 55%),
        #020617;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(15, 23, 42, 1);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.footer-top h3,
.footer-top h4 {
    color: var(--text-strong);
    margin-bottom: 0.7rem;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column li {
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.footer-column a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 0.9rem 0 1.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.footer-age {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */
@media (max-width: 980px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    }
}

@media (max-width: 860px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding-inline: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 0.4rem;
        background: rgba(15, 23, 42, 0.98);
        border-radius: var(--radius-md);
        border: 1px solid rgba(148, 163, 184, 0.35);
        padding: 0.6rem 0.7rem;
        min-width: 210px;
        display: none;
        box-shadow: var(--shadow-soft);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .main-nav a {
        width: 100%;
        padding: 0.55rem 0.8rem;
    }

    .main-nav.active {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .breadcrumb-wrapper {
        margin-bottom: 1.2rem;
    }

    .section {
        padding: 2.2rem 0;
    }

    .section-alt {
        padding: 2.2rem 0;
    }

    .page-main {
        padding-top: 2.2rem;
    }

    .page-main .section:first-of-type {
        padding-top: 2.6rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-inner {
        padding: 0.85rem 0.9rem;
    }

    .cta-box {
        padding: 1.8rem 1.3rem;
    }

    .header-inner {
        padding-inline: 0;
    }
}