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

:root {
    --color-cream: #F5EFE7;
    --color-peach: #F4D6CC;
    --color-orange: #F5A962;
    --color-green: #B8C5A8;
    --color-sage: #9CAF88;
    --color-brown: #8B6F47;
    --color-text: #5C4B37;
}

body {
    font-family: 'Borel', cursive;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-peach) 100%);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-brown);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.author {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--color-orange);
    font-weight: 600;
}

/* Book Showcase */
.book-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
    justify-items: center;
    min-height: 100vh;
    padding: 20px 0;
    animation: fadeIn 1.2s ease-out;
}

.book-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.cover {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.cover:hover {
    transform: scale(1.05);
}

.back-cover {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    opacity: 0.95;
}

.back-cover:hover {
    transform: scale(1.05) rotate(-2deg);
    opacity: 1;
}

.book-info {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.description {
    margin-bottom: 40px;
}

.description-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 20px;
    line-height: 1.8;
}

.description-text strong {
    color: var(--color-orange);
    font-size: 1.1em;
}

/* Details */
.details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 2px dashed var(--color-green);
    border-bottom: 2px dashed var(--color-green);
    justify-content: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

.detail-icon {
    font-size: 1.5em;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #FF8C42 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(245, 169, 98, 0.3);
    transition: all 0.3s ease;
    margin-top: 25px;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 169, 98, 0.6);
    background: linear-gradient(135deg, #FF8C42 0%, var(--color-orange) 100%);
}

.cta-button:active {
    transform: translateY(-1px);
}

.button-icon {
    font-size: 1.3em;
}

/* Features Section */
.features {
    padding: 60px 20px;
    animation: fadeIn 1.5s ease-out;
}

.features-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-brown);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    align-items: stretch;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px 30px 45px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    margin-top: 5px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--color-orange);
    margin-bottom: 15px;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    flex-grow: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--color-brown);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 100vh;
        padding: 10px 0;
    }

    .book-image {
        max-width: 85vw;
    }

    .book-info {
        padding: 25px 20px;
        max-width: 90vw;
    }

    .details {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 20px 10px;
    }

    .title {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .book-showcase {
        gap: 20px;
    }

    .book-image {
        max-width: 90vw;
    }

    .cta-button {
        width: auto;
        max-width: 280px;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .book-info {
        padding: 20px 15px;
    }

    .description-text {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 25px 15px;
    }
}

/* ==============================================
   ESTILOS SEO Y ACCESIBILIDAD
   ============================================== */

/* Clase para ocultar contenido visualmente pero mantenerlo para lectores de pantalla y SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sección de contenido SEO adicional */
.seo-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    text-align: center;
}

.seo-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.seo-text strong {
    color: var(--color-brown);
}

.seo-text em {
    color: var(--color-orange);
    font-style: normal;
    font-weight: 600;
}

/* Estilos para el mark (resaltado) */
mark {
    background: linear-gradient(120deg, var(--color-peach) 0%, var(--color-orange) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-brown);
}

/* Footer mejorado */
.footer-keywords {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-sage);
    opacity: 0.8;
}

/* Mejoras de accesibilidad - focus visible */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 3px;
}

/* Skip link para accesibilidad (oculto hasta que recibe focus) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-brown);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ==============================================
   FORMULARIO DE CONTACTO
   ============================================== */

.contact-section {
    max-width: 700px;
    margin: 60px auto;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-out;
}

.contact-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-brown);
    margin-bottom: 15px;
}

.contact-description {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text);
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-label {
    font-size: 1.1rem;
    color: var(--color-brown);
    font-weight: 600;
}

.required {
    color: var(--color-orange);
}

.form-input,
.form-textarea {
    padding: 14px 18px;
    border: 2px solid var(--color-green);
    border-radius: 12px;
    font-family: 'Borel', cursive;
    font-size: 1rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(245, 169, 98, 0.2);
    background: white;
}

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

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #FF8C42 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-family: 'Borel', cursive;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 169, 98, 0.3);
    transition: all 0.3s ease;
    margin-top: 15px;
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 169, 98, 0.5);
    background: linear-gradient(135deg, #FF8C42 0%, var(--color-orange) 100%);
}

.form-button:active {
    transform: translateY(-1px);
}

.form-button:focus-visible {
    outline: 3px solid var(--color-brown);
    outline-offset: 3px;
}

/* Responsive para el formulario */
@media (max-width: 768px) {
    .contact-section {
        padding: 35px 25px;
        margin: 40px auto;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 25px 20px;
        margin: 30px auto;
    }
    
    .form-button {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ==============================================
   TOAST DE NOTIFICACIÓN
   ============================================== */

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-sage) 100%);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    font-size: 1.4rem;
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
    min-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Overlay oscuro detrás del toast */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast-overlay.show {
    opacity: 1;
}

@media (max-width: 480px) {
    .toast {
        padding: 25px 40px;
        font-size: 1.2rem;
        min-width: 280px;
        max-width: 85%;
    }
}
