/* --- INSTALACIÓN DE TIPOGRAFÍA --- */
@font-face {
    font-family: 'Debora Celina';
    src: url('Debora Celina.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; 
}

body {
    background-color: #ffffff; /* FONDO BLANCO */
    color: #111111; /* TEXTO OSCURO */
}

/* Contenedor Principal de Lectura */
.story-page {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
}

/* Botón de Regresar */
.back-button {
    position: absolute;
    top: 30px;
    left: 40px;
    text-decoration: none;
    color: #E42101;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: transform 0.3s;
}

.back-button:hover {
    transform: translateX(-5px);
}

/* Envoltura del Texto */
.content-wrapper {
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Títulos */
.subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 400;
    color: #666;
}

.main-title {
    font-family: 'Debora Celina', serif;
    font-size: 64px;
    color: #E42101; /* Rojo Subterráneo */
    margin-bottom: 40px;
    font-weight: normal;
    text-align: center;
}

/* Párrafos de la historia */
.story-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
    color: #222222;
    text-align: justify; /* Alineación tipo libro */
}

/* Párrafos de la historia con Efecto de "Libro / Manuscrito" */
.story-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 50px;
    font-weight: 400;
    color: #333333; /* Un gris casi negro para que canse menos la vista */
    text-align: justify; /* Alineación tipo libro */
    
    /* --- EL NUEVO BORDE Y MARGEN --- */
    background-color: #fcfcfc; /* Un blanco perla que lo separa del fondo */
    padding: 50px 60px; /* Mucho margen interno para que respire */
    border: 1px solid #eaeaea; /* Borde sutil gris claro */
    border-left: 4px solid #E42101; /* Acento de diseño en rojo Subterráneo a la izquierda */
    border-radius: 8px; /* Esquinas apenas redondeadas */
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); /* Sombra elegante para que "flote" */
}

.story-text p {
    margin-bottom: 25px;
}

.story-text p:last-child {
    margin-bottom: 0; /* Quita el espacio extra del último párrafo */
}

/* Resto del código... (Botones, Vinilo Pequeño, etc. Déjalos como estaban) */


/* --- REEMPLAZA TU SECCIÓN RESPONSIVA AL FINAL POR ESTA --- */
@media (max-width: 768px) {
    .back-button { top: 20px; left: 20px; font-size: 12px; }
    .main-title { font-size: 50px; }
    
    /* Ajustes del borde para celulares */
    .story-text { 
        font-size: 15px; 
        text-align: left; /* En móviles es mejor alinear a la izquierda para evitar huecos raros */
        padding: 30px 25px; /* Reducimos el margen interno en pantallas pequeñas */
        border-left: 3px solid #E42101;
    }
    
    .story-page { padding: 80px 20px 40px 20px; }
}

/* Botones */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

a.btn-primary, a.btn-secondary {
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #E42101;
    color: white;
    border: 2px solid #E42101;
}

.btn-primary:hover {
    background-color: #b31a01;
    border-color: #b31a01;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: #111111;
    border: 2px solid #111111;
}

.btn-secondary:hover {
    background-color: #111111;
    color: #ffffff;
}

/* --- VINILO PEQUEÑO AL FINAL --- */
.vinyl-container {
    width: 120px;  /* Tamaño reducido */
    height: 120px; /* Tamaño reducido */
    border-radius: 50%;
    background-image: url('Vinilo_Gertrudis.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 145%; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.spinning {
    animation: spin 4s linear infinite; /* Gira ligeramente más lento para no distraer */
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
    .back-button { top: 20px; left: 20px; font-size: 12px; }
    .main-title { font-size: 50px; }
    .story-text { font-size: 15px; text-align: left; }
    .story-page { padding: 80px 20px 40px 20px; }
}