@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    /* Nueva Identidad Cámara de Sevilla */
    --bg: #FFFFFF;
    --bg-soft: #F4F4F5;
    --bg-tint: #FBE8EB;
    --ink: #15110D;
    --ink-soft: #2E2E36;
    --muted: #7A7A82;
    --line: rgba(15,15,20,.10);
    --line-soft: rgba(15,15,20,.06);
    --accent: #C8102E;
    --accent-deep: #8B0A1E;
    --accent-soft: #FBE8EB;

    /* Legacy Map */
    --color-primary: var(--accent);
    --color-primary-dark: var(--accent-deep);
    --color-secondary: var(--ink);
    --color-accent: var(--accent);
    --color-success: var(--ink);

    --color-bg-body: var(--bg);
    --color-bg-card: var(--bg);
    --color-text-main: var(--ink);
    --color-text-muted: var(--muted);

    /* Typography */
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Geist', sans-serif;
    --font-mono: 'Geist Mono', monospace;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15,15,20,.04);
    --shadow-md: 0 8px 24px -8px rgba(15,15,20,.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);

    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 0.95;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Components */

/* Header */
.header-main {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
}

.logo h2 {
    color: var(--accent);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: -0.025em;
}

/* Divider between the institutional logo and the product name */
.logo img + h2 {
    padding-left: 18px;
    border-left: 1px solid var(--line);
    line-height: 1.2;
}

.auth-logo {
    height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

@media (max-width: 600px) {
    .logo {
        gap: 10px;
    }

    .logo img {
        height: 34px;
    }

    .logo img + h2 {
        padding-left: 10px;
        font-size: 1.25rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--accent-deep);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

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

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

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 0.95;
}

.hero-title em {
    color: var(--accent);
    font-style: italic;
}

.badge-subtle {
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 11px;
    background: transparent;
    padding: 0;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Cards */
.card {
    background: var(--bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Quiz Specific */
.question-header {
    margin-bottom: 2rem;
}

.question-meta {
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: block;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
}

.question-context {
    font-size: 1.1rem;
    color: var(--muted);
    font-family: var(--font-body);
    background: var(--bg-soft);
    padding: 1.5rem;
    border-left: 2px solid var(--accent);
    border-radius: 0;
    margin-bottom: 2.5rem;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-label {
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 2px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--color-text-main);
}

.option-card:hover {
    border-color: var(--color-primary);
    background: #f4f7fa;
    transform: translateY(-2px);
}

/* Hide default radio buttons */
.option-label input[type="radio"] {
    display: none;
}

/* Selected state (handled by JS effectively or if we kept radio visible) */
.option-label input[type="radio"]:checked+.option-card {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}


/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.competency-card {
    text-align: center;
}

.competency-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: #f0f4ff;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(50, 100, 255, 0.1);
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

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

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

/* Report Specific */
.prose h1,
.prose h2,
.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.prose ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
}