/* 
   Editorial Trompe - Minimalist & Elegant Stylesheet
   Fonts: Cormorant Garamond (Serif, literary) & Inter (Sans-serif, clean)
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: #e5e5e5;
    --accent-color: #8c7853; /* Subtle warm gold/bronze */
    --hover-bg: #f9f9f9;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --max-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.02em;
}

p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Header & Navigation */
header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 2rem;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-left ul {
    justify-content: flex-end;
}

.nav-right ul {
    justify-content: flex-start;
}

.nav-left ul, .nav-right ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-primary);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Container & Sections */
main {
    flex: 1;
}

section {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    color: var(--text-primary);
}

/* Hero Section Redesign */
.hero-section {
    position: relative;
    min-height: calc(100vh - 140px); /* considering header */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff;
    overflow: hidden;
    padding: 0 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(140, 120, 83, 0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    margin-bottom: 2rem;
    animation: fadeInDown 1.5s ease-out;
}

.hero-poem {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.poem-line {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: calc(0.3s + (var(--line-index) * 0.2s));
    transition: color 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
    display: inline-block;
}

.poem-line:hover {
    color: var(--accent-color);
    transform: scale(1.02);
    text-shadow: 0 4px 15px rgba(140, 120, 83, 0.15);
    cursor: default;
}

.hero-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 3rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 2s;
    opacity: 0;
}

.hero-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 2.5s;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Carousel */
.hero-carousel {
    display: grid;
    grid-template-areas: "slide";
    width: 100%;
    margin-bottom: 2rem;
}

.carousel-item {
    grid-area: slide;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
}

.carousel-item.active .poem-line {
    animation: fadeInUp 1s ease-out forwards;
}

.carousel-item:not(.active) .poem-line {
    animation: none;
    opacity: 0;
}

/* Spinning Badge */
.spinning-badge {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    z-index: 2;
    animation: spin 20s linear infinite;
    opacity: 0.7;
    transition: var(--transition);
}

.spinning-badge:hover {
    opacity: 1;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Section: Nosotros */
#nosotros .nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.nosotros-destacado {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-style: italic;
    border-left: 2px solid var(--accent-color);
    padding-left: 2rem;
}

.nosotros-texto {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: justify;
}

/* Section: Libros */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    justify-content: center;
}

.book-card {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.book-image-container {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 2/3;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.book-card:hover .book-image-container {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.07);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.book-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.btn-details {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.75rem 2rem;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Section: Reseñas */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.review-item {
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.review-item:hover {
    background-color: var(--hover-bg);
    border-color: var(--text-primary);
}

.review-photo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.review-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-summary {
    flex-grow: 1;
}

.review-book-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.review-author {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.review-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-action {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.98); /* Almost pure white backdrop for minimal look */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 3.5rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 750px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: 200;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.modal-header-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-info h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.modal-header-info h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 300;
}

.modal-body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 1rem;
    text-align: justify;
}

.modal-body-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.modal-body-text p:last-child {
    margin-bottom: 0;
}

.modal-body-text blockquote {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    padding: 1rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* Custom Scrollbar for Modal Text */
.modal-body-text::-webkit-scrollbar {
    width: 4px;
}
.modal-body-text::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body-text::-webkit-scrollbar-thumb {
    background: var(--border-color);
}
.modal-body-text::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Section: Bitácora de la Tinta */
.bitacora-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.bitacora-card {
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    transition: var(--transition);
}

.bitacora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border-color: #cccccc;
}

.bitacora-img-link {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.bitacora-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bitacora-card:hover .bitacora-img {
    transform: scale(1.03);
}

.bitacora-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bitacora-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bitacora-author-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.bitacora-meta-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.bitacora-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.bitacora-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.bitacora-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
}

.bitacora-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Section: Contacto */
.contacto-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: var(--hover-bg);
    padding: 4rem;
    border: 1px solid var(--border-color);
}

.contacto-info-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-style: italic;
}

.contacto-info-box p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contacto-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contacto-detail .icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contacto-detail span, .contacto-detail a {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.contacto-detail a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contacto-form-box {
    background-color: var(--bg-color);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.form-input {
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    padding: 0.75rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-bottom-color: var(--text-primary);
}

.form-input:focus + .form-label {
    color: var(--text-primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: center;
    margin-top: 1rem;
}

/* Detail Pages Layout (oscuresencia, bitacora-*) */
.detail-page {
    background-color: var(--bg-color);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--text-primary);
}

.btn-back svg {
    transition: var(--transition);
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

/* Book Detail */
.book-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
    padding-bottom: 4rem;
}

.book-detail-cover-container {
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.book-detail-cover {
    width: 100%;
    height: auto;
    display: block;
}

.book-detail-info h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.book-detail-author {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.book-detail-price {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.book-detail-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item strong {
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.book-detail-description {
    margin-bottom: 3rem;
}

.book-detail-description h2, 
.book-detail-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.book-detail-description p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.book-detail-section {
    margin-bottom: 3rem;
}

.book-detail-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.book-detail-section li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.book-detail-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Themes tags style */
.themes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none !important;
}

.themes-list li {
    padding: 0.4rem 1rem !important;
    background-color: var(--hover-bg);
    border: 1px solid var(--border-color);
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    border-radius: 20px;
}

.themes-list li::before {
    display: none !important;
}

.keywords-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.btn-buy {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 3rem;
    border: 1px solid var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-color);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
}

.btn-buy:hover {
    background: transparent;
    color: var(--text-primary);
}

/* Article Detail */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.article-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.article-author-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.article-author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.article-author-details {
    text-align: left;
}

.article-author-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.article-read-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-banner-container {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.article-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    max-width: 750px;
    margin: 0 auto;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    text-align: justify;
}

.article-body blockquote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
    margin: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--bg-color);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}

/* Video Background */
.has-video-bg {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
}

.nosotros-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Responsive Breakpoints */
/* Responsive Breakpoints */
@media (max-width: 868px) {
    #nosotros .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .nosotros-destacado {
        border-left: none;
        border-bottom: 1px solid var(--accent-color);
        padding-left: 0;
        padding-bottom: 1.5rem;
        font-size: 1.8rem;
    }
    
    .book-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .book-detail-cover-container {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .review-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .review-photo-container {
        margin: 0 auto;
    }
    
    .contacto-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }
    
    .contacto-form-box {
        padding: 2rem;
    }

    .hero-poem {
        font-size: 1.8rem;
    }

    .spinning-badge {
        bottom: 1.5rem;
        left: 1.5rem;
        transform: scale(0.8);
        transform-origin: bottom left;
    }
}

@media (max-width: 600px) {
    header .header-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .logo-link {
        order: -1; /* Puts logo on top on mobile */
        margin: 0;
    }
    
    .nav-left ul, .nav-right ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .poem {
        font-size: 1.3rem;
    }
    
    .hero-poem {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }

    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
    }

    .spinning-badge {
        display: none; /* Hide badge on very small screens to avoid clutter */
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 10% auto;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-header-photo {
        margin: 0 auto;
    }
}
