@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Outfit:wght@300;400;500;600;700&family=Overpass+Mono:wght@300;400&display=swap');

:root {
    --negro:        #0e0c0c;
    --carbon:       #161212;
    --carbon-2:     #1e1919;
    --blanco:       #f4f0eb;
    --crema:        #ede8e0;
    --vino:         #7b1e2e;
    --vino-lt:      #9e2a3d;
    --vino-glow:    rgba(123, 30, 46, 0.18);
    --txt-claro:    #f4f0eb;
    --txt-oscuro:   #1a1515;
    --muted-claro:  #7a706b;
    --muted-oscuro: #9a8f8a;
    --borde-claro:  rgba(244,240,235,0.1);
    --borde-oscuro: rgba(26,21,21,0.14);
}

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

html, body {
    margin: 0;
    width: 100%;
    background: var(--negro);
    font-family: 'Outfit', sans-serif;
    color: var(--txt-claro);
    overflow-x: hidden;
}

#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 70px;
    background: rgba(14,12,12,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--borde-claro);
    transition: height 0.35s ease;
}

#navbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vino), var(--vino-lt) 40%, transparent);
}

.nav-nombre {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--txt-claro);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-more {
    font-family: 'Overpass Mono', monospace;
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--muted-oscuro);
    text-decoration: none;
    padding: 10px 22px;
    border: 1px solid var(--borde-claro);
    transition: all 0.3s ease;
}

.nav-more:hover {
    color: var(--txt-claro);
    border-color: var(--vino-lt);
    background: var(--vino-glow);
}

#fondo {
    background: var(--carbon);
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fondo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -48deg,
        transparent,
        transparent 70px,
        rgba(244,240,235,0.015) 70px,
        rgba(244,240,235,0.015) 71px
    );
    pointer-events: none;
}

#fondo::after {
    content: '';
    position: absolute;
    width: 650px; height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,30,46,0.18) 0%, transparent 68%);
    top: 50%; left: 48%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    animation: orbe 7s ease-in-out infinite;
}

@keyframes orbe {
    0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.6; }
    50%       { transform: translate(-50%,-50%) scale(1.14); opacity: 1;   }
}

#palabras_aparicion {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(80px, 14vw, 158px);
    color: var(--txt-claro);
    letter-spacing: -2px;
    line-height: 1;
}

@keyframes impacto {
    0%   { opacity: 1; transform: scale(1);    filter: blur(0px); }
    60%  { opacity: 1; transform: scale(1.03); filter: blur(0px); }
    100% { opacity: 0; transform: scale(0.97); filter: blur(5px); }
}

.animar        { animation: impacto 0.75s ease-in forwards; }
.animar-nombre {
    animation: impacto 0.75s ease-in forwards;
    color: var(--vino-lt) !important;
    text-shadow: 0 0 60px rgba(158,42,61,0.5);
}

#typewriter {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 74%;
    max-width: 920px;
    text-align: center;
}

#texto-maquina {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(26px, 3.8vw, 52px);
    color: var(--txt-claro);
    line-height: 1.45;
}

#cursor {
    display: inline-block;
    width: 3px;
    height: 0.8em;
    background: var(--vino-lt);
    margin-left: 5px;
    vertical-align: middle;
    animation: parpadeo 0.65s step-end infinite;
}

@keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

#seccion_publicidad {
    background: var(--crema);
    padding-top: 108px;
    padding-bottom: 24px;
}

.seccion-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 16px 40px 16px;
    border-bottom: 2px solid var(--txt-oscuro);
    margin-bottom: 40px;
}

.seccion-titulo {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: clamp(42px, 6vw, 72px);
    color: var(--txt-oscuro);
    margin: 0;
    letter-spacing: -1.5px;
    line-height: 1;
}

.seccion-num {
    font-family: 'Overpass Mono', monospace;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--vino);
    text-transform: uppercase;
    padding-bottom: 6px;
}

.separador { height: 80px; }

.grid-tarjetas {
    columns: 3;
    column-gap: 12px;
    padding: 0 12px;
}

.tarjeta {
    display: inline-block;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 12px;
    break-inside: avoid;
    position: relative;
    border: 1px solid var(--borde-oscuro);
    
    transition: box-shadow 0.45s ease, border-color 0.45s ease;
}

.tarjeta::before,
.tarjeta::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 5;
    pointer-events: none;
}

.tarjeta::before {
    top: 0; left: 0;
    border-top: 2px solid var(--vino-lt);
    border-left: 2px solid var(--vino-lt);
}

.tarjeta::after {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--vino-lt);
    border-right: 2px solid var(--vino-lt);
}

.tarjeta:hover {
    box-shadow: 0 18px 50px rgba(0,0,0,0.18), 0 4px 14px rgba(0,0,0,0.1);
    border-color: rgba(158,42,61,0.25);
}

.tarjeta:hover::before,
.tarjeta:hover::after { opacity: 1; }

.tarjeta img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
                filter 0.6s ease;
    filter: saturate(0.85) brightness(0.95);
}

.tarjeta:hover img {
    transform: scale(1.05);
    filter: saturate(1.05) brightness(1.02);
}

/* .tarjeta-video {
    
} */

.video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    
    padding-top: 56.25%;
    background: var(--carbon);
}

.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
                filter 0.6s ease;
    filter: saturate(0.82) brightness(0.9);
}

.tarjeta:hover .video-wrapper video {
    transform: scale(1.04);
    filter: saturate(1.08) brightness(1.02);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(14,12,12,0.52) 0%,
        rgba(123,30,46,0.22) 60%,
        rgba(14,12,12,0.3) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease;
    z-index: 3;
}

.tarjeta:hover .video-overlay {
    opacity: 0;
}

.tarjeta:hover #seccion_ver {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 52px 60px;
    background: var(--carbon-2);
    border-top: 1px solid var(--borde-claro);
    border-bottom: 1px solid var(--borde-claro);
}

.ver-link {
    font-family: 'Overpass Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted-oscuro);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    border: 1px solid var(--borde-claro);
    position: relative;
    overflow: hidden;
    transition: color 0.3s, border-color 0.3s;
}

.ver-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vino);
    transform: translateX(-101%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
}

.ver-link-txt,
.ver-link-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.ver-link:hover::before { transform: translateX(0); }
.ver-link:hover { color: var(--txt-claro); border-color: var(--vino); }
.ver-link:hover .ver-link-arrow { transform: translateX(5px); }

#seccion_contacto {
    background: var(--blanco);
    padding: 108px 60px 96px;
    position: relative;
    overflow: hidden;
}

#seccion_contacto::before {
    content: '↗';
    position: absolute;
    right: 40px; bottom: 20px;
    font-family: 'Cormorant', serif;
    font-size: 280px;
    line-height: 1;
    color: rgba(14,12,12,0.04);
    pointer-events: none;
    user-select: none;
}

.contacto-titulo-bloque {
    border-bottom: 2px solid var(--txt-oscuro);
    padding-bottom: 28px;
    margin-bottom: 64px;
}

#seccion_contacto .seccion-titulo {
    color: var(--txt-oscuro);
}

#contacto-info {
    display: flex;
    flex-direction: column;
    max-width: 720px;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    padding: 28px 0 28px 22px;
    border-bottom: 1px solid var(--borde-oscuro);
    position: relative;
    transition: padding-left 0.3s ease;
}

.contacto-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--vino);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.contacto-item:hover { padding-left: 32px; }
.contacto-item:hover::before { transform: scaleY(1); }
.contacto-item:hover .contacto-valor { color: var(--vino); }

.contacto-label {
    font-family: 'Overpass Mono', monospace;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted-claro);
}

.contacto-valor {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(26px, 3.2vw, 44px);
    color: var(--txt-oscuro);
    line-height: 1.15;
    transition: color 0.3s;
}

#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 60px;
    background: var(--negro);
    border-top: 1px solid var(--borde-claro);
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100px; height: 2px;
    background: linear-gradient(90deg, var(--vino), transparent);
}

.footer-nombre {
    font-family: 'Cormorant', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--txt-claro);
    letter-spacing: 0.3px;
}

.footer-redes {
    display: flex;
    gap: 36px;
}

.footer-redes a {
    font-family: 'Overpass Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted-oscuro);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-redes a:hover { color: var(--vino-lt); }

.footer-copy {
    font-family: 'Overpass Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted-oscuro);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}