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

:root {
    --purple: #5b2179;
    --teal: #5fb3b0;
    --cream: #f4ead2;
}

html, body { height: 100%; }

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: var(--purple) url('../img/fondo.webp') center / cover no-repeat fixed;
    overflow-x: hidden;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 3.5rem) 1.25rem;
}

/* Decoraciones */
.papel, .flor { position: absolute; pointer-events: none; user-select: none; }

.papel {
    top: 0;
    width: 39vw;
    max-width: 780px;
    animation: sway 6s ease-in-out infinite;
}
.papel--izq { left: 0; transform-origin: top right; }
.papel--der { right: 0; transform-origin: top left; animation-delay: -3s; }

.flor {
    bottom: -2vw;
    width: 11vw;
    min-width: 110px;
    animation: rise 1.2s cubic-bezier(.2,.8,.2,1) both .3s;
}
.flor--izq { left: -1vw; transform: scaleX(-1); }
.flor--der { right: -1vw; }

/* Contenido */
.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
}

.hero__logo {
    width: clamp(180px, 15.5vw, 300px);
    animation: fadeDown .9s ease both;
}

.hero__title { margin-top: clamp(.5rem, 1.5vw, 1.75rem); line-height: 0; }
.hero__title img {
    width: clamp(300px, 38vw, 740px);
    filter: drop-shadow(0 12px 30px rgba(20, 0, 35, .45));
    animation: popIn 1s cubic-bezier(.2,1.4,.4,1) both .2s, float 5s ease-in-out infinite 1.2s;
}

.hero__text {
    margin-top: clamp(1rem, 2vw, 2.25rem);
    font-size: clamp(1.125rem, 1.25vw, 1.55rem);
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(30, 0, 50, .35);
    animation: fadeUp .9s ease both .5s;
}
.hero__text p + p { margin-top: 1.4em; }

.btn-start {
    display: inline-block;
    margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
    padding: .35em .75em;
    font-size: clamp(1.05rem, 1.15vw, 1.35rem);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--teal);
    border: 4px solid #e7e2ea;
    box-shadow: 0 6px 18px rgba(20, 0, 35, .35);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    animation: fadeUp .9s ease both .7s;
}
.btn-start:hover, .btn-start:focus-visible {
    transform: translateY(-3px) scale(1.04);
    background: #6cc4c1;
    box-shadow: 0 12px 28px rgba(20, 0, 35, .5);
    outline: none;
}

/* Animaciones */
@keyframes sway { 0%,100% { rotate: 0deg; } 50% { rotate: 1.2deg; } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes fadeDown { from { opacity: 0; translate: 0 -20px; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 20px; } }
@keyframes popIn { from { opacity: 0; scale: .7; } }
@keyframes rise { from { opacity: 0; translate: 0 60px; } }
.papel--der { animation-name: sway-r; }
@keyframes sway-r { 0%,100% { rotate: 0deg; } 50% { rotate: -1.2deg; } }

@media (max-width: 768px) {
    .papel { width: 60vw; opacity: .9; }
    .hero__content { padding-top: 18vw; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
