/**
 * Reset y Base CSS — Metodología Crecienta
 * Estudio Jurídico Zygos
 */

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

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

::selection {
    background: #00B4D8;
    color: #070B14;
}

body {
    font-family: var(--zygos-font-body);
    font-size: var(--zygos-body);
    font-weight: 400;
    line-height: 1.72;
    color: #FFFFFF;
    background-color: var(--zygos-dark-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--zygos-transition-fast);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--zygos-font-heading);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 { font-size: var(--zygos-h1); }
h2 { font-size: var(--zygos-h2); }
h3 { font-size: var(--zygos-h3); }
h4 { font-size: var(--zygos-h4); }

p {
    text-wrap: pretty;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.zygos-container {
    width: 100%;
    max-width: var(--zygos-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.2rem, 3.5vw, 2.5rem);
    padding-right: clamp(1.2rem, 3.5vw, 2.5rem);
}

/* ========================================================
   MODOS DE SECCIÓN: DARK & LIGHT INTERCALADOS
   ======================================================== */

/* SECCIONES DARK (Hero, Servicios, Casos Penales, Contacto, Footer) */
.zygos-section-dark {
    background-color: var(--zygos-dark-bg);
    color: var(--zygos-dark-text-body);
    position: relative;
}

.zygos-section-dark h1,
.zygos-section-dark h2,
.zygos-section-dark h3,
.zygos-section-dark h4,
.zygos-section-dark h5,
.zygos-section-dark h6 {
    color: #FFFFFF !important;
}

.zygos-section-dark p,
.zygos-section-dark li,
.zygos-section-dark span:not(.zygos-section-badge):not([class*="zygos-tab"]):not([class*="zygos-service"]):not([class*="zygos-pilar"]):not([class*="zygos-channel"]):not([class*="zygos-stat"]):not([class*="zygos-tab-num"]):not([class*="zygos-btn"]):not(.zygos-btn *) {
    color: var(--zygos-dark-text-body);
}

.zygos-section-dark .zygos-section-badge {
    color: var(--zygos-primary-vibrant);
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.zygos-section-dark .zygos-section-badge.gold {
    color: var(--zygos-gold-vibrant);
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

/* SECCIONES LIGHT (Nosotros, Por Qué Elegirnos, Sistema Judicial) */
.zygos-section-light {
    background-color: var(--zygos-light-bg);
    color: var(--zygos-light-text-body);
    position: relative;
}

.zygos-section-light h1,
.zygos-section-light h2,
.zygos-section-light h3,
.zygos-section-light h4,
.zygos-section-light h5,
.zygos-section-light h6 {
    color: var(--zygos-light-text-title) !important;
}

.zygos-section-light p {
    color: var(--zygos-light-text-body);
}

.zygos-section-light .zygos-section-badge {
    color: var(--zygos-primary);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.22);
}

.zygos-section-light .zygos-section-badge.gold {
    color: #926C05;
    background: rgba(212, 175, 55, 0.10);
    border-color: rgba(212, 175, 55, 0.30);
}

/* Badges de Sección */
.zygos-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--zygos-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.45rem 1.15rem;
    border-radius: var(--zygos-radius-full);
    margin-bottom: 1.25rem;
}

.zygos-section-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

/* Animaciones Reveal */
.zygos-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.zygos-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
