/* ===========================
   Reset & Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('assets/images/bg2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

/* ===========================
   Preloader
   =========================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/bg2.jpg') center / cover no-repeat;
    z-index: 9999;
    transition: opacity 0.35s ease-out,
                visibility 0.35s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===========================
   Custom entry animations (subtle)
   =========================== */
@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.main-content .container {
    animation: fadeInSoft 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.simi-fixed {
    animation: fadeInOnly 0.4s ease 0.1s forwards;
    opacity: 0;
}

/* ===========================
   Petals Canvas
   =========================== */
#petalsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===========================
   Animated Clouds Overlay
   =========================== */
.nubes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.nubes-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url('assets/images/bg2.jpg');
    background-repeat: repeat-x;
    background-size: 50% 100%;
    background-position: 0 0;
    animation: moverNubes 108s linear infinite;
}

@keyframes moverNubes {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   Fondo Flores – Bottom decorative layer
   =========================== */
.fondo-flores {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    line-height: 0;
}

.fondo-flores img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Main Content Layout
   =========================== */
.main-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 2rem;
    min-height: 100vh;
}

/* Container 15% más angosto que el default de Bootstrap */
@media (min-width: 576px) {
    .main-content .container { max-width: 459px; }
}
@media (min-width: 768px) {
    .main-content .container { max-width: 612px; }
}
@media (min-width: 992px) {
    .main-content .container { max-width: 816px; }
}
@media (min-width: 1200px) {
    .main-content .container { max-width: 969px; }
}
@media (min-width: 1400px) {
    .main-content .container { max-width: 1122px; }
}

/* Desktop-only overrides */
@media (min-width: 992px) {
    .titulo {
        text-align: left;
        padding-top: 100px;
    }

    .simi-fixed {
        left: 210px;
    }
}

.title-col {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.content-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* ===========================
   Title
   =========================== */
.titulo {
    font-family: "Young Serif", serif;
    font-weight: 400;
    font-style: normal;
    color: #000000;
    font-size: 3.2rem;
    line-height: 1.15;
}

.subtitulo {
    font-family: "Young Serif", serif;
    font-weight: 400;
    color: #000000;
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

/* ===========================
   Info Icons Row
   =========================== */
.info-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: flex-start;
    justify-content: center;
}

.info-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.info-item img {
    width: 2.5rem;
    height: auto;
}

.info-item p {
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

.info-item a.lugar-link {
    color: #000000;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.info-item a.lugar-link:hover {
    transform: scale(1.08);
}

.btn-hazclic {
    display: inline-block;
    background-color: #e1b778;
    color: #413625;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.2rem 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-hazclic:hover {
    background-color: #413625;
    color: #e1ccad;
    transform: scale(1.1);
}

/* ===========================
   Yoga Mat Section
   =========================== */
.tapete-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.tapete-section img {
    width: 4rem;
    height: auto;
}

.tapete-section p {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #000000;
    margin: 0;
}

/* ===========================
   Form Card
   =========================== */
.form-card {
    background: rgba(220, 166, 79, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    max-width: 420px;
}

.form-title {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #000000;
    margin: 0 0 0.6rem;
}

/* ===========================
   Multi-step indicator
   =========================== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: background 0.4s ease, transform 0.4s ease;
}

.step-dot.active {
    background: #e1b778;
    transform: scale(1.35);
}

.step-dot.completed {
    background: #8bc78b;
    transform: scale(1.1);
}

.step-line {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: background 0.4s ease;
}

.step-line.completed {
    background: #8bc78b;
}

/* ===========================
   Form steps
   =========================== */
.form-step {
    display: none;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-step.step-fade-out {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    animation: stepFadeOut 0.25s ease forwards;
}

.form-step.active.step-slide-in-right {
    animation: stepSlideInRight 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-step.active.step-slide-in-left {
    animation: stepSlideInLeft 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

@keyframes stepSlideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

/* API error box (duplicate email, server error, etc.) */
.api-error-box {
    background: rgba(178, 0, 53, 0.12);
    border: 1px solid rgba(178, 0, 53, 0.35);
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #b20035;
    animation: errorShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ===========================
   Step navigation (Atrás + Siguiente)
   =========================== */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.btn-back {
    background: none;
    border: none;
    color: #413625;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem 0;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.btn-back:hover {
    opacity: 1;
    transform: translateX(-3px);
}

/* ===========================
   Signup Form
   =========================== */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
}

.signup-form .form-group {
    width: 100%;
}

.signup-form input {
    width: 100%;
    padding: 0.85rem 1.4rem;
    border: none;
    border-radius: 50px;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #413625;
    background-color: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.signup-form input::placeholder {
    color: #dbc8b3;
    font-weight: 400;
}

.signup-form input:focus {
    box-shadow: 0 0 0 3px rgba(225, 204, 173, 0.6);
}

.btn-enviar {
    align-self: flex-start;
    padding: 0.75rem 3rem;
    border: none;
    border-radius: 50px;
    background-color: #e1b778;
    color: #413625;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #413625;
    color: #e1ccad;
    transform: scale(1.08);
}

/* Validation errors */
.error-msg {
    display: block;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #ffcccb;
    margin-top: 0.25rem;
    padding-left: 1rem;
    min-height: 0;
}

.signup-form input.input-error {
    box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.5);
}

/* ===========================
   Medio Entrada – Checkboxes
   =========================== */
.medio-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.medio-pregunta {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #000000;
    margin: 0 0 0.15rem;
}

.check-medio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.check-medio input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #413625;
    cursor: pointer;
    flex-shrink: 0;
}

.check-medio span {
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.4;
}

.otro-textarea {
    display: none;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 16px;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #413625;
    background-color: rgba(255, 255, 255, 0.92);
    outline: none;
    resize: none;
    transition: box-shadow 0.3s ease;
}

.otro-textarea::placeholder {
    color: #9a8e80;
    font-weight: 400;
}

.otro-textarea:focus {
    box-shadow: 0 0 0 3px rgba(225, 204, 173, 0.6);
}

/* ===========================
   Privacy Checkbox
   =========================== */
.form-check-group {
    width: 100%;
}

.check-privacidad {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.check-privacidad input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: #413625;
    cursor: pointer;
    flex-shrink: 0;
}

.check-privacidad span {
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.4;
}

.check-privacidad a {
    color: #b20035;
    font-weight: 600;
    text-decoration: underline;
}

.check-privacidad a:hover {
    color: #e1ccad;
}

/* ===========================
   Button loading state
   =========================== */
.btn-enviar.is-loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn-enviar.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    margin: -0.6rem 0 0 -0.6rem;
    border: 2.5px solid rgba(65, 54, 37, 0.25);
    border-top-color: #413625;
    border-radius: 50%;
    animation: btnSpin 0.65s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Button success state */
.btn-enviar.is-success {
    pointer-events: none;
    background-color: #8bc78b;
    color: #fff;
    transform: scale(1.04);
}

/* ===========================
   Success message (appears inside form card)
   =========================== */
.success-msg {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #c8f7c5;
    text-align: center;
    margin-top: 0.6rem;
    opacity: 0;
    animation: successSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===========================
   Form card fade-out
   =========================== */
.form-card.fade-out {
    animation: formFadeOut 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes formFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.96) translateY(-14px);
    }
}

/* ===========================
   Confirmation card
   =========================== */
.confirmation-card {
    background: rgba(225, 204, 173, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    max-width: 420px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    animation: confirmFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Sparkle icon: pop in + gentle float */
.confirmation-card .confirm-icon {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
    display: block;
    opacity: 0;
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards,
               iconFloat 3s ease-in-out 0.75s infinite;
}

@keyframes iconPop {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Staggered entrance for title and body */
.confirmation-card .confirm-title {
    font-family: "Young Serif", serif;
    font-weight: 400;
    font-size: 1.6rem;
    color: #000000 !important;
    margin: 0 0 1rem;
    line-height: 1.3;
    opacity: 0;
    animation: confirmItemIn 0.55s ease 0.35s forwards;
}

.confirmation-card .confirm-body {
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #000000 !important;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    animation: confirmItemIn 0.55s ease 0.55s forwards;
}

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

.confirmation-card .confirm-body .confirm-highlight {
    font-weight: 700;
    color: #282828;
}

/* ===========================
   Simi – Fixed to viewport bottom
   =========================== */
.simi-fixed {
    position: fixed;
    bottom: 50px;
    left: 210px;
    z-index: 2;
    pointer-events: none;
}

.simi-img {
    width: 27.5vw;
    max-width: 475px;
    min-width: 250px;
    height: auto;
    pointer-events: auto;
}

/* Desktop: fixed size, not responsive */
@media (min-width: 992px) {
    .simi-img {
        height: 350px;
        width: auto;
        min-width: 0;
        max-width: none;
    }
}

/* ===========================
   Footer Block (inside content-col)
   =========================== */
.footer-block {
    text-align: center;
    padding-top: 0.5rem;
}

.footer-logo {
    width: 12rem;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-block a:hover .footer-logo {
    transform: scale(1.06);
}

.footer-copy-wrap {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0.5rem 1rem 30px;
}

.footer-copy {
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #000000;
    margin: 0;
    line-height: 1.6;
}

.footer-copy a {
    color: #b20035;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-copy a:hover {
    transform: scale(1.08);
}

/* ===========================
   Hover Zoom: All links
   =========================== */
a {
    transition: transform 0.3s ease;
    display: inline-block;
}

a:hover {
    transform: scale(1.06);
}

/* ===========================
   Responsive: Tablets
   =========================== */
@media (max-width: 991px) {
    .main-content {
        padding: 2rem 0 2rem;
    }

    .content-col {
        align-items: center;
        text-align: center;
    }

    .titulo {
        text-align: center;
        font-size: 2.6rem;
    }

    .subtitulo {
        text-align: center;
    }

    /* Prevent cloud animation from stretching vertically on portrait screens */
    .nubes-overlay::before {
        background-size: 50% auto;
    }

    .simi-fixed {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        pointer-events: auto;
    }

    .simi-img {
        width: 52vw;
        min-width: 184px;
        max-width: 253px;
    }
}

/* ===========================
   Responsive: Mobile
   =========================== */
@media (max-width: 767px) {
    .main-content {
        padding: 2rem 0 1rem;
        min-height: auto;
    }

    .content-col {
        gap: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .titulo {
        font-size: 3.15rem;
    }

    .info-icons {
        gap: 1.5rem;
    }

    .form-card,
    .confirmation-card {
        max-width: 340px;
        align-self: center;
    }

    .btn-enviar {
        align-self: center;
    }

    .fondo-flores {
        height: 35vh;
        overflow: hidden;
    }

    .fondo-flores img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .footer-logo {
        width: 10rem;
    }
}

/* ===========================
   Responsive: Small phones
   =========================== */
@media (max-width: 400px) {
    .titulo {
        font-size: 2.7rem;
    }

    .info-icons {
        gap: 1rem;
    }

    .info-item img {
        width: 2rem;
    }

    .form-card,
    .confirmation-card {
        padding: 1.2rem 1.3rem;
    }

    .signup-form input {
        padding: 0.75rem 1.2rem;
        font-size: 0.95rem;
    }

    .btn-enviar {
        padding: 0.65rem 2.5rem;
        font-size: 1rem;
    }

    .simi-img {
        width: 46vw;
        min-width: 161px;
        max-width: 207px;
    }
}
