/* ==========================================================================
   Grupo HYPE – estilos
   ========================================================================== */
:root {
    --hype-purple: #a166ff;
    --hype-purple-dark: #7d3cf0;
    --hype-green: #2cffa4;
    --hype-ink: #190019;
    --hype-text: #262626;
    --hype-muted: #6b6b6b;
    --hype-light: #f6f2ff;
    --header-h: 84px;

    --bs-primary: #a166ff;
    --bs-primary-rgb: 161, 102, 255;
    --bs-link-color: #7d3cf0;
    --bs-link-hover-color: #190019;
    --bs-body-font-family: "Roboto Condensed", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: "Roboto Condensed", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: .3px;
    color: var(--hype-text);
    background: #fff;
    padding-top: var(--header-h);
}
body.home { padding-top: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    color: var(--hype-purple);
    letter-spacing: -.02em;
}
h2 { font-weight: 900; }
h3 { font-weight: 700; font-size: 1.75rem; }
h5 { font-weight: 700; }

a { color: var(--hype-purple-dark); }
strong { color: var(--hype-ink); font-weight: 700; }

.skip-link { position: absolute; z-index: 2000; top: 8px; left: 8px; background: #fff; padding: .5rem 1rem; }

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.btn-hype {
    --bs-btn-bg: var(--hype-purple);
    --bs-btn-border-color: var(--hype-purple);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--hype-ink);
    --bs-btn-hover-border-color: var(--hype-ink);
    --bs-btn-hover-color: var(--hype-green);
    --bs-btn-active-bg: var(--hype-ink);
    --bs-btn-active-color: var(--hype-green);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
    border-radius: 0;
    padding: .8rem 1.8rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--hype-purple);
    transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header .navbar { min-height: var(--header-h); padding: 10px 0; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(25, 0, 25, .18); }

.home .site-header:not(.scrolled) { background: transparent; }
.home .site-header:not(.scrolled) .navbar-brand img { filter: invert(1); }

.navbar-brand img { height: 60px; width: auto; transition: filter .3s; }
.navbar-toggler { border: 0; color: #fff; font-size: 2rem; padding: 0; box-shadow: none !important; }

.site-header .nav-link {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #fff;
    padding: .5rem 1rem !important;
    position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active { color: var(--hype-ink); }
.home .site-header:not(.scrolled) .nav-link:hover,
.home .site-header:not(.scrolled) .nav-link.active { color: var(--hype-green); }

.site-header .nav-cta { background: var(--hype-green); color: var(--hype-ink) !important; margin-left: .75rem; }
.site-header .nav-cta:hover { background: var(--hype-ink); color: var(--hype-green) !important; }

.dropdown-menu {
    border: 0;
    border-radius: 0;
    padding: .5rem 0;
    background: var(--hype-ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.dropdown-item { color: #fff; font-family: "Roboto", sans-serif; font-weight: 500; padding: .55rem 1.4rem; }
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
    background: transparent; color: var(--hype-green);
}

@media (min-width: 992px) {
    .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    .offcanvas-lg-static .offcanvas-header { display: none; }
}

@media (max-width: 991.98px) {
    .offcanvas { background: var(--hype-ink); }
    .offcanvas .nav-link { font-size: 1.3rem; padding: .7rem 0 !important; }
    .offcanvas .nav-link.active { color: var(--hype-green) !important; }
    .offcanvas .nav-cta { margin: 1rem 0 0; display: inline-block; padding: .7rem 1.4rem !important; }
    .offcanvas .dropdown-menu { box-shadow: none; padding-left: 1rem; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--hype-ink) url("../img/Grupohype-ImagenCabecera-2.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(25, 0, 25, .45) 0%, rgba(25, 0, 25, 0) 30%, rgba(25, 0, 25, .15) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-logo { width: 287px; max-width: 60vw; height: auto; animation: heroIn 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.hero-smiley {
    position: absolute;
    width: 118px;
    right: -60px;
    bottom: -30px;
    animation: heroIn 1.2s .4s cubic-bezier(.2, .8, .2, 1) both, float 4s 1.6s ease-in-out infinite;
}
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--hype-green);
    font-size: 2rem;
    animation: bounce 2s infinite;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(30px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-8deg); } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* --------------------------------------------------------------------------
   Servicios (home)
   -------------------------------------------------------------------------- */
.service-card { text-align: center; padding: 0 1rem; }
.service-card a { text-decoration: none; display: block; }
.service-card img { width: 100%; max-width: 280px; height: auto; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.service-card a:hover img { transform: scale(1.06) rotate(-2deg); }
.service-card h2 { font-size: 2rem; margin: 1rem 0 .75rem; }
.service-card p { color: var(--hype-text); }

/* HYPE: hoja de ruta */
.hype-steps { background: var(--hype-light); }
.hype-step .letter {
    font-family: "Prompt", sans-serif;
    font-weight: 800;
    font-size: 6rem;
    line-height: 1;
    color: var(--hype-green);
    -webkit-text-stroke: 2px var(--hype-ink);
    display: block;
    margin-bottom: .5rem;
}
.hype-step h5 { font-size: 1.4rem; }
.hype-step p { font-size: 17px; }

.hype-progress { margin-top: 1.5rem; }
.hype-progress .label {
    display: flex; justify-content: space-between;
    font-family: "Roboto", sans-serif; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px; color: var(--hype-purple);
    margin-bottom: .4rem;
}
.hype-progress .progress { height: 6px; border-radius: 0; background: #e3d6ff; }
.hype-progress .progress-bar { background: var(--hype-purple); width: 0; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }

/* Marquesina verde */
.marquee { background: var(--hype-green); color: var(--hype-ink); overflow: hidden; padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span {
    font-family: "Prompt", sans-serif; font-weight: 700; font-size: 1.4rem;
    white-space: nowrap; padding-right: 3rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Clientes */
.clients-title {
    font-family: "Prompt", sans-serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 8vw, 7rem);
    line-height: 1;
    color: var(--hype-purple);
    letter-spacing: -.04em;
}
.clients-title span { color: var(--hype-green); -webkit-text-stroke: 1px var(--hype-ink); }
.client-logo img { max-width: 200px; width: 100%; height: auto; filter: grayscale(1); opacity: .6; transition: .3s; }
.client-logo:hover img { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Páginas interiores
   -------------------------------------------------------------------------- */
.page-title {
    background: var(--hype-purple);
    color: #fff;
    padding: 110px 0 70px;
    margin-top: calc(var(--header-h) * -1);
    padding-top: calc(var(--header-h) + 70px);
    position: relative;
    overflow: hidden;
}
.page-title::after {
    content: "HYPE";
    position: absolute;
    right: -1rem;
    bottom: -3.5rem;
    font-family: "Prompt", sans-serif;
    font-weight: 800;
    font-size: 14rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(44, 255, 164, .45);
    pointer-events: none;
}
.page-title h1 {
    color: #fff;
    font-family: "Prompt", sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin: 0;
    position: relative;
    z-index: 1;
}
.page-title .lead { color: var(--hype-green); font-size: 1.35rem; margin-top: .75rem; position: relative; z-index: 1; }

.service-row + .service-row { margin-top: 80px; }
.service-row h3 { font-size: 2rem; margin-bottom: 1rem; }
.service-img { width: 100%; box-shadow: 18px 18px 0 var(--hype-green); }
.flex-lg-row-reverse .service-img { box-shadow: -18px 18px 0 var(--hype-green); }

.intro-text { font-size: 1.5rem; color: var(--hype-ink); font-family: "Roboto", sans-serif; }

/* Bloques de patrón (Inbound / Eventos) */
.pattern-row + .pattern-row,
.pattern-row + .row,
.row + .pattern-row { margin-top: 80px; }
.pattern-card {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pattern-card-inner { background: var(--hype-ink); padding: 1.2rem 2rem; text-align: center; transform: rotate(-3deg); }
.pattern-card-inner h2 { color: var(--hype-green); font-family: "Prompt", sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }
.pattern-card-inner span { color: #fff; font-family: "Roboto", sans-serif; font-weight: 500; }
.pattern-heading { font-family: "Prompt", sans-serif; font-size: 2.6rem; }
.pattern-heading small { display: block; font-size: 1.2rem; color: var(--hype-ink); font-weight: 500; font-family: "Roboto", sans-serif; }

.sub-services { border-top: 3px solid var(--hype-green); padding-top: 2rem; margin-top: 2.5rem; }
.sub-services h3 { font-size: 1.5rem; }
.sub-services p { font-size: 17px; }

/* Quiénes somos */
.about-text p { font-size: 1.35rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-card { margin-bottom: 70px; }
.post-card-img { display: block; overflow: hidden; }
.post-card-img img { width: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.post-card-img:hover img { transform: scale(1.04); }
.post-card-body { padding-top: 1.5rem; }
.post-card h3 { font-size: 2rem; }
.post-card h3 a { color: var(--hype-purple); text-decoration: none; }
.post-card h3 a:hover { color: var(--hype-ink); }

.post-meta { font-size: 15px; color: var(--hype-muted); margin-bottom: 1rem; }
.post-meta .list-inline-item:not(:last-child) { margin-right: 1.2rem; }
.post-meta a { color: var(--hype-muted); text-decoration: none; }
.post-meta a:hover { color: var(--hype-purple); }

.post-content h2 { font-size: 2rem; margin: 3rem 0 1.2rem; }
.post-content img { width: 100%; height: auto; margin-bottom: 1.5rem; }
.post-content p, .post-content li { font-size: 19px; }
.post-hero img { width: 100%; height: auto; }
.post-share a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: var(--hype-purple); color: #fff; font-size: 1.1rem; text-decoration: none;
}
.post-share a:hover { background: var(--hype-ink); color: var(--hype-green); }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-form .form-label { font-family: "Roboto", sans-serif; font-weight: 700; color: var(--hype-ink); font-size: 15px; }
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid #d9cdf5;
    padding: .7rem .2rem;
    font-size: 17px;
    background-color: transparent;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus { box-shadow: none; border-color: var(--hype-purple); }
.contact-form .form-check-input:checked { background-color: var(--hype-purple); border-color: var(--hype-purple); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Información básica de protección de datos (primera capa, RGPD) */
.rgpd-info {
    background: var(--hype-light);
    border-left: 3px solid var(--hype-purple);
    padding: 1rem 1.25rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--hype-muted);
}
.rgpd-info .rgpd-title { font-family: "Roboto", sans-serif; font-weight: 700; color: var(--hype-ink); margin-bottom: .5rem; }
.rgpd-info dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin-bottom: .5rem; }
.rgpd-info dt { font-weight: 700; color: var(--hype-text); }
.rgpd-info dd { margin: 0; }
@media (max-width: 575.98px) {
    .rgpd-info dl { grid-template-columns: 1fr; gap: 0; }
    .rgpd-info dd { margin-bottom: .4rem; }
}

.contact-box {
    display: block;
    background: var(--hype-light);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    height: 100%;
    transition: background .3s, transform .3s;
}
.contact-box i { font-size: 2.2rem; color: var(--hype-purple); }
.contact-box h5 { margin: .8rem 0 .3rem; }
.contact-box span { color: var(--hype-text); }
.contact-box:hover { background: var(--hype-green); transform: translateY(-4px); }
.contact-box:hover i, .contact-box:hover h5 { color: var(--hype-ink); }

/* CTA */
.cta-band { background: var(--hype-ink); padding: 50px 0; }
.cta-band p { font-family: "Prompt", sans-serif; font-weight: 700; font-size: 1.6rem; color: #fff; }
.cta-band p strong { color: var(--hype-green); }
.cta-band .btn {
    border-radius: 0; font-family: "Roboto", sans-serif; font-weight: 700; text-transform: uppercase; font-size: .95rem; letter-spacing: 1px;
    background: var(--hype-green); border-color: var(--hype-green); color: var(--hype-ink);
}
.cta-band .btn:hover { background: var(--hype-purple); border-color: var(--hype-purple); color: #fff; }

/* Legal */
.legal h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2.2rem; }
.legal p { font-size: 17px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--hype-green); color: var(--hype-ink); padding: 80px 0 0; }
.site-footer h5 { color: var(--hype-ink); font-size: 1.3rem; margin-bottom: 1.2rem; }
.site-footer p { font-size: 17px; }
.site-footer a { color: var(--hype-ink); text-decoration: none; }
.site-footer a:hover { color: var(--hype-purple-dark); text-decoration: underline; }
.footer-menu { font-family: "Roboto", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.footer-menu li { margin-bottom: .35rem; }
.footer-menu ul { padding: .35rem 0 .1rem 1rem; font-weight: 500; }
.social a {
    display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    background: var(--hype-ink); color: var(--hype-green); font-size: 1.1rem;
}
.social a:hover { background: var(--hype-purple); color: #fff; text-decoration: none; }
.footer-bottom { margin-top: 60px; padding: 1.2rem 0; border-top: 1px solid rgba(25, 0, 25, .15); font-size: 15px; }

.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 1000;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: var(--hype-purple); color: #fff; font-size: 1.2rem; text-decoration: none;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--hype-ink); color: var(--hype-green); }

/* --------------------------------------------------------------------------
   Animación de aparición
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 767.98px) {
    body { font-size: 17px; }
    .section { padding: 60px 0; }
    .service-row + .service-row, .pattern-row + .pattern-row, .pattern-row + .row, .row + .pattern-row { margin-top: 56px; }
    .service-img, .flex-lg-row-reverse .service-img { box-shadow: 10px 10px 0 var(--hype-green); }
    .hero-smiley { width: 80px; right: -30px; }
    .page-title::after { font-size: 8rem; bottom: -2rem; }
    .hype-step .letter { font-size: 4.5rem; }
}
