@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Nunito:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

@import url('./assistant.css');
@import url('./variables.css');
@import url('./reset.css');
@import url('./navbar.css');
@import url('./hero.css');
@import url('./services.css');
@import url('./reviews.css');
@import url('./footer.css');

/*html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100%;
}

body {
    height: 100%;
}

.hero,
.services,
.reviews,
.footer {
    scroll-snap-align: start;
    min-height: 100dvh;
} */

body{
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 16px 40px;
  box-sizing: border-box;
}

.app-device {
  width: min(100%, 430px);
  min-height: min(100vh - 48px, 920px);
  background: var(--background);
  border-radius: 32px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.65);
}

.app-device > *:not(.whatsapp-float):not(.back-to-top):not(.wa-tooltip):not(.cookie-banner):not(.wa-chatbox) {
  width: 100%;
}

.app-device::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent 18%, transparent 82%, rgba(255,255,255,0.16));
}

.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 2rem), 430px);
    max-width: 100%;
    background: rgba(250,248,255,.96);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border: 1px solid rgba(167,214,93,.2);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: opacity .3s ease, transform .3s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-banner__text {
    font-family: var(--font-base);
    font-size: .82rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.cookie-banner__actions {
    display: flex;
    gap: .5rem;
}

.cookie-banner__btn {
    flex: 1;
    padding: .55rem;
    border-radius: 10px;
    border: none;
    font-family: var(--font-base);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-banner__btn--accept {
    background: var(--green-dark);
    color: #fff;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,.15);
}

.wave-divider {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.wave--brand-to-services {
    background: #f5f0e8;
}

.wave--services-to-reviews {
    background: #ecf7ff;
}

.back-to-top {
    position: fixed;
    bottom: 48px;
    left: calc((100vw - min(calc(100vw - 32px), 430px)) / 2 + 20px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-dark);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 900;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:active {
    transform: scale(0.94);
}

/* En móviles, eliminar el marco centrado y los bordes redondeados
     — el diseño con device/frame se aplicará solo en tablet/desktop */
@media (max-width: 767px) {
    .app-shell {
        align-items: stretch;
        padding: 0;
    }

    .app-device {
        width: 100%;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: var(--background);
        position: static;
    }

    .app-device > *:not(.whatsapp-float):not(.back-to-top):not(.wa-tooltip):not(.cookie-banner):not(.wa-chatbox) {
        width: 100%;
    }

    .app-device::before {
        display: none;
    }

    .back-to-top {
        left: 20px;
    }

    .site-header {
        left: 0;
        right: 0;
        max-width: 100%;
        margin: 0;
    }
}