/* ==========================================================================
   RDíaz · Eco-Tech Design System
   Identidad visual: vibrant eco-tech (teal oscuro + acento lime)
   Tipografías: Space Grotesk (display) + JetBrains Mono (mono/etiqueta)
   Prefijo: .et-* para evitar colisiones con Bootstrap u otras hojas
   ========================================================================== */

:root {
    /* Color · Backgrounds (Stitch Multi-layer Neutral Surfaces) */
    --et-bg-deep: #1c2321;
    --et-bg-elev: #242e2b;
    --et-bg-soft: #2e3a36;
    --et-bg-canvas: #f8faf9;

    /* Color · Foregrounds */
    --et-fg-primary: #f5f7f6;
    --et-fg-muted: #8fa09a;
    --et-fg-subtle: rgba(245, 247, 246, 0.45);
    --et-fg-on-light: #0d1614;

    /* Color · Accents (verde institucional RDíaz + Stitch Glows) */
    --et-accent: #77bd06;
    --et-accent-hover: #639f04;
    --et-accent-soft: rgba(119, 189, 6, 0.12);
    --et-accent-border: rgba(119, 189, 6, 0.28);
    --et-fg-on-accent-hover: #ffffff;

    /* Color · Estado */
    --et-danger: #f43f5e;
    --et-warning: #f59e0b;
    --et-success: #10b981;
    --et-info: #38bdf8;

    /* Tipografía */
    --et-font-display: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --et-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Tamaños · escala modular */
    --et-text-xs: 0.75rem;
    --et-text-sm: 0.875rem;
    --et-text-base: 1rem;
    --et-text-lg: 1.125rem;
    --et-text-xl: 1.25rem;
    --et-text-2xl: 1.5rem;
    --et-text-3xl: 2rem;
    --et-text-4xl: 2.75rem;
    --et-text-5xl: 4rem;
    --et-text-6xl: 5.5rem;

    /* Espaciado · base 4px */
    --et-space-1: 0.25rem;
    --et-space-2: 0.5rem;
    --et-space-3: 0.75rem;
    --et-space-4: 1rem;
    --et-space-5: 1.5rem;
    --et-space-6: 2rem;
    --et-space-8: 3rem;
    --et-space-10: 4rem;
    --et-space-12: 6rem;
    --et-space-16: 8rem;

    /* Radii (Stitch organic curvature) */
    --et-radius-sm: 8px;
    --et-radius-md: 14px;
    --et-radius-lg: 20px;
    --et-radius-xl: 28px;
    --et-radius-pill: 9999px;

    /* Sombras & Ambient Glows (Stitch Signature) */
    --et-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --et-shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.04), 0 8px 24px -4px rgba(0, 0, 0, 0.07);
    --et-shadow-lg: 0 4px 6px -2px rgba(0, 0, 0, 0.03), 0 16px 36px -6px rgba(0, 0, 0, 0.10);
    --et-shadow-glow: 0 0 24px -4px rgba(119, 189, 6, 0.30);
    --et-glow-ambient: 0 0 50px -10px rgba(119, 189, 6, 0.15);

    /* Transiciones */
    --et-transition-fast: 120ms cubic-bezier(0.16, 1, 0.3, 1);
    --et-transition-base: 200ms cubic-bezier(0.16, 1, 0.3, 1);
    --et-transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --et-container-max: 1280px;
    --et-container-padding: clamp(1rem, 4vw, 3rem);
    --et-nav-height: 70px;
}

/* ==========================================================================
   Reset puntual (aplicado solo dentro de .et-scope para no afectar admin)
   ========================================================================== */

.et-scope {
    box-sizing: border-box;
    background: var(--et-bg-deep);
    color: var(--et-fg-primary);
    font-family: var(--et-font-display);
    font-size: var(--et-text-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.et-scope a {
    color: inherit;
    text-decoration: none;
    transition: color var(--et-transition-base);
}

.et-scope a:not(.et-btn):hover {
    color: var(--et-accent);
}

.et-scope img {
    max-width: 100%;
    height: auto;
    display: block;
}

.et-scope h1, .et-scope h2, .et-scope h3, .et-scope h4, .et-scope h5, .et-scope h6 {
    font-family: var(--et-font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.et-scope p {
    margin: 0;
}

/* ==========================================================================
   Containers / Grid
   ========================================================================== */

.et-container {
    width: 100%;
    max-width: var(--et-container-max);
    margin: 0 auto;
    padding-left: var(--et-container-padding);
    padding-right: var(--et-container-padding);
}

.et-grid {
    display: grid;
    gap: var(--et-space-5);
}

.et-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.et-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.et-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.et-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .et-grid--2,
    .et-grid--3,
    .et-grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .et-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .et-grid--5 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Section
   ========================================================================== */

.et-section {
    padding: var(--et-space-12) 0;
    position: relative;
}

.et-section--hero {
    padding: var(--et-space-16) 0 var(--et-space-12);
    overflow: hidden;
}

.et-section--alt {
    background: var(--et-bg-elev);
}

.et-section--canvas {
    background: var(--et-bg-canvas);
    color: var(--et-fg-on-light);
}

.et-eyebrow {
    display: inline-block;
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--et-fg-muted);
    margin-bottom: var(--et-space-4);
}

.et-title {
    font-size: clamp(var(--et-text-3xl), 5vw, var(--et-text-5xl));
    font-weight: 700;
    margin-bottom: var(--et-space-5);
}

.et-title--hero {
    font-size: clamp(var(--et-text-4xl), 7vw, var(--et-text-6xl));
}

.et-title .et-accent {
    color: var(--et-accent);
}

.et-lede {
    font-size: var(--et-text-lg);
    color: var(--et-fg-muted);
    max-width: 60ch;
    margin-bottom: var(--et-space-6);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.et-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--et-space-2);
    padding: var(--et-space-3) var(--et-space-5);
    font-family: var(--et-font-display);
    font-size: var(--et-text-base);
    font-weight: 600;
    line-height: 1;
    border: 1.5px solid transparent;
    border-radius: var(--et-radius-pill);
    cursor: pointer;
    transition: background var(--et-transition-base),
                border-color var(--et-transition-base),
                color var(--et-transition-base),
                transform var(--et-transition-fast),
                box-shadow var(--et-transition-base);
    text-decoration: none;
    user-select: none;
    background: transparent;
    color: var(--et-fg-primary);
}

.et-btn:hover { transform: translateY(-1px); }
.et-btn:active { transform: translateY(0); }
.et-btn:focus-visible { outline: none; box-shadow: var(--et-shadow-glow); }
.et-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.et-btn--primary {
    background: linear-gradient(135deg, #77bd06 0%, #5ea004 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 12px -2px rgba(119, 189, 6, 0.40);
}

.et-btn--primary:hover,
.et-btn--primary:active,
a.et-btn--primary:hover,
a.et-btn--primary:active {
    background: linear-gradient(135deg, #85d607 0%, #538e03 100%);
    box-shadow: 0 6px 20px -2px rgba(119, 189, 6, 0.55);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.et-btn--ghost {
    background: transparent;
    color: var(--et-fg-primary);
    border-color: rgba(247, 248, 244, 0.25);
}

.et-btn--ghost:hover,
.et-btn--ghost:active,
a.et-btn--ghost:hover,
a.et-btn--ghost:active {
    background: var(--et-accent-hover);
    border-color: var(--et-accent-hover);
    color: #ffffff !important;
}

.et-btn--solid {
    background: var(--et-bg-elev);
    color: var(--et-fg-primary);
    border-color: var(--et-bg-elev);
}

.et-btn--solid:hover {
    background: var(--et-bg-soft);
    border-color: var(--et-bg-soft);
}

.et-btn--lg {
    padding: var(--et-space-4) var(--et-space-6);
    font-size: var(--et-text-lg);
}

.et-btn--block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.et-card {
    background: rgba(17, 24, 22, 0.70);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--et-fg-primary);
    border-radius: 18px;
    padding: var(--et-space-6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.et-card--soft {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.et-card--soft:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(119, 189, 6, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.4), 0 0 20px -4px rgba(119, 189, 6, 0.15);
}

.et-card--accent {
    border: 1px solid rgba(119, 189, 6, 0.35);
    box-shadow: 0 0 40px -8px rgba(119, 189, 6, 0.22), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.et-card__header {
    margin-bottom: var(--et-space-5);
}

.et-card__title {
    font-size: var(--et-text-2xl);
    font-weight: 700;
    margin-bottom: var(--et-space-2);
}

.et-card__subtitle {
    font-family: var(--et-font-mono);
    font-size: var(--et-text-sm);
    color: var(--et-fg-muted);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.et-field {
    display: flex;
    flex-direction: column;
    gap: var(--et-space-2);
    margin-bottom: var(--et-space-5);
}

.et-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fa09a;
    font-weight: 600;
}

.et-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--et-font-display);
    font-size: var(--et-text-base);
    color: #f5f7f6;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
}

.et-input::placeholder {
    color: rgba(245, 247, 246, 0.35);
}

.et-input:hover {
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.06);
}

.et-input:focus {
    outline: none;
    border-color: var(--et-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(119, 189, 6, 0.22);
}

.et-input--with-icon {
    padding-left: 44px;
}

.et-input-group {
    position: relative;
}

.et-input-group__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa09a;
    font-size: var(--et-text-base);
    pointer-events: none;
}

.et-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--et-space-2);
    font-size: var(--et-text-sm);
    color: var(--et-fg-muted);
    cursor: pointer;
    user-select: none;
}

.et-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--et-accent);
    cursor: pointer;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.et-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--et-space-3);
    padding: var(--et-space-3) var(--et-space-4);
    border-radius: var(--et-radius-sm);
    font-size: var(--et-text-sm);
    margin-bottom: var(--et-space-4);
    border: 1px solid transparent;
}

.et-alert--error {
    background: rgba(255, 107, 107, 0.10);
    border-color: rgba(255, 107, 107, 0.30);
    color: var(--et-danger);
}

.et-alert--success {
    background: rgba(74, 222, 128, 0.10);
    border-color: rgba(74, 222, 128, 0.30);
    color: var(--et-success);
}

.et-alert--warning {
    background: rgba(250, 204, 21, 0.10);
    border-color: rgba(250, 204, 21, 0.30);
    color: var(--et-warning);
}

.et-alert--info {
    background: rgba(125, 211, 252, 0.10);
    border-color: rgba(125, 211, 252, 0.30);
    color: var(--et-info);
}

/* ==========================================================================
   Chips / Badges
   ========================================================================== */

.et-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--et-space-2);
    padding: var(--et-space-1) var(--et-space-3);
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    border-radius: var(--et-radius-pill);
    background: rgba(247, 248, 244, 0.06);
    color: var(--et-fg-muted);
    border: 1px solid rgba(247, 248, 244, 0.10);
}

.et-chip--accent {
    background: var(--et-accent);
    color: var(--et-fg-on-light);
    border-color: var(--et-accent);
    font-weight: 600;
}

.et-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ==========================================================================
   Public Nav (header de páginas públicas)
   ========================================================================== */

.et-public-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(28, 35, 33, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--et-nav-height);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.et-public-nav.is-scrolled {
    background: rgba(28, 35, 33, 0.96);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.et-public-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: var(--et-container-max);
    margin: 0 auto;
    padding-left: var(--et-container-padding);
    padding-right: var(--et-container-padding);
}

.et-public-nav__identity {
    display: flex;
    align-items: center;
    gap: var(--et-space-3);
}

.et-version-menu {
    position: relative;
    flex-shrink: 0;
}

.et-version-menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    background: var(--et-accent-soft);
    color: var(--et-accent);
    border: 1px solid var(--et-accent-border);
    border-radius: var(--et-radius-pill);
}

.et-version-menu summary::-webkit-details-marker {
    display: none;
}

.et-version-menu__options {
    position: absolute;
    top: calc(100% + var(--et-space-2));
    left: 0;
    min-width: 140px;
    margin: 0;
    padding: var(--et-space-1);
    list-style: none;
    background: var(--et-bg-elev);
    border: 1px solid var(--et-accent-border);
    border-radius: var(--et-radius-sm);
    box-shadow: var(--et-shadow-sm);
}

.et-version-menu__options a {
    display: flex;
    justify-content: space-between;
    gap: var(--et-space-3);
    padding: var(--et-space-2) var(--et-space-3);
    color: var(--et-fg-primary);
    border-radius: var(--et-radius-sm);
    font-size: var(--et-text-sm);
}

.et-version-menu__options a:hover,
.et-version-menu__options a:focus-visible {
    background: var(--et-accent-soft);
    color: var(--et-accent);
}

.et-version-menu__options span {
    color: var(--et-fg-muted);
    font-size: var(--et-text-xs);
}

.et-version-menu summary:focus-visible {
    outline: 2px solid var(--et-accent);
    outline-offset: 3px;
}

.et-public-nav__brand {
    display: flex;
    align-items: center;
    gap: var(--et-space-3);
    font-family: var(--et-font-display);
    font-weight: 700;
    font-size: var(--et-text-xl);
    color: #f5f7f6;
    letter-spacing: -0.01em;
}

.et-public-nav__brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #242e2b;
    border: 1px solid rgba(119, 189, 6, 0.25);
    display: grid;
    place-items: center;
    color: #f5f7f6;
    font-weight: 800;
    position: relative;
    box-shadow: 0 0 14px -2px rgba(119, 189, 6, 0.25);
}

.et-public-nav__brand-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--et-accent);
    box-shadow: 0 0 6px var(--et-accent);
    border: 2px solid #1c2321;
}

.et-public-nav__brand-name {
    color: #f5f7f6;
}

.et-public-nav__brand-name strong {
    color: var(--et-accent);
    font-weight: 700;
}

.et-public-nav__links {
    display: flex;
    align-items: center;
    gap: var(--et-space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.et-public-nav__link {
    font-family: var(--et-font-display);
    font-size: 0.90rem;
    font-weight: 500;
    color: #8fa09a;
    transition: all var(--et-transition-fast);
}

.et-public-nav__link:hover {
    color: #ffffff;
}

.et-public-nav__cta {
    margin-left: var(--et-space-4);
}

@media (max-width: 720px) {
    .et-public-nav__links { display: none; }
}

/* ==========================================================================
   Public Footer
   ========================================================================== */

.et-public-footer {
    background: var(--et-bg-elev);
    color: var(--et-fg-muted);
    padding: var(--et-space-10) 0 var(--et-space-6);
    font-size: var(--et-text-sm);
    border-top: 1px solid rgba(247, 248, 244, 0.06);
}

.et-public-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--et-space-8);
    margin-bottom: var(--et-space-8);
}

.et-public-footer__col h4 {
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--et-fg-primary);
    margin-bottom: var(--et-space-3);
}

.et-public-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--et-space-2);
}

.et-public-footer__bottom {
    border-top: 1px solid rgba(247, 248, 244, 0.06);
    padding-top: var(--et-space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--et-fg-subtle);
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    letter-spacing: 0.06em;
}

@media (max-width: 800px) {
    .et-public-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .et-public-footer__grid {
        grid-template-columns: 1fr;
    }
    .et-public-footer__bottom {
        flex-direction: column;
        gap: var(--et-space-3);
        text-align: center;
    }
}

/* ==========================================================================
   Hero · variantes A / B / C
   ========================================================================== */

.et-hero {
    position: relative;
    padding: var(--et-space-12) 0 var(--et-space-16);
}

.et-hero__bg-rings {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 720px;
    height: 720px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

.et-hero__bg-rings circle {
    fill: none;
    stroke: var(--et-accent);
    stroke-width: 1.5;
}

.et-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--et-space-10);
    align-items: center;
}

.et-hero__content {
    max-width: 640px;
}

.et-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--et-space-2);
    padding: var(--et-space-2) var(--et-space-4);
    border: 1px solid var(--et-accent);
    border-radius: var(--et-radius-pill);
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    /* Lime sobre fondo deep tiene buen contraste; usamos fg-primary para legibilidad */
    color: var(--et-fg-primary);
    background: rgba(119, 189, 6, 0.10);
    margin-bottom: var(--et-space-5);
}

.et-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--et-space-3);
    margin-top: var(--et-space-6);
}

.et-hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--et-bg-elev);
    border-radius: var(--et-radius-xl);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.et-hero__visual-mark {
    font-family: var(--et-font-display);
    font-weight: 800;
    font-size: clamp(8rem, 18vw, 14rem);
    line-height: 1;
    color: var(--et-fg-primary);
    position: relative;
}

.et-hero__visual-mark::after {
    content: '';
    position: absolute;
    bottom: 12%;
    right: -4%;
    width: 18%;
    height: 18%;
    border-radius: 50%;
    background: var(--et-accent);
}

.et-hero__visual-tag {
    position: absolute;
    bottom: var(--et-space-5);
    left: var(--et-space-5);
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--et-fg-muted);
}

.et-hero__metrics {
    margin-top: var(--et-space-8);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--et-space-5);
    padding-top: var(--et-space-6);
    border-top: 1px solid rgba(247, 248, 244, 0.08);
}

.et-hero__metric-value {
    font-family: var(--et-font-display);
    font-size: var(--et-text-3xl);
    font-weight: 700;
    color: var(--et-fg-primary);
    line-height: 1;
}

.et-hero__metric-label {
    margin-top: var(--et-space-2);
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--et-fg-muted);
}

@media (max-width: 900px) {
    .et-hero__inner { grid-template-columns: 1fr; }
    .et-hero__visual { max-width: 480px; margin-inline: auto; }
}

/* Variante B (Poster): visual full-bleed con título encima */
.et-hero--poster .et-hero__inner { grid-template-columns: 1fr; }
.et-hero--poster .et-hero__visual {
    aspect-ratio: 16 / 7;
    border-radius: var(--et-radius-xl);
}

/* Variante C (Producto): visual a la izquierda, contenido a la derecha */
.et-hero--product .et-hero__inner {
    grid-template-columns: 1fr 1.1fr;
}
.et-hero--product .et-hero__visual { order: -1; }
@media (max-width: 900px) {
    .et-hero--product .et-hero__inner { grid-template-columns: 1fr; }
    .et-hero--product .et-hero__visual { order: 0; }
}

/* ==========================================================================
   Hero variante D · Animada (SVG residuos + reciclaje)
   ========================================================================== */

.et-hero__bg-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.et-hero--animated .et-hero__visual--animated {
    background: radial-gradient(ellipse at center, rgba(119,189,6,0.06) 0%, transparent 70%),
                var(--et-bg-elev);
    overflow: visible;
}

.et-hero--animated .et-hero__visual--animated svg {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .et-hero--animated .et-hero__inner {
        grid-template-columns: 1fr;
    }
    .et-hero--animated .et-hero__visual {
        max-width: 480px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   Feature cards (sección "Qué hacemos")
   ========================================================================== */

.et-feature {
    display: flex;
    flex-direction: column;
    gap: var(--et-space-3);
    padding: var(--et-space-6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: var(--et-space-6);
    backdrop-filter: blur(12px);
    transition: all var(--et-transition-base);
}

.et-feature:hover {
    border-color: rgba(119, 189, 6, 0.35);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.45), 0 0 24px -4px rgba(119, 189, 6, 0.18);
}

.et-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(119, 189, 6, 0.14);
    color: #8ee008;
    border: 1px solid rgba(119, 189, 6, 0.28);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin-bottom: var(--et-space-3);
    box-shadow: 0 0 16px -2px rgba(119, 189, 6, 0.20);
}

.et-feature__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f5f7f6;
    letter-spacing: -0.01em;
}

.et-feature__body {
    font-size: 0.94rem;
    color: #8fa09a;
    line-height: 1.6;
}

.et-feature__num {
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    color: rgba(245, 247, 246, 0.40);
    letter-spacing: 0.14em;
}

/* ==========================================================================
   Flow (sección Trazabilidad: entrada → proceso → salida)
   ========================================================================== */

.et-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: var(--et-space-5);
    margin-top: var(--et-space-8);
}

.et-flow__node {
    padding: var(--et-space-5);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all var(--et-transition-base);
}

.et-flow__node:hover {
    border-color: rgba(119, 189, 6, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
}

.et-flow__node-tag {
    font-family: var(--et-font-mono);
    font-size: var(--et-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8fa09a;
    margin-bottom: var(--et-space-2);
}

.et-flow__node-title {
    font-size: var(--et-text-lg);
    font-weight: 700;
    color: #f5f7f6;
}

.et-flow__arrow {
    color: var(--et-accent);
    font-size: 1.75rem;
    text-shadow: 0 0 12px rgba(119, 189, 6, 0.50);
}

@media (max-width: 800px) {
    .et-flow {
        grid-template-columns: 1fr;
    }
    .et-flow__arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}

/* ==========================================================================
   Login split (página /sesion)
   ========================================================================== */

.et-login {
    min-height: calc(100vh - var(--et-nav-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--et-space-10);
    padding: var(--et-space-10) 0;
}

.et-login__intro h1 {
    font-size: clamp(var(--et-text-3xl), 5vw, var(--et-text-5xl));
    margin-bottom: var(--et-space-4);
    letter-spacing: -0.02em;
}

.et-contact-details {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--et-space-3);
  color: var(--et-fg-muted);
}

.et-contact-details li {
  display: flex;
  align-items: center;
  gap: var(--et-space-3);
  min-width: 0;
}

.et-contact-details li > i {
  flex: 0 0 1.25rem;
  color: var(--et-accent);
  text-align: center;
}

.et-contact-details li > a,
.et-contact-details li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.et-scope .et-contact-details a {
  color: inherit;
}

.et-contact-details__phone {
  display: inline-block;
  margin-right: var(--et-space-3);
}

.et-contact-details a:focus-visible {
  outline: 2px solid var(--et-accent);
  outline-offset: 3px;
}

.et-login__features {
    margin-top: var(--et-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--et-space-3);
}

.et-login__feature {
    display: flex;
    align-items: center;
    gap: var(--et-space-3);
    color: #8fa09a;
    font-size: 0.92rem;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all var(--et-transition-base);
}

.et-login__feature:hover {
    border-color: rgba(119, 189, 6, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f7f6;
    transform: translateX(3px);
}

.et-login__feature i {
    color: var(--et-accent);
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

.et-login__form-card {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    position: relative;
}

@media (max-width: 900px) {
    .et-login {
        grid-template-columns: 1fr;
        gap: var(--et-space-6);
    }
    .et-login__form-card {
        margin-left: 0;
    }
}

/* ==========================================================================
   Helpers
   ========================================================================== */

.et-mono { font-family: var(--et-font-mono); }
.et-display { font-family: var(--et-font-display); }
.et-text-muted { color: var(--et-fg-muted); }
.et-text-accent { color: var(--et-accent); }
.et-text-center { text-align: center; }

.et-mt-2 { margin-top: var(--et-space-2); }
.et-mt-3 { margin-top: var(--et-space-3); }
.et-mt-5 { margin-top: var(--et-space-5); }
.et-mt-6 { margin-top: var(--et-space-6); }

.et-flex { display: flex; }
.et-flex-col { flex-direction: column; }
.et-items-center { align-items: center; }
.et-justify-between { justify-content: space-between; }
.et-gap-2 { gap: var(--et-space-2); }
.et-gap-3 { gap: var(--et-space-3); }
.et-gap-5 { gap: var(--et-space-5); }

/* ==========================================================================
   Bootstrap modales · Eco-Tech (estructura + alcance público .et-scope)
   ========================================================================== */

.modal-dialog {
    font-family: var(--et-font-display);
}

.modal-content {
    border-radius: var(--et-radius-lg);
    box-shadow: var(--et-shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(11, 36, 33, 0.12);
}

.modal-header .modal-title {
    font-family: var(--et-font-display);
    font-weight: 700;
    font-size: var(--et-text-lg);
    display: flex;
    align-items: center;
    gap: var(--et-space-2);
}

.modal-footer {
    gap: var(--et-space-2);
}

/* Sitio público: superficie elevada teal (coherente con cards internas) */
.et-scope .modal-content {
    background: var(--et-bg-elev);
    color: var(--et-fg-primary);
    border-color: rgba(247, 248, 244, 0.12);
}

.et-scope .modal-header {
    border-bottom-color: rgba(247, 248, 244, 0.12);
}

.et-scope .modal-body,
.et-scope .modal-footer {
    background: var(--et-bg-elev);
}

.et-scope .modal-footer {
    border-top-color: rgba(247, 248, 244, 0.12);
}

.et-scope .modal-backdrop.show {
    background: rgba(11, 36, 33, 0.65);
}

/* Headers semánticos showModal / Bootstrap en contexto público oscuro */
.et-scope .modal-header.bg-primary {
    background: linear-gradient(135deg, var(--et-accent) 0%, #5a9e05 100%) !important;
    border-bottom: none;
    color: #fff !important;
}

.et-scope .modal-header.bg-success {
    background: linear-gradient(135deg, var(--et-accent) 0%, var(--et-accent-hover) 100%) !important;
    border-bottom: none;
    color: #fff !important;
}

.et-scope .modal-header.bg-info {
    background: linear-gradient(135deg, var(--et-bg-soft) 0%, var(--et-bg-elev) 100%) !important;
    border-bottom: none;
    color: var(--et-fg-primary) !important;
}

.et-scope .modal-header.bg-danger {
    background: linear-gradient(135deg, #e85555 0%, var(--et-danger) 100%) !important;
    border-bottom: none;
    color: #fff !important;
}

.et-scope .modal-header.bg-warning {
    background: linear-gradient(135deg, #fde047 0%, var(--et-warning) 100%) !important;
    border-bottom: none;
    color: var(--et-fg-on-light) !important;
}

.et-scope .modal-header.bg-primary .btn-close,
.et-scope .modal-header.bg-success .btn-close,
.et-scope .modal-header.bg-danger .btn-close,
.et-scope .modal-header.bg-info .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.et-scope .modal-header.bg-warning .btn-close {
    filter: none;
    opacity: 0.65;
}

/* Logo image override — minilogo.png replaces text "R" */
img.et-public-nav__brand-logo {
    background: transparent;
    object-fit: contain;
}
img.et-public-nav__brand-logo::after {
    display: none;
}
