/* ============================================
   HISTORIA - ESTILOS
   ============================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rojo: #9e0004;
    --azul: #1c3166;
    --amarillo: #f6d86b;
    --beige: #e1c78c;
    --marfil: #F6F4F0;
    --carbon: #1E1E1E;
    --gris: #8C8C8C;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: var(--font-body);
}

/* MOBILE WRAPPER */
#mobile-wrapper {
    width: 100%;
    max-width: 430px;
    height: 932px;
    max-height: 95vh;
    background-color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 10px #1a1a1a, 0 0 0 12px #3a3a3a, 0 20px 60px rgba(0,0,0,0.5);
    border-radius: 40px;
}

#mobile-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background-color: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 9999;
}

#mobile-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#mobile-content::-webkit-scrollbar {
    display: none;
}

/* NAVEGACIÓN */
.nav-header {
    position: sticky;
    top: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--beige);
    z-index: 100;
}

.nav-back {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--azul);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--azul);
}

/* CONTENEDOR HISTORIA */
.historia-container {
    background-color: white;
}

/* HERO IMAGE */
.historia-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--beige);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HEADER */
.historia-header {
    padding: 40px 30px 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--beige) 0%, var(--marfil) 100%);
}

.historia-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 16px;
}

.historia-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    color: var(--azul);
    line-height: 1.1;
}

/* CONTENIDO */
.historia-content {
    padding: 40px 30px;
    background-color: white;
}

.content-section {
    margin-bottom: 40px;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 16px;
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gris);
}

/* QUOTE BLOCK */
.quote-block {
    background: linear-gradient(135deg, rgba(246, 216, 107, 0.2) 0%, rgba(225, 199, 140, 0.2) 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
    border: 2px solid var(--amarillo);
}

.quote-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--azul);
    margin-bottom: 20px;
}

.quote-author {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--rojo);
}

/* FOOTER */
.historia-footer {
    padding: 40px 30px 60px;
    background: linear-gradient(135deg, var(--beige) 0%, var(--marfil) 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-cta {
    padding: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: white;
    background-color: var(--rojo);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-cta:active {
    background-color: #7a0003;
    transform: scale(0.98);
}

.btn-secondary {
    padding: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--azul);
    background-color: transparent;
    border: 2px solid var(--azul);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary:active {
    background-color: var(--azul);
    color: white;
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        background-color: white;
        align-items: flex-start;
    }
    #mobile-wrapper {
        max-width: 100%;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }
    #mobile-wrapper::before { display: none; }
    .nav-header { top: 0; }
}
}

/* FOOTER CRÉDITOS */
.footer-creditos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 20px;
    background-color: var(--marfil);
    border-top: 1px solid var(--beige);
}

.footer-by {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    color: var(--azul);
    margin: 0;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-handle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--azul);
    margin: 0;
}
