/* Landing Page Styles - Libro Mágico para Colorear */

:root {
    --primary-color: #FF5252;
    /* Rojo Crayon */
    --secondary-color: #448AFF;
    /* Azul Crayon */
    --accent-color: #FFD740;
    /* Amarillo Sol */
    --text-color: #333;
    --bg-color: #ffffff;
    --paper-texture: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIi8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNjY2MiIG9wYWNpdHk9IjAuMSIvPgo8L3N2Zz4=');
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: var(--paper-texture);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Fredoka One', cursive, sans-serif;
    /* Fallback to sans-serif if font fails to load */
    letter-spacing: 0.5px;
}

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.btn-login {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--secondary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-cta {
    background-color: var(--primary-color);
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 82, 82, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    background-color: #d32f2f;
    /* Darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 82, 82, 0.4);
    color: white !important;
}

/* Image Comparison Mockup */
.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid white;
    transform: rotate(2deg);
}

/* Features Steps */
.step-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.step-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Gallery Showcase */
.showcase-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.coloring-page-card {
    background: white;
    border: 2px solid #eee;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.coloring-page-card:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.coloring-page-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.2);
    /* Enhance "coloring page" look */
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-container {
        margin-top: 3rem;
        transform: rotate(0deg);
    }
}

/* Configurator 2.0 */
.option-card-input {
    display: none;
}

.option-card-label {
    display: block;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
}

.option-card-input:checked+.option-card-label {
    border-color: var(--primary-color);
    background-color: #fff9f0;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.option-card-input:checked+.option-card-label .check-icon {
    display: block;
}

.check-icon {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.option-card-label:hover {
    transform: translateY(-3px);
}

/* Magic Preview */
.magic-preview-container {
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: 2rem;
}

.book-preview {
    width: 240px;
    height: 340px;
    background: white;
    border: 1px solid #ddd;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border-radius: 5px 15px 15px 5px;
    /* Spine effect */
    background-image: linear-gradient(to right, #eee 0%, #fff 5%, #fff 100%);
}

.book-preview::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.book-title-preview {
    font-family: 'Fredoka One', cursive;
    color: var(--primary-color);
    padding: 0 20px;
    font-size: 1.8rem;
    line-height: 1.2;
    z-index: 2;
}

.book-cover-art {
    font-size: 4rem;
    margin: 20px 0;
    z-index: 2;
}