/* Composición y movimiento de las vistas públicas */

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(28, 143, 214, 0.08), transparent 55%),
        radial-gradient(700px 380px at -10% 20%, rgba(232, 135, 26, 0.07), transparent 50%),
        #f6f8fb;
}

h1, h2, h3, .hero-title, .section-title, .store-hero-title {
    font-family: 'Outfit', 'Inter', sans-serif;
}

.navbar {
    background: rgba(246, 248, 251, 0.78);
}

.nav-link {
    font-weight: 500;
}

/* Hero de escenario */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    max-width: 1180px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 7.5rem 2rem 4rem;
    overflow: hidden;
}

.stage-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: drift 14s ease-in-out infinite;
}

.orb-a {
    width: 280px;
    height: 280px;
    right: 6%;
    top: 18%;
    background: radial-gradient(circle, rgba(28, 143, 214, 0.45), transparent 68%);
}

.orb-b {
    width: 220px;
    height: 220px;
    right: 22%;
    bottom: 8%;
    background: radial-gradient(circle, rgba(232, 135, 26, 0.4), transparent 68%);
    animation-delay: -4s;
}

.orb-c {
    width: 160px;
    height: 160px;
    left: 8%;
    bottom: 12%;
    background: radial-gradient(circle, rgba(22, 50, 79, 0.12), transparent 70%);
    animation-delay: -8s;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: rise 0.8s ease both;
}

.hero-kicker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 0 0 rgba(232, 135, 26, 0.6);
    animation: pulse 2.2s ease-out infinite;
}

.hero-title {
    font-size: clamp(2.6rem, 4.6vw, 4.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.15rem;
}

.hero-title span {
    display: block;
    background: linear-gradient(120deg, #16324f 20%, #1c8fd6 55%, #e8871a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rise 0.9s 0.08s ease both;
}

.hero-subtitle {
    font-size: 1.12rem;
    max-width: 34rem;
    animation: rise 0.9s 0.16s ease both;
}

.hero-buttons {
    animation: rise 0.9s 0.24s ease both;
}

.hero-metrics {
    display: flex;
    gap: 1.75rem;
    margin-top: 2.4rem;
    animation: rise 0.9s 0.32s ease both;
}

.hero-metrics strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.hero-metrics span {
    color: var(--text-light);
    font-size: 0.82rem;
}

.stage-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    animation: rise 1s 0.15s ease both;
}

.orbit {
    display: none;
}

.orbit-a { width: 340px; height: 340px; }
.orbit-b {
    width: 250px;
    height: 250px;
    border-color: rgba(232, 135, 26, 0.4);
    animation-direction: reverse;
    animation-duration: 18s;
}

.orbit i {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-orange);
}

.hero-logo {
    position: relative;
    width: min(100%, 380px);
    padding: 2.2rem 1.6rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 70px rgba(22, 50, 79, 0.12);
    backdrop-filter: blur(10px);
    animation: floaty 6s ease-in-out infinite;
}

.hero-logo img {
    animation: none;
}

/* Cinta en movimiento */
.marquee {
    overflow: hidden;
    border-block: 1px solid rgba(22, 50, 79, 0.08);
    background: #16324f;
    color: #fff;
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding: 0.95rem 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    animation: ticker 22s linear infinite;
}

.marquee-track span::before {
    content: '◆';
    margin-right: 2.5rem;
    color: #e8871a;
}

.services {
    padding: 5rem 0 2rem;
}

.section-kicker {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--brand-orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-header {
    text-align: left;
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.7rem, 2.4vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 0 auto;
    font-size: 1.02rem;
}

.service-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 1.35rem 1.35rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(22, 50, 79, 0.08);
    box-shadow: 0 8px 24px rgba(22, 50, 79, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:first-child,
.service-card:hover {
    grid-row: auto;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 143, 214, 0.28);
    box-shadow: 0 16px 32px rgba(22, 50, 79, 0.08);
}

.service-card .service-icon {
    width: 42px;
    height: 42px;
    margin: 0 0 0.9rem;
    padding: 9px;
    border-radius: 12px;
    background: rgba(28, 143, 214, 0.1);
    color: var(--brand-blue);
}

.service-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
}

.service-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Proceso */
.process {
    padding-top: 1rem;
}

.process-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.4rem 1.1rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(22, 50, 79, 0.08);
}

.step b {
    display: block;
    margin-bottom: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--brand-orange);
}

.step h3 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* Galería */
.gallery {
    position: relative;
    margin: 1.5rem 0 0;
    padding: 4.5rem 0 3.5rem;
    background: transparent;
    color: var(--text-dark);
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 1.5rem;
    bottom: 1.5rem;
    border-radius: 36px;
    background:
        radial-gradient(380px 180px at 8% 20%, rgba(28, 143, 214, 0.35), transparent 70%),
        radial-gradient(340px 160px at 92% 75%, rgba(232, 135, 26, 0.28), transparent 72%),
        rgba(255, 255, 255, 0.72);
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.gallery .container {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 50px rgba(22, 50, 79, 0.06);
    backdrop-filter: blur(16px);
}

.gallery .section-title { color: var(--text-dark); }
.gallery .section-subtitle { color: var(--text-light); }
.gallery .section-subtitle a { color: var(--brand-blue) !important; text-decoration: none; }

.instagram-fallback {
    padding: 2.5rem 1rem 1rem;
    text-align: center;
}

/* Nosotros */
.about-content {
    align-items: center;
    gap: 3rem;
}

.about-panel {
    position: relative;
    padding: 2rem;
    border-radius: 28px;
    background: #16324f;
    color: #fff;
    overflow: hidden;
    min-height: 320px;
    display: grid;
    place-items: center;
}

.about-panel::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -30px;
    bottom: -40px;
    border-radius: 50%;
    background: rgba(232, 135, 26, 0.45);
    animation: drift 10s ease-in-out infinite;
}

.about-logo {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: none;
    animation: floaty 7s ease-in-out infinite;
}

.feature-item {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(22, 50, 79, 0.08);
}

.feature-number {
    color: var(--brand-orange);
}

/* Contacto */
.contact-content {
    align-items: stretch;
    gap: 1.25rem;
}

.contact-info {
    display: grid;
    gap: 0.8rem;
}

.contact-item {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(22, 50, 79, 0.08);
    transition: transform 0.35s ease;
}

.contact-item:hover { transform: translateX(6px); }

.contact-form {
    border-radius: 24px;
    padding: 1.6rem;
    box-shadow: 0 24px 50px rgba(22, 50, 79, 0.08);
}

.contact-form input,
.contact-form textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(28, 143, 214, 0.12);
}

/* Aparición al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
}

.reveal.is-in {
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal[data-d="1"].is-in { animation-delay: 0.08s; }
.reveal[data-d="2"].is-in { animation-delay: 0.16s; }
.reveal[data-d="3"].is-in { animation-delay: 0.24s; }
.reveal[data-d="4"].is-in { animation-delay: 0.32s; }

/* Tienda */
.store-page {
    background:
        radial-gradient(800px 300px at 80% 0%, rgba(28, 143, 214, 0.12), transparent 60%),
        #f6f8fb;
}

.store-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 1.25rem 1.25rem 0;
    padding: 4.5rem 1.5rem 3.5rem;
    border-radius: 32px;
    background:
        radial-gradient(420px 180px at 15% 20%, rgba(232, 135, 26, 0.35), transparent 60%),
        #16324f;
    color: #fff;
}

.store-hero .hero-kicker { color: rgba(255, 255, 255, 0.88); }
.store-hero-inner { position: relative; z-index: 1; }

.store-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    animation: rise 0.8s ease both;
}

.store-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    animation: rise 0.9s 0.1s ease both;
}

.store-card {
    border-radius: 22px;
    animation: rise 0.7s ease both;
}

.store-card:nth-child(2) { animation-delay: 0.08s; }
.store-card:nth-child(3) { animation-delay: 0.16s; }
.store-card:nth-child(4) { animation-delay: 0.24s; }

.login-wrap {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 240px at 15% 20%, rgba(28, 143, 214, 0.18), transparent 60%),
        radial-gradient(420px 220px at 90% 80%, rgba(232, 135, 26, 0.16), transparent 60%),
        #f6f8fb;
}

.login-box {
    position: relative;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(22, 50, 79, 0.1) !important;
    animation: rise 0.7s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

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

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(18px, -16px, 0); }
}

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

@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(232, 135, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 135, 26, 0); }
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 968px) {
    .hero,
    .process-line,
    .about-content {
        grid-template-columns: 1fr;
    }

    .stage-visual { min-height: 280px; }
    .hero { min-height: auto; padding-top: 6.5rem; text-align: left; }
    .hero-metrics { flex-wrap: wrap; }
    .gallery .container { padding: 1.5rem 1rem 1.25rem; }
}

@media (max-width: 720px) {
    .service-board { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-kicker,
    .hero-title span,
    .hero-subtitle,
    .hero-buttons,
    .hero-metrics,
    .stage-visual,
    .store-hero-title,
    .store-hero-subtitle,
    .store-card,
    .login-box {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .orb, .orbit, .hero-logo, .about-logo, .marquee-track, .about-panel::after, .hero-kicker i {
        animation: none;
    }
}
