@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale&family=Quintessential&display=swap');


h1 {
    font-family: "Bonheur Royale", cursive;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    margin: 0 0 .5rem;
    font-size: 5rem;
    text-align: center;
}

body {
    font-family: 'Quintessential', cursive;
    font-weight: 400;
    font-style: normal;
    margin: 20px;
    line-height: 1.6;
    background-color: #e6e0d6;
    color: #333;
}

p {
    margin: .5rem 0 1rem;
}

a {
    text-underline-offset: 2px;
    color: #333;
}

a:hover {
    text-decoration: underline;
    font-weight: bolder;
}

.container {
    margin-inline: auto;
    padding: 24px;
}

.center {
    text-align: center;
}

/* ---- Header & Nav ---- */
.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
    letter-spacing: .5px;
}

.nav {
    background-color: #cec5b6;
    padding: 15px 20px;
    text-align: center;
}

.nav a {
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 600;
    color: #333;
    opacity: .85;
    margin: 0 12px;

}


.nav a:hover {
    opacity: 1;
    background-color: #b9af9c;
    padding: 16px 12px;
    margin: 0;
}


/* ---- Hero ---- */
.hero {
    padding-block: 2.5rem;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 880px) {
    .hero-grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

.image-background {
    background-image: url('../assets/fondoPrincipito.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* muestra toda la imagen sin recortarla */
    padding: 50px;
    margin: 0 -20px 20px -20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #323f77;
    /* color de fondo cuando la imagen deja espacio */
    min-height: 300px;
    /* ajusta según lo necesario */
    display: flex;
    align-items: center;
    justify-content: center;

}


.image-background {
    align-items: flex-start;
    justify-content: flex-start;
}

.image-background .hero-grid {
    width: 100%;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-copy .cta-row {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-start;

}

.hero-copy .cta-row .btn {
    width: auto;

}

/* Asegurar que en escritorio el grid no empuje el CTA fuera */
@media (min-width: 880px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.subtitle {
    color: rgb(228, 207, 137);
    opacity: .95;
    font-weight: bolder;

}

.lead {
    font-size: 1.15rem;
    color: rgb(228, 224, 204);
}

.smallcaps {
    font-variant: small-caps;
    color: #2b2b2b;
    letter-spacing: .6px;
    opacity: .9;
    text-align: center;
    font-size: 1.3rem;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: .75rem 0 0;
}


.btn {
    display: inline-block;
    padding: .75rem 1.1rem;
    border-radius: 999px;
    background: #ceb369;
    color: #584c25;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    color: #333;
}

/* ---- Meta & long sections ---- */
.meta {
    opacity: .8;
    font-size: .95rem;
    text-align: center;
}

.long {
    padding-bottom: 3rem;
}

/* ---- Three styled paragraphs (scoop) ---- */
.p1 {
    font-style: italic;
}

.p2 {
    letter-spacing: .25px;
}

.p3 {
    color: var(--cream);
    border-left: 4px solid var(--rose);
    padding-left: 12px;
}

/* ---- Panel (image + text) ---- */
.panel {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    margin-block: 1rem 2rem;
}

@media (min-width: 840px) {
    .panel {
        grid-template-columns: .9fr 1.1fr;
    }
}

.panel-img {
    width: 100%;
    height: auto;


}

.panel-img.round {
    
    aspect-ratio: 1/1;
    object-fit: cover;
}

.panel-txt h3 {
    margin-top: 0;
}

/* ---- Lists ---- */
.check {
    list-style: none;
    padding-left: 0;
}

.check li {
    position: relative;
    padding-left: 28px;
    margin: .35rem 0;
}

.check li::before {
    content: "✶";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
}

.symbols {
    line-height: 1.8;
    text-align: center;
    justify-content: center;
}

/* ---- Flashcards (The Journey) ---- */
#quotes {
    margin-top: 3rem;
    text-align: center;
    background-color: #c4bba8;
    padding: 7rem 2rem 7rem 2rem;
}

#quotes h2 {
    margin-bottom: 4rem;
}

#quote-img {
    display: block;
    /* centra horizontalmente */
    max-width: 300px;
    height: auto;
    margin: 0 auto -9rem;
    /* center with the existing negative bottom margin */
}

.flashcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.card {
    background: #e4ded1;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card .quote {
    font-family: 'Quintessential', cursive;
    font-size: 1.05rem;
    color: #2b2b2b;
    margin: 0 0 .5rem 0;
}

.card .attrib {
    font-size: .85rem;
    color: #6b5f4a;
    margin: 0;
    text-align: right;
}

/* Small screens: slightly larger cards spacing */
@media (max-width: 420px) {
    .card {
        padding: 18px;
    }
}

/* ---- Footer ---- */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    background-color: #cec5b6;
}

/* Magic floating star button (fixed bottom-right) */
#magic-btn{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width:56px;
    height:56px;
    border-radius:50%;
    background: #bdad8a;
    color:#583e0d;
    font-size:28px;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.18);
    cursor:pointer;
    z-index:1200;
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
#magic-btn:focus{ outline:3px solid rgba(248,197,55,0.35); }
@keyframes magic-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.magic-spin{ animation: magic-spin 0.7s cubic-bezier(.2,.8,.2,1); }

/* Particles (stars & moons) */
.magic-particle{
    position: fixed;
    top: -40px;
    pointer-events: none;
    z-index: 1100;
    user-select: none;
    will-change: transform, opacity;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 3px 8px rgba(0,0,0,0.45);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
    opacity: 0.98;
    font-weight: 700;
}

@keyframes magic-fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity:1; }
    100% { transform: translateY(120vh) rotate(720deg); opacity:0; }
}

/* helper class applied inline with varying durations/delays */
.magic-particle.fall {
    animation-name: magic-fall;
    animation-timing-function: cubic-bezier(.17,.67,.35,1);
    animation-fill-mode: forwards;
}

/* small visual tweaks to moon/star sizes */
.magic-particle.small{ font-size:20px; }
.magic-particle.medium{ font-size:28px; }
.magic-particle.large{ font-size:36px; }

#rose {
   
    padding: 3rem 2rem;
    margin-top: 3rem;
    
}


#rose .cta-row {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    gap: 12px;
    margin-top: 1.25rem;
}
button {
    border: none;
    font-family: 'Quintessential', cursive;
    font-weight: 400;
    font-style: normal;
    font-size: medium;
}

#rose .cta-row .btn {
    min-width: 220px;
    text-align: center;
}

#IceCreams {
 
    padding: 1.2rem 2rem;
    text-align: center;
    border-radius: 12px;
}