
/* ==========================================
   PLANTILLA CLÁSICA VERDE
   PANTALLA VERTICAL 9:16
========================================== */

.homenaje-clasico {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;
    box-sizing: border-box;

    background-color: #06452f;
    background-image: url('../img/homenajes/fondo-clasico-verde.png');

    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;

    color: #fff7e6;
    font-family: 'Roboto', Arial, sans-serif;
}

.homenaje-clasico *,
.homenaje-clasico *::before,
.homenaje-clasico *::after {
    box-sizing: border-box;
}

/* ENCABEZADO */

.hc-encabezado {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 12% 10% 0;

    text-align: center;
    flex-shrink: 0;
}

.hc-institucion {
    color: #f3e6bf;
    font-family: 'Besley', Georgia, serif;
    font-size: clamp(15px, 1.8vh, 28px);
    font-weight: 600;
    letter-spacing: 2px;
}

.hc-separador-decorativo {
    margin: 12px auto;
    color: #e6ce8d;
    font-family: Georgia, serif;
    font-size: clamp(24px, 3vh, 42px);
    line-height: 1;
}

/* TÍTULO */

.hc-titulo {
    margin: 0;

    color: #fff4d9;
    font-family: 'Besley', Georgia, serif;
    font-size: clamp(38px, 5vh, 82px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
}

.hc-subtitulo {
    margin-top: 5px;

    color: #e9d39a;
    font-family: 'Besley', Georgia, serif;
    font-size: clamp(19px, 2.5vh, 38px);
    letter-spacing: 6px;
}

/* CONTENIDO PRINCIPAL */

.hc-contenido {
    position: relative;
    z-index: 2;

    flex: 1;
    min-height: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: clamp(10px, 1.7vh, 28px);
    padding: 2% 12%;

    text-align: center;
}

/* FOTOGRAFÍA RECTANGULAR */


.hc-fotografia {
    position: relative;

    width: min(65%, 24vh);
    aspect-ratio: 4 / 5;

    flex-shrink: 0;

    padding: 6px;
    border: 3px solid #e3c779;
    border-radius: 25px;

    background: rgba(255,255,255,0.08);

    box-shadow:
        0 0 0 4px rgba(227,199,121,0.18),
        0 15px 35px rgba(0,0,0,0.35);

    overflow: hidden;
}



.hc-fotografia img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 17px;
}

/* NOMBRE */

.hc-nombre {
    margin: 0;
    max-width: 100%;

    color: #fff9ed;
    font-family: 'Besley', Georgia, serif;
    font-size: clamp(27px, 3.8vh, 60px);
    font-weight: 500;
    line-height: 1.25;

    text-shadow: 0 3px 8px rgba(0,0,0,0.35);
    overflow-wrap: anywhere;
}

/* TÍTULO PERSONALIZADO */

.hc-frase {
    max-width: 95%;

    color: #e9d39a;
    font-family: 'Besley', Georgia, serif;
    font-size: clamp(16px, 2.2vh, 32px);
    font-style: italic;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* DEDICATORIA */

.hc-dedicatoria {
    max-width: 95%;

    color: #fff5df;
    font-family: 'Besley', Georgia, serif;
    font-size: clamp(15px, 1.9vh, 28px);
    font-style: italic;
    line-height: 1.6;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* PIE */

.hc-pie {
    position: relative;
    z-index: 2;

    width: 100%;
    flex-shrink: 0;

    padding: 0 10% 10%;
    text-align: center;

    color: #f0dfb1;
    font-family: 'Besley', Georgia, serif;
    font-size: clamp(12px, 1.5vh, 22px);
    letter-spacing: 2px;
}

/* AJUSTES PARA PANTALLAS VERTICALES */

@media (orientation: portrait) {

    .hc-encabezado {
        padding-top: 15%;
    }

    .hc-fotografia {
        width: min(70%, 25vh);
    }

    .hc-contenido {
        gap: 2vh;
    }
}

/* PANTALLAS CON POCA ALTURA */

@media (max-height: 700px) {

    .hc-encabezado {
        padding-top: 5%;
    }

    .hc-separador-decorativo {
        margin: 5px auto;
    }

    .hc-fotografia {
        width: min(45%, 22vh);
    }

    .hc-contenido {
        gap: 8px;
    }

    .hc-pie {
        padding-bottom: 4%;
    }
}


/* ==========================================
   AJUSTES PARA PANTALLAS HORIZONTALES
========================================== */

@media (orientation: landscape) {

    .hc-encabezado {
        padding: 2vh 8% 0;
    }

    .hc-separador-decorativo {
        margin: 5px auto;
    }

    .hc-titulo {
        font-size: clamp(28px, 4vh, 65px);
    }

    .hc-subtitulo {
        font-size: clamp(16px, 2vh, 30px);
    }

    .hc-contenido {
        gap: clamp(5px, 1vh, 15px);
        padding: 1vh 8%;
    }

    .hc-fotografia {
        width: auto;
        height: clamp(100px, 22vh, 230px);
        aspect-ratio: 4 / 5;
        flex-shrink: 0;
    }

    .hc-nombre {
        font-size: clamp(24px, 3.2vh, 48px);
    }

    .hc-frase {
        font-size: clamp(15px, 1.8vh, 26px);
    }

    .hc-dedicatoria {
        font-size: clamp(14px, 1.6vh, 24px);
        line-height: 1.3;
    }

    .hc-pie {
        padding: 0 8% 2vh;
    }
}