/* ==========================================================================
   Intranube · Home (portal de servicios)
   CSS plano, sin build. Mobile-first en la práctica: todo es fluido y las
   grillas se reorganizan con tres puntos de corte (900 / 480 / 320 px).
   ========================================================================== */

:root {
    --violet: #7e10e6;
    --violet-dark: #5f0fb0;
    --violet-soft: #f1e4ff;
    --blue: #1e87f0;
    --blue-dark: #0b5cb8;
    --blue-soft: #e4f0ff;
    --ink: #1b1230;
    --muted: #5b5470;
    --muted-2: #6d6683;
    --bg: #faf8ff;
    --card: #ffffff;
    --line: #ece3fa;
    --pad: clamp(20px, 5vw, 48px);
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-logo: "Fredoka", "Poppins", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    overflow-wrap: break-word;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--violet);
}

a:hover {
    color: #5a0bb0;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    left: 8px;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: var(--pad);
}

/* ---- Cabecera ----------------------------------------------------------- */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 18px var(--pad);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 15px;
    font-weight: 500;
}

.nav a {
    padding: 8px 0;
    color: var(--ink);
    text-decoration: none;
}

.nav a:hover {
    color: var(--violet);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
}

.btn--solid {
    background: var(--violet);
    color: #fff;
}

.btn--solid:hover {
    background: var(--violet-dark);
    color: #fff;
}

.btn--outline {
    padding: 10px 22px;
    border: 2px solid var(--violet);
    font-size: 15px;
    color: var(--violet);
}

.btn--outline:hover {
    background: var(--violet);
    color: #fff;
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
    padding: clamp(36px, 7vw, 60px) var(--pad) 40px;
    text-align: center;
}

.hero__logo {
    height: clamp(80px, 24vw, 120px);
    width: auto;
}

.hero__title {
    margin: 8px 0 0;
    font: 600 clamp(44px, 14vw, 84px) / 1 var(--font-logo);
    letter-spacing: -2px;
    color: var(--violet);
}

.hero__tagline {
    margin: 18px 0 0;
    font-size: clamp(16px, 4.4vw, 19px);
    color: var(--muted);
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 32px auto 0;
    padding: 8px 8px 8px 20px;
    border: 1px solid #e2d6f5;
    border-radius: 999px;
    background: var(--card);
    box-shadow: 0 10px 40px rgba(126, 16, 230, 0.1);
}

.search__input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    padding: 10px 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 400 16px var(--font-body);
    color: var(--ink);
}

.search__input::placeholder {
    color: var(--muted-2);
}

.search:focus-within {
    border-color: var(--violet);
    box-shadow: 0 10px 40px rgba(126, 16, 230, 0.18);
}

.search__btn {
    flex: none;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--violet);
    font: 600 15px var(--font-body);
    color: #fff;
    cursor: pointer;
}

.search__btn:hover {
    background: var(--violet-dark);
}

/* ---- Servicios (accesos tipo aplicación) --------------------------------- */

.services {
    padding-top: 24px;
    padding-bottom: clamp(48px, 8vw, 70px);
}

.tiles,
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tile {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(126, 16, 230, 0.12);
    color: var(--ink);
}

.tile__icon {
    flex: none;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--tile-color, var(--violet));
}

.tile__title,
.tile__sub {
    min-width: 0;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.tile__title {
    font-weight: 600;
}

.tile__sub {
    font-size: 13.5px;
    color: var(--muted);
}

/* ---- Nosotros ----------------------------------------------------------- */

.about {
    padding: clamp(48px, 8vw, 80px) var(--pad);
    border-block: 1px solid var(--line);
    background: var(--card);
}

.about__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--violet-dark);
}

.about__title {
    margin: 12px 0 18px;
    font-size: clamp(26px, 6vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.about__text {
    margin: 0;
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.75;
    color: var(--muted);
}

/* ---- Proceso ------------------------------------------------------------ */

.process {
    padding-block: clamp(48px, 8vw, 80px);
}

.process__title {
    margin: 0 0 clamp(28px, 5vw, 40px);
    text-align: center;
    font-size: clamp(26px, 6vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.step {
    min-width: 0;
    padding: 24px;
    border-radius: 20px;
    background: var(--violet-soft);
}

.step:nth-child(even) {
    background: var(--blue-soft);
}

.step__num {
    font: 600 34px var(--font-logo);
    color: var(--violet-dark);
}

.step:nth-child(even) .step__num {
    color: var(--blue-dark);
}

.step__title {
    margin: 6px 0 4px;
    font-size: 18px;
}

.step__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a3f66;
}

.step:nth-child(even) .step__text {
    color: #35506e;
}

/* ---- Pie ---------------------------------------------------------------- */

.site-footer {
    padding: clamp(36px, 7vw, 48px) var(--pad);
    background: var(--ink);
    color: #fff;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand span {
    font: 600 30px var(--font-logo);
    color: #c79bff;
}

.footer-mail {
    margin: 10px 0 20px;
    font-size: 15px;
    color: #cfc5e6;
    overflow-wrap: anywhere;
}

.footer-mail a {
    color: inherit;
}

.footer-legal {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #9a8fb8;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
    .tiles,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .tiles {
        gap: 14px;
    }
}

@media (max-width: 320px) {
    .tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tile {
        transition: none;
    }

    .tile:hover {
        transform: none;
    }
}
