:root {
    --rojo: #c0202c;
    --rojo-oscuro: #9a1822;
    --negro: #111111;
    --negro-suave: #2a2a2a;
    --tinta: #444444;
    --gris: #6b6b6b;
    --crema-clara: #faf6ec;
    --blanco-papel: #fefcf7;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--negro-suave);
    background: var(--crema-clara);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 15%, rgba(192, 32, 44, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(17, 17, 17, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.006) 2px, rgba(0, 0, 0, 0.006) 4px);
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(0.85rem, 2.5vh, 1.75rem) clamp(1rem, 4vw, 3rem);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: clamp(0.85rem, 2vh, 1.4rem);
    border-bottom: 1px solid rgba(192, 32, 44, 0.18);
    position: relative;
    animation: fadeDown 0.8s ease-out both;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 10vw, 110px);
    height: 2px;
    background: var(--rojo);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 1.6vw, 1.1rem);
}

.logo-img {
    width: clamp(52px, 8vw, 78px);
    height: clamp(52px, 8vw, 78px);
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

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

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    color: var(--negro);
    letter-spacing: 0.01em;
}

.logo-name .accent { color: var(--rojo); }

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.6rem, 0.95vw, 0.7rem);
    font-weight: 500;
    color: var(--rojo);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-top: clamp(0.25rem, 0.5vh, 0.4rem);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 4vh, 2.5rem) 0;
}

.welcome {
    text-align: center;
    max-width: 720px;
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.welcome-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.62rem, 0.95vw, 0.72rem);
    font-weight: 500;
    color: var(--rojo);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    margin-bottom: clamp(0.7rem, 1.5vh, 1rem);
    animation: fadeUp 0.7s ease-out 0.15s both;
}

.welcome-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.85rem, 5.2vw, 3.4rem);
    line-height: 1.08;
    color: var(--negro);
    margin: 0 0 clamp(0.75rem, 1.8vh, 1.1rem);
    animation: fadeUp 0.7s ease-out 0.25s both;
}

.welcome-title em {
    font-style: italic;
    color: var(--rojo);
    font-weight: 500;
}

.welcome-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.92rem, 1.55vw, 1.05rem);
    line-height: 1.65;
    color: var(--tinta);
    max-width: 580px;
    margin: 0 auto;
    animation: fadeUp 0.7s ease-out 0.35s both;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: clamp(1.1rem, 2.2vh, 1.6rem) 0;
    animation: fadeUp 0.7s ease-out 0.45s both;
}

.ornament-line {
    width: clamp(45px, 9vw, 90px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rojo), transparent);
}

.ornament-mark {
    width: 6px;
    height: 6px;
    background: var(--rojo);
    transform: rotate(45deg);
}

.cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 2vw, 1.5rem);
    width: 100%;
    max-width: 880px;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

@media (min-width: 720px) {
    .cards-row { grid-template-columns: 1fr 1fr; }
}

.nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: var(--blanco-papel);
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 3px;
    padding: clamp(1.6rem, 3.8vh, 2.5rem) clamp(1.25rem, 3vw, 2rem);
    color: var(--negro);
    overflow: hidden;
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s ease;
    box-shadow:
        0 1px 2px rgba(17, 17, 17, 0.04),
        0 8px 20px -8px rgba(17, 17, 17, 0.1);
    min-height: clamp(190px, 30vh, 250px);
    animation: fadeUp 0.7s ease-out both;
}

.nav-card:nth-child(1) { animation-delay: 0.55s; }
.nav-card:nth-child(2) { animation-delay: 0.7s; }

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-top: 1px solid var(--rojo);
    border-right: 1px solid var(--rojo);
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: rgba(192, 32, 44, 0.25);
    box-shadow:
        0 4px 12px rgba(17, 17, 17, 0.06),
        0 24px 40px -12px rgba(192, 32, 44, 0.18);
}

.nav-card:hover::before { width: 72%; }
.nav-card:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}

.nav-card:focus-visible {
    outline: 2px solid var(--rojo);
    outline-offset: 4px;
}

.card-icon {
    width: clamp(40px, 5.5vw, 56px);
    height: clamp(40px, 5.5vw, 56px);
    color: var(--rojo);
    margin-bottom: clamp(0.7rem, 1.4vh, 1rem);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-card:hover .card-icon { transform: scale(1.1); }

.card-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.58rem, 0.92vw, 0.66rem);
    font-weight: 500;
    color: var(--rojo);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: clamp(0.4rem, 1vh, 0.6rem);
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.15;
    color: var(--negro);
    margin: 0 0 clamp(0.4rem, 0.9vh, 0.55rem);
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.82rem, 1.2vw, 0.92rem);
    line-height: 1.55;
    color: var(--gris);
    margin: 0 0 clamp(0.85rem, 1.8vh, 1.2rem);
    max-width: 280px;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.78rem, 1.1vw, 0.85rem);
    font-weight: 500;
    color: var(--negro);
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--negro);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.nav-card:hover .card-cta {
    color: var(--rojo);
    border-color: var(--rojo);
    gap: 0.85rem;
}

.card-cta-arrow {
    width: 14px;
    height: 14px;
}

.site-footer {
    text-align: center;
    padding-top: clamp(0.75rem, 2vh, 1.25rem);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 1vw, 0.78rem);
    color: var(--gris);
    font-weight: 300;
    animation: fadeUp 0.7s ease-out 0.85s both;
}

.site-footer .sep {
    margin: 0 0.6rem;
    color: var(--rojo);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 700px) {
    .welcome-subtitle { display: none; }
    .ornament { margin: 0.6rem 0; }
}

@media (max-width: 480px) {
    .logo-name { font-size: 1.5rem; }
    .nav-card { min-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}