/* ========================================
   VARIABLES (PALETA)
======================================== */

:root {
    --crema: #F4E6CD;
    --marron-oscuro: #211915;
    --beige-tarjeta: #DECEB8;
    --marron: #7A6357;
    --borde: #B9A794;
    --salvia: #5E7372;
    --celeste: #9DB6B5;   /* color secundario del manual de marca */

    /* Visibilidad de la foto de fondo del Hero (0 = invisible, 1 = foto entera) */
    --fondo-opacidad: 0.3;
}


/* ========================================
   CONFIGURACIÓN GENERAL
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #F4E6CD;
    color: #211915;
    font-family: "Manrope", sans-serif;
}


/* ========================================
   TIPOGRAFÍAS
======================================== */

h1,
h2,
h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
}

p {
    margin: 0;
}

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

/* ========================================
   CONTENEDOR GENERAL
======================================== */

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


/* ========================================
   HEADER
======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(244, 230, 205, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(33, 25, 21, 0.1);
}

.header-container {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 34px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
}

.logo-text small {
    margin-top: 2px;
    font-size: 8px;
    letter-spacing: 0.14em;
    color: var(--marron);
}


/* Navegación */

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav a {
    transition: color 0.25s ease;
}

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

.nav-whatsapp {
    padding-left: 30px;
    border-left: 1px solid var(--borde);
    color: var(--salvia);
    font-weight: 700;
}

/* Botón del menú: dos líneas finas que se cruzan al abrir.
   En computadora está oculto; aparece en tablet y celular. */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background-color: var(--marron-oscuro);
    transition: transform 0.35s var(--suave);
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}


/* ========================================
   BOTONES (se reutilizan en toda la página)
======================================== */

.button {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 17px 22px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.button-dark {
    background-color: var(--marron-oscuro);
    color: var(--crema);
}

.button-dark:hover {
    background-color: var(--marron);
}

.text-button {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--marron);
    transition: color 0.25s ease;
}

.text-button:hover {
    color: var(--salvia);
}

.text-button span {
    margin-left: 10px;
}


/* ========================================
   HERO
======================================== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--crema);
    min-height: 100vh;
    padding: 150px 0 90px;
    display: flex;
    align-items: center;
}

/* Foto de tribunales de fondo: en blanco y negro con un tono cálido,
   muy transparente, y que se desvanece hacia abajo para fundirse
   con la sección siguiente */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("img/tribunales-fondo.jpg") center center / cover no-repeat;
    filter: grayscale(0.4) sepia(0.2);
    opacity: var(--fondo-opacidad);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* Velo crema sobre el lado izquierdo del fondo: calma la foto detrás
   del texto para que se lea claro, y se desvanece hacia la derecha
   para que el edificio y Antonella se sigan viendo */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to right,
        rgba(244, 230, 205, 0.8) 0%,
        rgba(244, 230, 205, 0.65) 35%,
        rgba(244, 230, 205, 0) 58%
    );
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 8%;
    align-items: center;
}


/* Texto */

.hero-eyebrow {
    margin-bottom: 26px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--marron);
}

.hero h1 {
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.hero-title-wordmark {
    display: block;
    width: min(100%, 480px);
    height: auto;
    animation: subir-desde-mascara 1.1s var(--suave) 0.25s both;
}

.hero-profession {
    margin: 22px 0 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    color: var(--marron);
}

.hero-tagline {
    max-width: 420px;
    margin-bottom: 22px;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.35;
    color: var(--salvia);
}

.hero-specialty {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--marron);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
}


/* Foto */

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    justify-self: end;
    padding: 16px 16px 0 0;
}

.hero-image-frame {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    aspect-ratio: 20 / 29;
    border: 1px solid var(--borde);
    z-index: 0;
}

/* La foto de Antonella está recortada (PNG sin fondo), así su silueta
   queda sólida sobre el fondo de tribunales.
   - left: la corre a la derecha para centrarla dentro del marco
     (el marco ocupa el 82% derecho del contenedor).
   - La máscara difumina solo el final, donde la foto corta las piernas. */
.hero-image {
    position: relative;
    left: calc(12% + 8px);
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, #000 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 93%, transparent 100%);
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.85);
}

/* Mismo corrimiento que la foto, y centrado debajo de ella */
.hero-registration {
    position: relative;
    left: calc(9% + 8px);
    text-align: center;
    margin-top: 18px;
    font-size: 9px;
    letter-spacing: 0.16em;
    line-height: 1.6;
    color: var(--marron);
}


/* ========================================
   ELEMENTOS COMUNES DE SECCIÓN
======================================== */

.section-eyebrow {
    margin-bottom: 24px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--marron);
}

.section-eyebrow-light {
    color: var(--beige-tarjeta);
}

.text-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--marron);
    transition: color 0.25s ease;
}

.text-link:hover {
    color: var(--salvia);
}

.text-link span {
    margin-left: 10px;
}


/* ========================================
   PERFIL
======================================== */

.about {
    padding: 112px 0 80px;
}

.about .section-eyebrow {
    margin-bottom: 16px;
}

/* Formación */

.study-details {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 34px;
    border-top: 1px solid var(--borde);
}

.study-detail {
    display: block;
    padding: 22px 0 0;
}

.study-detail h3,
.press-intro {
    margin: 0 0 6px;
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-style: normal;
    font-weight: 500;
    color: var(--marron-oscuro);
}

.study-detail h3 {
    margin: 0 0 8px;
}

.study-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.5;
}

.study-list li {
    display: inline;
}

.study-list li + li::before {
    padding: 0 0.65em;
    color: var(--salvia);
    content: "|";
}


/* En los medios */

.press {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--borde);
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.press-card {
    display: block;
}

.press-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--borde);
    background-color: var(--beige-tarjeta);
}

.press-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.75);
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Encuadre hacia la derecha: muestra a Antonella en la foto del jury */
.press-image img.press-img-derecha {
    object-position: 92% center;
}

.press-card:hover .press-image img {
    transform: scale(1.05);
    filter: saturate(1);
}

.press-source {
    display: block;
    margin: 10px 0 5px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--salvia);
}

.press-card h3 {
    font-size: 16px;
    line-height: 1.25;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.press-card:hover h3 {
    color: var(--marron);
}


/* ========================================
   DERECHO PENAL (sección oscura)
======================================== */

.practice {
    padding: 220px 0 130px;
    background-color: var(--marron-oscuro);
    color: var(--crema);
}

.practice-heading {
    display: grid;
    grid-template-columns: 1fr 0.65fr;
    gap: 100px;
    align-items: end;
    margin-bottom: 80px;
}

.practice-heading h2 {
    font-size: clamp(65px, 7vw, 104px);
    line-height: 0.93;
    letter-spacing: -0.035em;
}

.practice-heading-description p {
    max-width: 460px;
    margin-bottom: 16px;
    line-height: 1.8;
    color: rgba(244, 230, 205, 0.72);
}

.practice-heading-description p:last-child {
    margin-bottom: 0;
}


/* Tarjetas que se apilan al hacer scroll */

.practice-card {
    position: sticky;
    top: 110px;
    min-height: 250px;
    margin-bottom: 24px;
    padding: 36px 44px 40px;
    background-color: var(--beige-tarjeta);
    color: var(--marron-oscuro);
    border: 1px solid var(--borde);
    box-shadow: 0 -12px 30px rgba(33, 25, 21, 0.25);
}

/* Cada tarjeta se detiene un poco más abajo que la anterior,
   así se ve el borde superior de las que quedan detrás */
.practice-card:nth-child(2) { top: 124px; }
.practice-card:nth-child(3) { top: 138px; }
.practice-card:nth-child(4) { top: 152px; }
.practice-card:nth-child(5) { top: 166px; }
.practice-card:nth-child(6) { top: 180px; }

.practice-card h3 {
    max-width: 700px;
    margin-bottom: 12px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

.practice-card p {
    max-width: 640px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--marron);
}

/* Cierre de la sección: frase grande en cursiva + nota chica */
.practice-closing {
    max-width: 680px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(244, 230, 205, 0.18);
}

.practice-closing-quote {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.3;
}

/* "ad hoc" ya está en cursiva: lo dejamos recto para que se distinga */
.practice-closing-quote em {
    font-style: normal;
}

.practice-closing-note {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(244, 230, 205, 0.72);
}


/* ========================================
   OTRAS ÁREAS (vuelve al crema, más discreta)
======================================== */

.other-areas {
    padding: 120px 0;
}

.other-areas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.other-areas-heading h2 {
    font-size: clamp(44px, 5vw, 70px);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.other-areas-heading h2 em {
    color: var(--marron);
}

.other-areas-list {
    border-top: 1px solid var(--borde);
}

.other-area {
    padding: 24px 0;
    border-bottom: 1px solid var(--borde);
}

.other-area h3 {
    margin-bottom: 4px;
    font-size: 24px;
}

.other-area p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--marron);
}


/* ========================================
   CONTACTO (celeste de la marca)
======================================== */

.contact {
    padding: 125px 0;
    background-color: var(--celeste);
    color: var(--marron-oscuro);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

/* Sobre el celeste, la etiqueta "CONTACTO" va en el tono más oscuro
   para que se lea bien */
.contact .section-eyebrow {
    color: var(--marron-oscuro);
}

.contact-heading h2 {
    font-size: clamp(52px, 5.7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.contact-heading > p:last-child {
    max-width: 420px;
    margin-top: 30px;
    line-height: 1.8;
    color: rgba(33, 25, 21, 0.78);
}

.contact-details {
    border-top: 1px solid rgba(33, 25, 21, 0.25);
}

/* Cada dato es una fila: etiqueta a la izquierda, valor a la derecha */
.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(33, 25, 21, 0.25);
}

.contact-item span {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(33, 25, 21, 0.7);
}

.contact-item a,
.contact-item p {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.contact-item a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.25s ease;
}

/* Al pasar el mouse aparece un subrayado (sobre el celeste, cambiar
   el color del texto no se notaría lo suficiente) */
.contact-item a:hover {
    text-decoration-color: currentColor;
}


/* --- Email: dirección + botón "Enviar mail" --- */

.contact-email {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.email-toggle {
    padding: 9px 14px;
    background: none;
    border: 1px solid rgba(33, 25, 21, 0.5);
    color: var(--marron-oscuro);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.email-toggle:hover,
.email-toggle[aria-expanded="true"] {
    background-color: var(--marron-oscuro);
    color: var(--crema);
}


/* --- Panel que se desliza hacia abajo ---
   Truco: una grilla con una fila de alto "0fr" (cerrada) que pasa
   a "1fr" (abierta). El navegador anima ese cambio de alto. */

.email-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.55s var(--suave), opacity 0.4s ease;
}

.email-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.email-panel-inner {
    overflow: hidden;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 0 24px;
    border-bottom: 1px solid rgba(33, 25, 21, 0.25);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(33, 25, 21, 0.7);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(244, 230, 205, 0.45);
    border: 1px solid rgba(33, 25, 21, 0.3);
    color: var(--marron-oscuro);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.25s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--marron-oscuro);
}

/* Campo trampa anti-spam: fuera de la vista */
.form-honey {
    position: absolute;
    left: -9999px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-counter {
    font-size: 11px;
    color: rgba(33, 25, 21, 0.65);
    font-variant-numeric: tabular-nums;
}

.form-submit {
    padding: 13px 20px;
    background-color: var(--marron-oscuro);
    border: 0;
    color: var(--crema);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.form-submit:hover {
    background-color: var(--marron);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-status {
    font-size: 13px;
    line-height: 1.6;
    color: var(--marron-oscuro);
}

.form-status:empty {
    display: none;
}


/* ========================================
   FOOTER
======================================== */

.footer {
    padding: 45px 0 25px;
}

/* Fila de arriba: marca a la izquierda, "volver arriba" a la derecha.
   Abajo, ocupando todo el ancho: copyright y matrículas */
.footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.back-top {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--marron);
    transition: color 0.25s ease;
}

.back-top:hover {
    color: var(--salvia);
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 30px;
    padding-top: 18px;
    border-top: 1px solid var(--borde);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--marron);
}

/* ========================================
   ANIMACIONES
======================================== */

/* --- 1. Entrada del Hero --- */

/* Curva de movimiento: arranca rápido y frena suave al final */
:root {
    --suave: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes aparecer-subiendo {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

@keyframes subir-desde-mascara {
    from { transform: translateY(105%); }
    to   { transform: none; }
}

@keyframes telon-foto {
    from { clip-path: inset(100% 0 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

@keyframes acercar-foto {
    from { transform: scale(1.1); }
    to   { transform: scale(1); }
}

@keyframes dibujar-marco {
    from { clip-path: inset(0 0 100% 100%); }
    to   { clip-path: inset(0 0 0 0); }
}

@keyframes aparecer {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Cada línea del nombre es una "ventana" que esconde lo que está debajo */
.hero-line {
    display: block;
    overflow: hidden;
    padding: 0.12em 0 0.04em;
    margin: -0.12em 0 -0.04em;
}

.hero-line > span {
    display: block;
    animation: subir-desde-mascara 1.1s var(--suave) both;
}

.hero-line:nth-child(1) > span { animation-delay: 0.25s; }
.hero-line:nth-child(2) > span { animation-delay: 0.4s; }

.header          { animation: aparecer 0.9s ease both; }
.hero-eyebrow    { animation: aparecer-subiendo 0.8s var(--suave) 0.1s both; }
.hero-profession { animation: aparecer-subiendo 0.8s var(--suave) 0.7s both; }
.hero-tagline    { animation: aparecer-subiendo 0.8s var(--suave) 0.82s both; }
.hero-specialty  { animation: aparecer-subiendo 0.8s var(--suave) 0.94s both; }
.hero-actions    { animation: aparecer-subiendo 0.8s var(--suave) 1.06s both; }

.hero-image {
    overflow: hidden;
    animation: telon-foto 1.3s var(--suave) 0.2s both;
}

.hero-image img {
    animation: acercar-foto 1.8s var(--suave) 0.2s both;
}

.hero-image-frame {
    animation: dibujar-marco 1.1s var(--suave) 1.1s both;
}

.hero-registration {
    animation: aparecer 0.8s ease 1.4s both;
}

/* El fondo de tribunales aparece lentamente, detrás de todo */
@keyframes aparecer-fondo {
    from { opacity: 0; }
    to   { opacity: var(--fondo-opacidad); }
}

.hero::before {
    animation: aparecer-fondo 2.2s ease both;
}


/* --- 3. Aparición suave de las secciones al bajar --- */

/* script.js agrega la clase .reveal y, al llegar a la pantalla, .is-visible.
   Sin JavaScript, nada queda escondido. */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s ease, transform 0.9s var(--suave);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}


/* --- Accesibilidad: sin movimiento para quien lo pidió --- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ========================================
   RESPONSIVE (secciones terminadas)
======================================== */

/* Tablets y pantallas medianas */
@media (max-width: 900px) {

    /* --- Menú desplegable --- */

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 5% 32px;
        background-color: var(--crema);
        border-bottom: 1px solid rgba(33, 25, 21, 0.1);
        box-shadow: 0 18px 30px rgba(33, 25, 21, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition:
            opacity 0.3s ease,
            transform 0.45s var(--suave),
            visibility 0s linear 0.45s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }

    .nav a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(185, 167, 148, 0.45);
        font-family: "Cormorant Garamond", serif;
        font-size: 28px;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
    }

    /* "a.nav-whatsapp" para ganarle a la regla ".nav a" de arriba */
    .nav a.nav-whatsapp {
        align-self: flex-start;
        margin-top: 24px;
        padding: 15px 22px;
        border: 0;
        background-color: var(--marron-oscuro);
        color: var(--crema);
        font-family: "Manrope", sans-serif;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.14em;
    }

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

    /* Hero: el velo cubre de arriba hacia abajo (el texto va arriba) */
    .hero::after {
        background: linear-gradient(
            to bottom,
            rgba(244, 230, 205, 0.75) 0%,
            rgba(244, 230, 205, 0.6) 45%,
            rgba(244, 230, 205, 0) 70%
        );
    }

    .hero {
        min-height: auto;
        padding: 130px 0 70px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-image-wrapper {
        justify-self: center;
    }

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

    .practice {
        padding: 160px 0 100px;
    }

    .practice-heading {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 55px;
    }

    .other-areas {
        padding: 90px 0;
    }

    .other-areas-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact {
        padding: 90px 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Celulares */
@media (max-width: 600px) {

    .header-container {
        height: 72px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .hero {
        padding-top: 115px;
    }

    .practice {
        padding-top: 135px;
    }

    .study-details {
        grid-template-columns: 1fr;
    }

    .study-detail {
        padding: 18px 0 0;
    }

    /* Notas de prensa: carrusel horizontal que se desliza con el dedo */
    .press-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 64%;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .press-card {
        scroll-snap-align: start;
    }

    .practice-card {
        min-height: auto;
        padding: 26px 22px 30px;
        top: 90px;
    }

    .practice-card:nth-child(2) { top: 100px; }
    .practice-card:nth-child(3) { top: 110px; }
    .practice-card:nth-child(4) { top: 120px; }
    .practice-card:nth-child(5) { top: 130px; }
    .practice-card:nth-child(6) { top: 140px; }

    /* Email: dirección y botón debajo de la etiqueta, alineados a la izquierda */
    .contact-item-email {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-email {
        justify-content: flex-start;
    }

    .contact-email p {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        line-height: 1.6;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
