/* -- Nombre hero metalizado -- */
 .titulo-hero {
     font-family: 'Libre Caslon Text', serif;
     font-weight: 700;
     letter-spacing: 0.04em;
     background: linear-gradient(180deg, #ffffff 0%, #d4d4d4 35%, #888 65%, #ffffff 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     line-height: 0.95;
 }

 .titulo-watermark {
     font-family: 'Libre Caslon Text', serif;
     font-weight: 700;
     font-style: italic;
     color: rgba(255, 255, 255, 0.05);
     font-size: clamp(56px, 11vw, 130px);
     line-height: 1;
     pointer-events: none;
     user-select: none;
     white-space: nowrap;
 }

 .titulo-watermark-dark {
     font-family: 'Libre Caslon Text', serif;
     font-weight: 700;
     font-style: italic;
     color: rgba(17, 20, 21, 0.05);
     font-size: clamp(56px, 11vw, 130px);
     line-height: 1;
     pointer-events: none;
     user-select: none;
     white-space: nowrap;
 }

 .carrusel-track {
     display: flex;
     gap: 1.25rem;
     overflow-x: auto;
     scroll-snap-type: x mandatory;
     -ms-overflow-style: none;
     scrollbar-width: none;
 }

 .carrusel-track::-webkit-scrollbar { display: none; }
 .carrusel-track>* { scroll-snap-align: start; }

 .btn-carrusel {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     border: 2px solid #ECAB28;
     color: #ECAB28;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: background 0.2s, color 0.2s;
     flex-shrink: 0;
     background: transparent;
 }

 .btn-carrusel:hover { background: #ECAB28; color: #111415; }
 .btn-carrusel:disabled { opacity: 0.3; cursor: not-allowed; }
 .btn-carrusel:disabled:hover { background: transparent; color: #ECAB28; }

 .card-area {
     min-width: 240px;
     max-width: 240px;
     flex-shrink: 0;
     height: 300px;
     border-radius: 1rem;
     overflow: hidden;
     position: relative;
     cursor: pointer;
 }

 @media (min-width: 640px) {
     .card-area { min-width: 280px; max-width: 280px; height: 340px; }
 }

 .card-art-h {
     min-width: 100%;
     max-width: 100%;
     flex-shrink: 0;
     display: flex;
     gap: 1.25rem;
     background: rgba(255, 255, 255, 0.04);
     border: 1px solid rgba(255, 255, 255, 0.07);
     border-radius: 1rem;
     overflow: hidden;
     transition: border-color 0.2s;
 }

 .card-art-h:hover { border-color: rgba(236, 171, 40, 0.35); }

 .fade-in {
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.55s ease, transform 0.55s ease;
 }

 .fade-in.visible { opacity: 1; transform: translateY(0); }

 .nav-interno a.activo {
     color: #fff;
     background-color: #ECAB28;
     border-color: #ECAB28;
 }

 .linea-dorada { width: 48px; height: 2px; background: #ECAB28; }

 .hero-foto-wrap { position: relative; height: 100%; min-height: 380px; }

 .card-reconocimiento { transition: transform 0.2s, border-color 0.2s; }
 .card-reconocimiento:hover {
     transform: translateY(-3px);
     border-color: rgba(236, 171, 40, 0.4) !important;
 }

/* -- Carrusel Areas -- */
.area-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: box-shadow 0.4s ease;
    height: 200px;
}

@media (min-width: 640px) { .area-card { height: 260px; } }
@media (min-width: 1024px) { .area-card { height: 300px; } }

.area-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.28); }

.area-card img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.area-card:hover img { transform: scale(1.06); }

.area-card__content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: clamp(8px, 3%, 16px);
    box-sizing: border-box;
    background-color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
}

.area-card:hover .area-card__content,
.area-card.is-flipped .area-card__content { transform: translateY(0); }

.area-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: #ECAB28;
    border: 2px solid #ECAB28;
    font-size: clamp(7px, 1.8vw, 10px);
    font-weight: 600;
    padding: clamp(3px, 1vw, 5px) clamp(8px, 2.5vw, 12px);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.area-card__btn::after {
    content: '›';
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
}

.area-card__btn:hover { background: #ECAB28; color: #fff; }
.area-card__btn:hover::after { transform: translateX(4px); }

/* -- Carrusel Meritos (Efecto explosión de burbuja con ritmo natural) -- */
.rec-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 200px;
}

@media (min-width: 640px) { .rec-card { height: 260px; } }
@media (min-width: 1024px) { .rec-card { height: 300px; } }

/* Sombra e inclinación neutra, elegante y sin rastro de amarillo */
.rec-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Destello diagonal al hover sobre la cara frontal */
.rec-card::before {
    content: '';
    position: absolute;
    top: -60%; left: -60%;
    width: 40%; height: 200%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
    transform: skewX(-15deg) translateX(-100%);
    z-index: 10;
    pointer-events: none;
}

.rec-card:hover::before {
    transform: skewX(-15deg) translateX(500%);
    transition: transform 0.65s ease;
}

/* Cara trasera: transición de explosión de burbuja (círculo expansivo con tempo equilibrado) */
.rec-card__content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: clamp(8px, 3%, 16px);
    box-sizing: border-box;
    background-color: #ffffff;
    
    /* Comienza como un punto de 0% de tamaño en el centro */
    clip-path: circle(0% at 50% 50%);
    opacity: 0;
    
    /* Calibrado a 0.48s y suavizado a curva de rebote sutil */
    transition: clip-path 0.88s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.35s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 4px;
    z-index: 2;
}

.rec-card:hover .rec-card__content,
.rec-card.is-flipped .rec-card__content {
    /* Estalla cubriendo el 125% para asegurar el relleno de las esquinas */
    clip-path: circle(125% at 50% 50%);
    opacity: 1;
}