/* ====================================================================
   RIMASUNCHIK — site.css
   Diseño: dark, glass-morphism, tipografía serif+sora
   Responsive: 1280 → 1024 → 768 → 480 → 360
==================================================================== */

/* === 1. TOKENS =================================================== */
:root {
    --bg: #071011;
    --bg-2: #0d1819;
    --panel: rgba(12, 20, 21, 0.9);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);
    --text: #f6f0ea;
    --muted: #b7b0a8;
    --muted-2: #8f9b98;
    --fuchsia: #ef2b7e;
    --fuchsia-2: #ff6aac;
    --green: #20433c;
    --green-2: #3a6c62;
    --gold: #caa15b;
    --orange: #ff915d;
    --white: #ffffff;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.22);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1200px;
    --gutter: clamp(1rem, 5vw, 2rem);
    --section-pt: clamp(2.2rem, 6vw, 5rem);
    --section-pb: clamp(1rem, 3vw, 2.5rem);
    --font-display: "Newsreader", serif;
    --font-ui: "Sora", sans-serif;
}

/* === 2. RESET + BASE ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at 0% 0%, rgba(239, 43, 126, 0.18), transparent 28rem),
        radial-gradient(circle at 100% 0%, rgba(35, 76, 67, 0.32), transparent 32rem),
        linear-gradient(180deg, #050809 0%, #0c1213 34%, #091112 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 54px 54px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.04em;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}

h1 {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 5.5vw, 5.4rem);
}

h2 {
    margin-top: 0.9rem;
    font-size: clamp(1.9rem, 3.6vw, 3.8rem);
    max-width: 28ch;
}

h3 {
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.3;
}

/* === 3. LAYOUT — CONTENEDOR ====================================== */
.utility-inner,
.site-header,
main,
.site-footer {
    width: min(var(--container), 100% - (var(--gutter) * 2));
    margin-inline: auto;
}

/* === 4. UTILITY BAR ============================================== */
.utility-bar {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(4, 8, 8, 0.75);
    backdrop-filter: blur(12px);
}

.utility-inner {
    min-height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* === 5. HEADER + NAV ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    backdrop-filter: blur(16px);
    /* Separador inferior sutil */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--fuchsia), var(--fuchsia-2));
    box-shadow: 0 14px 28px rgba(239, 43, 126, 0.28);
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 12, 13, 0.82);
    box-shadow: var(--shadow-soft);
}

.site-nav a {
    padding: 0.72rem 0.92rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    padding: 0.86rem 1.1rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* === 6. BOTONES ================================================== */
.nav-cta,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.88rem 1.3rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta,
.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--fuchsia), var(--fuchsia-2));
    box-shadow: 0 18px 38px rgba(239, 43, 126, 0.24);
    border: 0;
}

.ghost-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.nav-cta:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* === 7. TARJETAS BASE (glass dark) ================================ */
.hero-copy,
.hero-panel,
.info-card,
.values-panel,
.team-panel,
.service-card,
.specialties-panel,
.project-card,
.blog-card,
.contact-panel,
.form-panel,
.article-hero,
.article-body,
.executive-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(17, 25, 26, 0.95), rgba(10, 15, 16, 0.98));
    box-shadow: var(--shadow);
}

/* === 8. HERO ===================================================== */
main {
    padding-bottom: 3rem;
}

.hero,
.executive-strip,
.section,
.site-footer {
    position: relative;
    z-index: 1;
}

.hero {
    padding: clamp(1.5rem, 3vw, 2.6rem) 0 clamp(0.8rem, 2vw, 1.2rem);
}

/* Slider contenedor */
.hero-slider {
    position: relative;
}

.hero-stage {
    position: relative;
    /* Sin min-height fijo — JS controla la altura dinámicamente */
    height: auto;
    min-height: 42rem;
    transition: height 0.55s ease;
    overflow: hidden;
}

/* Slides */
.hero-slide {
    --hero-accent: var(--fuchsia);
    --hero-accent-strong: var(--fuchsia-2);
    --hero-accent-soft: rgba(239, 43, 126, 0.18);
    --hero-border: rgba(239, 43, 126, 0.22);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8%);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active,
.hero-slide.is-entering {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.is-exiting {
    opacity: 0;
    pointer-events: none;
    transform: translateX(8%);
    z-index: 1;
}

/* Temas de color por slide */
.hero-slide.theme-predial {
    --hero-accent: #4bc58b;
    --hero-accent-strong: #8ada63;
    --hero-accent-soft: rgba(89, 213, 144, 0.18);
    --hero-border: rgba(89, 213, 144, 0.22);
}

.hero-slide.theme-community {
    --hero-accent: #ff8c5a;
    --hero-accent-strong: #ffc067;
    --hero-accent-soft: rgba(255, 145, 93, 0.18);
    --hero-border: rgba(255, 145, 93, 0.22);
}

/* Layout hero: 2 columnas en desktop */
.hero-slide-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.25rem;
    align-items: start;
}

/* Copy (columna izquierda) */
.hero-copy {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    background:
        linear-gradient(180deg, rgba(18, 26, 28, 0.96), rgba(10, 15, 16, 0.98)),
        radial-gradient(circle at top left, var(--hero-accent-soft), transparent 28rem);
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -6rem;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-accent-soft), transparent 68%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.88rem;
    border-radius: 999px;
    border: 1px solid var(--hero-border, rgba(239, 43, 126, 0.28));
    background: var(--hero-accent-soft);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-summary {
    max-width: 42rem;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    color: var(--muted);
    line-height: 1.72;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.6rem 0 1.25rem;
}

.hero-slide .primary-button {
    background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent-strong));
    box-shadow: 0 18px 38px color-mix(in srgb, var(--hero-accent) 28%, transparent);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-tags span {
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #ece4dd;
    font-size: 0.85rem;
}

/* Brief — 3 columnas */
.hero-brief {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.hero-brief-card {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.hero-brief-card span,
.executive-card span,
.service-label,
.panel-label,
.process-number {
    display: block;
    color: var(--muted-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-brief-card strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Panel (columna derecha) */
.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 42rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem;
    background:
        linear-gradient(180deg, rgba(7, 10, 11, 0.12), rgba(7, 10, 11, 0.8)),
        linear-gradient(140deg, #182423 0%, #11191a 48%, #091011 100%);
    background-size: cover;
    background-position: center;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, var(--hero-accent-soft), transparent 24rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%);
    pointer-events: none;
}

.hero-panel-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 9, 10, 0.08) 0%, rgba(6, 9, 10, 0.5) 44%, rgba(6, 9, 10, 0.88) 100%);
}

.hero-panel-header,
.hero-stat-grid {
    position: relative;
    z-index: 1;
}

.hero-panel-header {
    max-width: 24rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 10, 10, 0.42);
    backdrop-filter: blur(12px);
}

.hero-panel-header strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1.05rem;
    line-height: 1.45;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: end;
}

.hero-stat {
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 13, 0.76);
    backdrop-filter: blur(8px);
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-stat span {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Footer del slider */
.hero-slider-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.hero-slider-status {
    min-width: 8.2rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(13, 19, 20, 0.84);
    box-shadow: var(--shadow-soft);
}

.hero-slider-status strong {
    display: block;
    margin-top: 0.42rem;
    font-size: 1.45rem;
    letter-spacing: -0.05em;
}

.hero-slider-progress {
    position: relative;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.hero-slider-progress span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fuchsia), var(--fuchsia-2));
    transition: width 0.45s ease;
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(9, 13, 14, 0.82);
}

.hero-slider-dot,
.hero-slider-arrow {
    border: 0;
    color: var(--white);
    font: inherit;
    cursor: pointer;
}

.hero-slider-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.hero-slider-dot.is-active {
    width: 2.1rem;
    background: linear-gradient(90deg, var(--fuchsia), var(--fuchsia-2));
}

.hero-slider-arrow {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider-arrow:hover,
.hero-slider-dot:hover {
    transform: translateY(-1px);
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === 9. EXECUTIVE STRIP ========================================== */
.executive-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.executive-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(21, 30, 32, 0.95), rgba(11, 17, 18, 0.98)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 16rem);
}

.executive-card strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.executive-card p {
    margin: 0.62rem 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* === 10. SECCIONES BASE ========================================== */
.section {
    padding: var(--section-pt) 0 var(--section-pb);
}

.section-heading {
    position: relative;
    max-width: 58rem;
    margin-bottom: 1.5rem;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.72;
    margin: 0.8rem 0 0;
}

.section-heading::after {
    content: "";
    display: block;
    width: 5.5rem;
    height: 2px;
    margin-top: 1.1rem;
    background: linear-gradient(90deg, var(--fuchsia), transparent);
}

.section-about .section-heading::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-services .section-heading::after {
    background: linear-gradient(90deg, var(--green-2), transparent);
}

.section-projects .section-heading::after {
    background: linear-gradient(90deg, var(--fuchsia), var(--orange), transparent);
}

.section-blog .section-heading::after {
    background: linear-gradient(90deg, var(--orange), transparent);
}

.section-contact .section-heading::after {
    background: linear-gradient(90deg, var(--green-2), transparent);
}

/* Grids compartidos */
.about-grid,
.about-columns,
.service-grid,
.project-grid,
.blog-grid,
.contact-grid,
.client-grid,
.process-band {
    display: grid;
    gap: clamp(0.65rem, 1.5vw, 1rem);
}

.about-grid,
.about-columns,
.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1rem;
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* === 11. ABOUT =================================================== */
.info-card,
.values-panel,
.team-panel,
.specialties-panel,
.contact-panel,
.form-panel {
    padding: clamp(1.3rem, 2.5vw, 1.8rem);
}

.section-about .info-card {
    background:
        linear-gradient(180deg, rgba(20, 28, 30, 0.95), rgba(11, 16, 17, 0.98)),
        radial-gradient(circle at top left, rgba(202, 161, 91, 0.12), transparent 18rem);
}

.section-about .values-panel,
.section-about .team-panel {
    background:
        linear-gradient(180deg, rgba(22, 32, 30, 0.97), rgba(14, 20, 20, 0.99)),
        radial-gradient(circle at top left, rgba(58, 108, 98, 0.18), transparent 18rem);
}

.check-list,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.check-list li,
.contact-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--text);
    font-size: 0.94rem;
}

.check-list svg,
.contact-list svg,
.service-icon svg,
.blog-card svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    flex: none;
    margin-top: 0.2rem;
}

.team-list {
    display: grid;
    gap: 0.8rem;
}

.team-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
}

.team-card strong,
.project-body strong {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--white);
}

.team-card span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* === 12. SERVICIOS =============================================== */
.service-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 2.5vw, 1.5rem);
    background:
        linear-gradient(180deg, rgba(17, 24, 26, 0.95), rgba(10, 15, 16, 0.98)),
        radial-gradient(circle at top right, rgba(58, 108, 98, 0.14), transparent 16rem);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    right: -2.4rem;
    bottom: -2.4rem;
    width: 9rem;
    height: 9rem;
    background: radial-gradient(circle, rgba(239, 43, 126, 0.18), transparent 72%);
    pointer-events: none;
}

.service-card:hover,
.project-card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.95rem;
    border-radius: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--fuchsia), #ad0d56);
}

.service-label {
    margin-bottom: 0.55rem;
}

.service-card h3 {
    margin-bottom: 0.7rem;
}

.service-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
    margin: 0;
}

/* Banda de proceso */
.process-step {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(16, 22, 24, 0.96), rgba(10, 15, 16, 0.99)),
        radial-gradient(circle at top left, rgba(58, 108, 98, 0.1), transparent 14rem);
}

.process-step strong {
    display: block;
    margin: 0.55rem 0 0.65rem;
    font-size: 1rem;
    line-height: 1.4;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Panel de especialidades */
.specialties-panel {
    margin-top: 1rem;
    background:
        linear-gradient(180deg, rgba(17, 24, 26, 0.96), rgba(10, 15, 16, 0.99)),
        radial-gradient(circle at top left, rgba(58, 108, 98, 0.14), transparent 20rem);
}

.specialties-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.specialties-header h3 {
    max-width: 18rem;
}

.specialties-header p {
    max-width: 36rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.specialties-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.specialty-item {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem 1.05rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.specialty-item[open] {
    border-color: rgba(58, 108, 98, 0.4);
    background: rgba(58, 108, 98, 0.1);
}

.specialty-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
    list-style: none;
    color: var(--white);
}

.specialty-item summary::-webkit-details-marker {
    display: none;
}

.specialty-item p {
    margin: 0.7rem 0 0.2rem;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.88rem;
}

/* === 13. PROYECTOS =============================================== */
.project-card,
.blog-card {
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.project-card {
    background:
        linear-gradient(180deg, rgba(17, 24, 26, 0.95), rgba(10, 15, 16, 0.99)),
        radial-gradient(circle at top left, rgba(239, 43, 126, 0.14), transparent 16rem);
}

.project-media {
    min-height: 15.6rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 1rem;
    background:
        linear-gradient(145deg, rgba(239, 43, 126, 0.28), rgba(25, 60, 53, 0.82)),
        linear-gradient(160deg, #202d2b, #141d1c);
    background-size: cover;
    background-position: center;
}

.project-index,
.project-media span,
.blog-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 9, 10, 0.46);
    color: var(--white);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.project-body {
    padding: 1.4rem;
}

.project-body h3 {
    margin-bottom: 0.75rem;
}

.project-body p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
    margin: 0 0 0.7rem;
}

/* === 14. CLIENTES ================================================ */
.client-card {
    min-height: 6.5rem;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(18, 26, 28, 0.92), rgba(12, 18, 19, 0.96));
    transition: border-color 0.2s ease;
}

.client-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.client-card img {
    max-height: 3rem;
    object-fit: contain;
}

/* === 15. BLOG ==================================================== */
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.4rem;
    background:
        linear-gradient(180deg, rgba(17, 24, 26, 0.95), rgba(10, 15, 16, 0.99)),
        radial-gradient(circle at top right, rgba(255, 145, 93, 0.14), transparent 16rem);
}

.blog-card h3 {
    line-height: 1.3;
}

.blog-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
    margin: 0;
    flex: 1;
}

.blog-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: #ffd6c2;
    font-weight: 700;
    font-size: 0.92rem;
}

/* === 16. CONTACTO ================================================ */
.section-contact .contact-panel,
.section-contact .form-panel {
    background:
        linear-gradient(180deg, rgba(17, 24, 26, 0.96), rgba(10, 15, 16, 0.99)),
        radial-gradient(circle at top left, rgba(58, 108, 98, 0.14), transparent 18rem);
}

.contact-panel,
.form-panel {
    min-height: 100%;
}

.full-width {
    width: 100%;
}

.map-frame {
    margin-top: 1.25rem;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
}

.map-frame iframe {
    width: 100%;
    min-height: 18rem;
    border: 0;
    display: block;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.contact-form label {
    display: grid;
    gap: 0.48rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    padding: 0.95rem 1rem;
    font: inherit;
    transition: border-color 0.2s ease, outline 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(239, 43, 126, 0.28);
    border-color: rgba(239, 43, 126, 0.42);
}

.contact-list li span {
    color: var(--muted);
    line-height: 1.6;
}

/* === 17. FOOTER ================================================== */
.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 2rem;
    padding: 2.6rem 0 4rem;
    color: var(--muted);
    border-top: 1px solid var(--line-soft);
}

.site-footer strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.site-footer p {
    margin: 0;
    max-width: 40ch;
    line-height: 1.7;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: flex-start;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* === 18. ARTÍCULO ================================================ */
.article-page {
    width: min(940px, 100% - (var(--gutter) * 2));
    margin: 3rem auto 4rem;
}

.article-hero {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.article-body {
    padding: clamp(1.5rem, 3vw, 2rem);
    margin-top: 1rem;
}

.article-hero .eyebrow {
    margin-bottom: 1rem;
}

.article-hero h1 {
    max-width: 20ch;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.article-hero p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.2rem;
}

.article-body p {
    color: var(--muted);
    line-height: 1.78;
    margin: 0 0 1rem;
}

/* === 19. WHATSAPP FLOTANTE ======================================= */
.floating-whatsapp {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 30;
    /* Siempre es un botón compacto — nunca full-width */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.88rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1b7f54, #34c36b);
    color: var(--white);
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 20px 36px rgba(10, 63, 36, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.floating-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(10, 63, 36, 0.5);
}

/* === 20. FLASH MESSAGES ========================================= */
.flash {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.flash-success {
    background: rgba(27, 127, 84, 0.2);
    border: 1px solid rgba(74, 196, 136, 0.25);
    color: #a8ffd4;
}

.flash-error {
    background: rgba(160, 30, 70, 0.25);
    border: 1px solid rgba(239, 43, 126, 0.35);
    color: #ffb8d1;
}

/* === 21. ANIMACIONES DE ENTRADA ================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 22. RESPONSIVE ============================================== */

/* --- 1280px: ajustes menores ------------------------------------ */
@media (max-width: 1280px) {
    .service-grid,
    .process-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .specialties-list {
        grid-template-columns: 1fr;
    }
}

/* --- 1100px: hero apilado --------------------------------------- */
@media (max-width: 1100px) {
    .hero-slide-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 22rem;
    }

    .hero-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-stage {
        min-height: 50rem;
    }

    .executive-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- 900px: tablet --------------------------------------------- */
@media (max-width: 900px) {
    .about-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* about-columns mantiene 2 cols hasta 600px */
    .about-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .utility-inner {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        padding: 0.5rem 0;
        font-size: 0.74rem;
    }

    /* Nav móvil — desplegable */
    .site-nav {
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        padding: 0.8rem;
        z-index: 50;
        /* Alineado al container */
        width: min(var(--container), 100% - (var(--gutter) * 2));
        margin-inline: auto;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.95rem 1rem;
        border-radius: 18px;
        font-size: 0.95rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-stage {
        min-height: 54rem;
    }

    .hero-slider-footer {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .hero-slider-status {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: auto;
    }

    .hero-slider-status strong {
        margin-top: 0;
    }

    .hero-slider-controls {
        justify-content: space-between;
    }

    .hero-brief {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .specialties-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- 640px: ocultar utility-bar --------------------------------- */
@media (max-width: 640px) {
    .utility-bar {
        display: none;
    }
}

/* --- 600px: móvil ----------------------------------------------- */
@media (max-width: 600px) {
    :root {
        --radius-xl: 24px;
        --radius-lg: 20px;
        --radius-md: 14px;
    }

    h2 {
        max-width: none;
    }

    /* Tarjetas con menos padding */
    .hero-copy,
    .hero-panel,
    .info-card,
    .values-panel,
    .team-panel,
    .service-card,
    .specialties-panel,
    .contact-panel,
    .form-panel,
    .article-hero,
    .article-body,
    .executive-card {
        padding: 1.1rem;
    }

    /* Hero: ocultar panel derecho y brief en móvil (deja lo esencial) */
    .hero-panel {
        display: none;
    }

    .hero-brief {
        display: none;
    }

    .hero-stage {
        min-height: 22rem;
    }

    .hero-actions {
        gap: 0.6rem;
        margin: 1.2rem 0 1rem;
    }

    .hero-actions .primary-button,
    .hero-actions .ghost-button {
        padding: 0.82rem 1.1rem;
        font-size: 0.86rem;
    }

    /* Hero brief: 2 cols en móvil (no 1) */
    .hero-brief {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        margin-top: 1rem;
    }

    /* 2 columnas en móvil para todos los grids */
    .service-grid,
    .process-band,
    .executive-strip,
    .blog-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* process-band es redundante en móvil (repite títulos de servicios) */
    .process-band {
        display: none;
    }

    /* Service cards compactas en 2 col */
    .service-card {
        padding: 1rem;
    }

    .service-icon {
        width: 2.4rem;
        height: 2.4rem;
        margin-bottom: 0.7rem;
        border-radius: 14px;
    }

    .service-icon svg {
        width: 1rem;
        height: 1rem;
    }

    .service-card h3 {
        font-size: 0.88rem;
        margin-bottom: 0.45rem;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* Proyectos: media compacta */
    .project-media {
        min-height: 8rem;
    }

    .project-body {
        padding: 1rem;
    }

    .project-body h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .project-body p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* about-columns: 1 col en móvil (ya no 2) */
    .about-columns {
        grid-template-columns: 1fr;
    }

    /* Especialidades en móvil: scroll container */
    .specialties-panel {
        overflow: hidden;
    }

    .specialties-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 480px;
        overflow-y: auto;
        /* Scroll suave con fade al fondo */
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.15) transparent;
    }

    .specialties-list::-webkit-scrollbar {
        width: 4px;
    }

    .specialties-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .specialties-list::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.15);
        border-radius: 999px;
    }

    .specialty-item {
        padding: 0.65rem 0.75rem;
    }

    .specialty-item summary {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .specialty-item p {
        font-size: 0.76rem;
        line-height: 1.45;
        margin-top: 0.45rem;
    }

    /* Section heading más compacto en móvil */
    .section-heading {
        margin-bottom: 1rem;
    }

    h2 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
        line-height: 1.05;
    }

    .section-heading p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-top: 0.6rem;
    }

    /* Blog cards compactas */
    .blog-card {
        padding: 1rem;
        gap: 0.6rem;
    }

    .blog-card h3 {
        font-size: 0.9rem;
    }

    .blog-card p {
        font-size: 0.82rem;
        line-height: 1.5;
        /* Limitar a 3 líneas */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-card a {
        font-size: 0.82rem;
    }

    .hero-slider-controls {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .hero-slider-arrow {
        width: 2.8rem;
        height: 2.8rem;
    }

    .map-frame iframe {
        min-height: 14rem;
    }

    .contact-panel,
    .form-panel {
        min-height: auto;
    }

    /* Process step más compacto */
    .process-step {
        padding: 1rem;
    }

    /* Executive card más compacto */
    .executive-card p {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    /* Hero stat grid: 2 cols cuando el panel está visible (tablet apilado) */
    .hero-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- 440px: ajustes finos --------------------------------------- */
@media (max-width: 440px) {
    .brand span {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hero-tags span {
        font-size: 0.78rem;
        padding: 0.58rem 0.75rem;
    }

    .hero-brief-card {
        padding: 0.7rem 0.8rem;
    }

    .floating-whatsapp span {
        display: none;
    }

    .floating-whatsapp {
        padding: 0.9rem;
        border-radius: 50%;
        width: 3.2rem;
        height: 3.2rem;
        justify-content: center;
    }

    .floating-whatsapp::before {
        content: "W";
        font-weight: 800;
        font-size: 1rem;
    }

    .client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- 360px: pantallas muy pequeñas ------------------------------ */
@media (max-width: 360px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a {
        text-align: center;
        justify-content: center;
    }
}

/* === 23. ACCESIBILIDAD =========================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* Foco visible para navegación por teclado */
:focus-visible {
    outline: 2px solid var(--fuchsia);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--fuchsia);
    outline-offset: 3px;
    border-radius: 6px;
}
