/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to bottom, #dbe6f6 0%, #ffffff 50%, #bcccda 100%);
    background-attachment: fixed;
    color: #2d3748;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
}

/* Tarjeta contenedora blanca de la web */
.web-container {
    width: 92%;
    max-width: 1150px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 44, 89, 0.12);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Barra de Navegación Superior */
.top-nav {
    background-color: #f7fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    color: #4a5568;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-btn:hover, .nav-btn.active {
    background-color: #cbd5e0;
    color: #0f2c59;
}

/* Encabezado con Fondo Degradado Celestial Curvo */
.hero-section {
    background: linear-gradient(to bottom, #ebf4fa 0%, #ffffff 100%);
    padding-top: 40px;
    text-align: center;
}

.hero-titles {
    margin-bottom: 25px;
}

.uppercase-accent {
    font-size: 12px;
    letter-spacing: 3px;
    color: #718096;
    font-weight: 500;
}

.carlitos-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    color: #0f2c59;
    font-weight: 700;
    margin: 6px 0;
    letter-spacing: 1px;
}

.dates-label {
    font-size: 13px;
    color: #a0aec0;
    font-style: italic;
}

/* Banda Azulada Curva Superior Detrás del Perfil */
.wave-separator {
    background: linear-gradient(to bottom, #cedee7 0%, rgba(255,255,255,0.5) 100%);
    padding: 30px 40px;
    border-top: 1px solid rgba(15, 44, 89, 0.05);
}

.sub-banner-title {
    font-size: 18px;
    color: #0f2c59;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* Fila de Perfil Distribución de 3 Bloques */
.profile-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 950px;
    margin: 0 auto;
}

.profile-side {
    flex: 1.5;
}

.left-side {
    text-align: right;
}

.side-name {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.profile-center-avatar {
    flex-shrink: 0;
}

.avatar-frame {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    padding: 5px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.avatar-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.right-side {
    text-align: justify;
}

.biography-preview {
    font-size: 13px;
    line-height: 1.6;
    color: #4a5568;
}

/* Contenedor de Contenido Dinámico Inferior */
.main-content-wrapper {
    padding: 20px 40px 50px 40px;
}

/* Grilla de 5 Bloques de la Portada */
.grid-five-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

/* Estructura Estilizada de Tarjetas */
.action-card {
    border: none;
    border-radius: 8px;
    padding: 25px 15px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 44, 89, 0.15);
}

/* Variación Azul */
.bg-palette-blue {
    background-color: #79a3c1;
    color: #ffffff;
}
.bg-palette-blue h3 { color: #0f2c59; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; min-height: 34px; display:flex; align-items:center; }
.bg-palette-blue .bold-sub { color: #1e3a5f; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.bg-palette-blue .paragraph-desc { color: #f0f4f8; font-size: 11px; line-height: 1.4; }
.bg-palette-blue svg { fill: #0f2c59; }

/* Variación Dorada */
.bg-palette-gold {
    background-color: #f4e0c4;
    color: #333333;
}
.bg-palette-gold h3 { color: #5c3a21; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; min-height: 34px; display:flex; align-items:center; }
.bg-palette-gold .bold-sub { color: #7c5333; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.bg-palette-gold .paragraph-desc { color: #5a4b41; font-size: 11px; line-height: 1.4; }
.bg-palette-gold svg { fill: #5c3a21; }

.vector-box {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}
.vector-box svg { width: 100%; height: 100%; }

/* Vista de Sección Alternativa (Texto estático enriquecido) */
.static-section-view {
    max-width: 850px;
    margin: 0 auto;
    padding: 10px 0;
    text-align: left;
}
.static-section-view h2 {
    font-family: 'Cinzel', serif;
    color: #0f2c59;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    font-size: 22px;
    letter-spacing: 0.5px;
}
.static-section-view p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 18px;
    text-align: justify;
}

/* Modales */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 44, 89, 0.7);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-card-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 6px;
    max-width: 520px;
    width: 90%;
    position: relative;
    border-top: 5px solid #0f2c59;
}

.modal-card-box h2 {
    font-family: 'Cinzel', serif;
    color: #0f2c59;
    font-size: 20px;
    margin-bottom: 6px;
}

.modal-card-box .bold-sub {
    color: #7c5333;
    font-size: 12px;
    font-weight: 600;
}

.modal-close-cross {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #a0aec0;
}
.modal-close-cross:hover { color: #1a202c; }

/* Footer */
.site-footer {
    background-color: #0f2c59;
    color: #ffffff;
    text-align: center;
    padding: 25px;
    margin-top: auto;
}
.site-footer p { font-size: 12px; opacity: 0.8; }
.site-footer .sub-footer-text { font-size: 10.5px; margin-top: 4px; opacity: 0.4; }

/* Control Adaptable */
@media (max-width: 960px) {
    .profile-row { flex-direction: column; text-align: center; gap: 20px; }
    .left-side { text-align: center; }
    .grid-five-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .grid-five-columns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA LA SECCIÓN DE CONTACTO Y REDES SOCIALES
   ========================================================================== */
.contacto-wrapper {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.contacto-titulo {
    color: #0f2c59;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.contacto-subtitulo {
    color: #7c5333;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
}

.contacto-redes-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-circle-btn {
    width: 140px;
    height: 140px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important; /* Fuerza la estructura circular exacta */
    text-decoration: none;
    margin: 10px;
}

.social-circle-btn span {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    color: #ffffff;
}

/* Clase de contraste para arreglar el texto oscuro sobre el botón dorado de Instagram */
.social-circle-btn span.color-dark-gold {
    color: #5a4b41 !important;
}

.social-circle-btn .vector-box {
    margin-bottom: 8px;
}

.social-circle-btn .vector-box svg {
    width: 32px;
    height: 32px;
}