/* ==========================================================================

VARIABLES & CONFIGURACIÓN BASE
========================================================================== */
:root {
--color-paper: #F6F4F1;
--color-stone: #E4DED2;
--color-coral: #F95C4B;
--color-coral-hover: #e04838;
--color-black: #111111;
--color-white: #FFFFFF;
--color-text-muted: #555555;

--font-serif: 'Playfair Display', Georgia, serif;
--font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

--transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ==========================================================================
2. ESTRUCTURA HERO
========================================================================== */
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 4rem 1.5rem;
background-color: var(--color-paper);
}

.hero-container {
position: relative;
z-index: 2;
max-width: 1100px;
width: 100%;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr;
gap: 2.5rem;
align-items: center;
}

@media (min-width: 900px) {
.hero-container {
grid-template-columns: 1.1fr 1fr;
gap: 4rem;
}
}

/* ==========================================================================
   MODO SOLO LOGO (temporal)
   ========================================================================== */
.hero-container.hero-container--solo {
grid-template-columns: 1fr;
justify-items: center;
gap: 2.5rem;
text-align: center;
}

.hero-container.hero-container--solo .logo-wrapper {
max-width: 560px;
}

.cta-solo-wrap {
opacity: 0;
transform: translateY(16px);
animation: fadeInUp 0.9s var(--transition-smooth) forwards 3.4s;
}

/* ==========================================================================
3. ANIMACIÓN DE DIBUJO SVG (CSS PURO SIN JS)
========================================================================== */
.logo-wrapper {
width: 100%;
max-width: 520px;
margin: 0 auto;
filter: drop-shadow(0 10px 20px rgba(0,0,0,0.04));
}

.animated-logo {
width: 100%;
height: auto;
display: block;
}

/* Autodibujo: trazos centrales que se revelan con stroke-dashoffset */
.mask-stroke {
fill: none;
stroke: white;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 1;
stroke-dashoffset: 1;
animation: drawStroke var(--dur, 0.8s) var(--transition-smooth) var(--delay, 0s) forwards;
}

/* Secuencia: texto superior -> jabalí -> KITAM -> by JuanPa */
.step-1 { --delay: 0.2s; --dur: 0.8s; }
.step-2 { --delay: 1.0s; --dur: 1.2s; }
.step-3 { --delay: 2.2s; --dur: 0.6s; }
.step-4 { --delay: 2.8s; --dur: 0.5s; }

@keyframes drawStroke {
to {
stroke-dashoffset: 0;
}
}

/* ==========================================================================
4. CONTENIDO & TIPOGRAFÍA
========================================================================== */
.hero-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 1s var(--transition-smooth) forwards 3.3s;
}

@media (min-width: 900px) {
.hero-content {
align-items: flex-start;
text-align: left;
}
}

.badge {
display: inline-block;
padding: 0.35rem 1rem;
background-color: rgba(249, 92, 75, 0.12);
color: var(--color-coral);
border-radius: 50px;
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
margin-bottom: 1.25rem;
}

.hero-title {
font-family: var(--font-serif);
font-size: clamp(2.2rem, 4vw, 3.2rem);
line-height: 1.15;
color: var(--color-black);
margin-bottom: 1.25rem;
font-weight: 600;
}

.hero-description {
font-size: 1.1rem;
color: var(--color-text-muted);
margin-bottom: 2rem;
max-width: 500px;
}

/* Botones */
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
}

@media (min-width: 900px) {
.hero-actions {
justify-content: flex-start;
}
}

.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.9rem 1.8rem;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
transition: all 0.3s var(--transition-smooth);
}

.btn-primary {
background-color: var(--color-coral);
color: var(--color-white);
box-shadow: 0 4px 14px rgba(249, 92, 75, 0.35);
}

.btn-primary:hover {
background-color: var(--color-coral-hover);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(249, 92, 75, 0.45);
}

.btn-secondary {
background-color: transparent;
color: var(--color-black);
border: 1.5px solid rgba(0,0,0,0.15);
}

.btn-secondary:hover {
border-color: var(--color-black);
background-color: rgba(0,0,0,0.03);
transform: translateY(-2px);
}

.btn-icon {
transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
transform: translateX(4px);
}

/* Animación de entrada para el texto */
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}

/* Preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
.mask-stroke {
animation: none !important;
stroke-dashoffset: 0 !important;
}
.hero-content {
opacity: 1 !important;
transform: none !important;
animation: none !important;
}
.cta-solo-wrap {
opacity: 1 !important;
transform: none !important;
animation: none !important;
}
}
