/* ==========================================================================
   Sitio de Marina Romano — estilos propios.
   Se carga DESPUÉS de ../css/style.css (el de Romano Abogados), que aporta la
   paleta, tipografías, navegación, secciones, tema claro/oscuro, etc.
   ========================================================================== */

/* ---------- Isologo (JPG con fondo negro sobre zonas siempre oscuras) ---------- */
.logo-img-marina { height: 44px; width: auto; }
@media (max-width: 860px) { .logo-img-marina { height: 34px; } }
.marina-hero-logo {
    display: block;
    width: min(620px, 92%);
    height: auto;
    margin: 0 auto 30px;
   
}
.marina-perfil-logo { width: 78%; height: auto; position: relative; z-index: 1; border-radius: 6px; opacity: 0.95; }
.marina-hero .hero-content { text-align: center; }
.marina-hero .hero-actions { justify-content: center; }
.nav-links a.nav-vinculo {
    border: 1px solid rgba(201,162,75,0.55);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--gold-light);
}
.nav-links a.nav-vinculo:hover { background: var(--gold-light); color: #1c1404; }
footer .footer-vinculo { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tarjetas de publicaciones ---------- */
.nota-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}
.theme-adaptive .nota-kicker { color: var(--accent-text); }
.nota-kicker-caso::before { content: '\2605\00a0'; }
.nota-card .news-cover img.nota-sin-imagen { object-fit: contain; background: #000; padding: 14%; }
.nota-card .news-body h3 { line-height: 1.3; }
.nota-card .news-body > p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Portada tipo diario: nota principal + columna lateral */
.portada-diario { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .portada-diario { grid-template-columns: 1fr; } }
.portada-lateral { display: flex; flex-direction: column; gap: 18px; }
.nota-destacada .news-cover { aspect-ratio: 16 / 10; height: auto; }
.nota-destacada .news-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.nota-destacada .news-body > p { -webkit-line-clamp: 4; font-size: 1rem; }
.nota-lista { display: grid; grid-template-columns: 128px 1fr; }
.nota-lista .news-cover { height: 100%; min-height: 108px; aspect-ratio: auto; }
.nota-lista .news-body { padding: 14px 16px; }
.nota-lista .news-body h3 { font-size: 1rem; margin: 0 0 6px; }
.nota-lista .news-body > p { display: none; }
.nota-lista .nota-kicker { margin-bottom: 4px; }
@media (max-width: 480px) { .nota-lista { grid-template-columns: 104px 1fr; } }

/* Filtros y paginación de los listados */
.lista-filtros { margin-bottom: 30px; }
a.faq-chip { display: inline-block; text-decoration: none; }
.paginacion { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.paginacion-estado { font-size: 0.85rem; color: var(--ivory-dim); }
.theme-adaptive .paginacion-estado { color: var(--text-dim); }

/* ---------- Artículo (estilo diario) ---------- */
.nota-hero { padding-bottom: 36px; }
.nota-hero .container { max-width: 880px; }
.nota-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.15; margin: 14px 0 18px; }
.nota-bajada {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.55;
    color: var(--ivory);
    opacity: 0.9;
    max-width: 720px;
    margin: 0 auto 20px;
}
.nota-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.nota-meta span + span::before { content: '\00b7'; margin: 0 12px; opacity: 0.7; }
.nota-meta strong { font-weight: 700; }

.nota-seccion .nota-contenedor { max-width: 780px; }
.nota-portada { margin: 0 0 30px; }
.nota-portada img { width: 100%; border-radius: 10px; display: block; }
.nota-portada figcaption {
    font-size: 0.84rem;
    font-style: italic;
    color: var(--ivory-dim);
    padding-top: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.theme-adaptive .nota-portada figcaption { color: var(--text-dim); }
.nota-video { margin: 0 0 30px; }

.nota-cuerpo p { font-size: 1.1rem; line-height: 1.85; margin: 0 0 24px; color: var(--ivory); }
.theme-adaptive .nota-cuerpo p { color: var(--text); }
.nota-cuerpo a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.nota-cuerpo .nota-primer-parrafo::first-letter {
    float: left;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    line-height: 0.85;
    padding: 6px 12px 0 0;
    color: var(--gold-light);
    font-weight: 700;
}
.theme-adaptive .nota-cuerpo .nota-primer-parrafo::first-letter { color: var(--accent-text); }

/* Ficha de un caso de repercusión */
.caso-ficha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px 28px;
    padding: 22px 26px;
    margin: 0 0 32px;
    border: 1px solid rgba(201,162,75,0.35);
    border-left: 4px solid var(--gold-light);
    border-radius: 8px;
    background: rgba(201,162,75,0.07);
}
.theme-adaptive .caso-ficha { border-color: var(--border-strong); border-left-color: var(--accent-text); background: var(--bg-card); }
.caso-ficha-ancho { grid-column: 1 / -1; }
.caso-ficha-label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.theme-adaptive .caso-ficha-label { color: var(--accent-text); }
.caso-ficha-valor { display: block; font-size: 1rem; font-weight: 600; color: var(--ivory); }
.theme-adaptive .caso-ficha-valor { color: var(--text); }

/* Galería de fotos de la nota */
.nota-galeria { margin: 40px 0 10px; }
.nota-galeria-titulo { font-size: 1.15rem; margin: 0 0 16px; }
.nota-galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.nota-galeria-item {
    padding: 0;
    border: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    display: block;
}
.nota-galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s, opacity 0.2s; }
.nota-galeria-item:hover img { transform: scale(1.05); opacity: 0.92; }
.nota-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}
.nota-lb-prev { left: 18px; }
.nota-lb-next { right: 18px; }
.nota-lb-nav:hover { background: var(--gold-light); color: #1c1404; }

/* ---------- Compartir / copiar / enlace permanente ---------- */
.compartir { margin: 0 0 28px; }
.compartir-completo {
    margin: 44px 0 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(246,241,230,0.03);
}
.theme-adaptive .compartir-completo { background: var(--bg-card); }
.compartir-titulo { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; margin-bottom: 14px; color: var(--ivory); }
.theme-adaptive .compartir-titulo { color: var(--text); }
.compartir-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.compartir-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(201,162,75,0.5);
    border-radius: 999px;
    background: transparent;
    color: var(--gold-light);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.compartir-btn:hover { background: var(--gold-light); color: #1c1404; border-color: var(--gold-light); }
.theme-adaptive .compartir-btn { color: var(--accent-text); border-color: var(--border-strong); }
.theme-adaptive .compartir-btn:hover { background: var(--accent-text); color: #fff; border-color: var(--accent-text); }
.compartir-btn svg { flex: 0 0 auto; width: 18px; height: 18px; }
.compartir-btn.es-listo { background: var(--gold-light); color: #1c1404; border-color: var(--gold-light); }
.theme-adaptive .compartir-btn.es-listo { background: var(--accent-text); color: #fff; }
.compartir-compacto { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.compartir-compacto .compartir-btn span { display: none; }
.compartir-compacto .compartir-btn { padding: 9px; }
.compartir-compacto .compartir-btn[data-accion="copiar-enlace"] span { display: inline; }
.compartir-compacto .compartir-btn[data-accion="copiar-enlace"] { padding: 9px 14px; }
.compartir-aviso { margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--gold-light); }
.theme-adaptive .compartir-aviso { color: var(--accent-text); }
.enlace-permanente { margin-top: 20px; }
.enlace-permanente label { display: block; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 6px; }
.theme-adaptive .enlace-permanente label { color: var(--text-dim); }
.enlace-permanente-fila { display: flex; gap: 10px; }
.enlace-permanente-fila input {
    flex: 1;
    min-width: 0;
    background: rgba(246,241,230,0.06);
    border: 1px solid rgba(246,241,230,0.3);
    color: var(--ivory);
    padding: 10px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
}
.theme-adaptive .enlace-permanente-fila input { background: var(--bg); border-color: var(--border); color: var(--text); }
@media (max-width: 560px) { .enlace-permanente-fila { flex-direction: column; } }

/* Especialidades: se reparten parejo según la cantidad cargada (3, 4, 5...) */
.services-grid.especialidades-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

@media (max-width: 560px) {
    .nota-meta { flex-direction: column; align-items: center; }
    .nota-meta span + span::before { display: none; }
}

/* ==========================================================================
   Secciones de la portada orientadas a Marina
   ========================================================================== */
.hero-estudio {
    display: inline-block;
    margin-top: 26px;
    font-size: 0.85rem;
    color: var(--ivory-dim);
    text-decoration: none;
    border-bottom: 1px solid rgba(201,162,75,0.4);
    padding-bottom: 3px;
}
.hero-estudio strong { color: var(--gold-light); }
.hero-estudio:hover { color: var(--ivory); border-bottom-color: var(--gold-light); }

/* Frase destacada */
.frase-band {
    background: linear-gradient(135deg, rgba(201,162,75,0.16), rgba(201,162,75,0.05));
    border-top: 1px solid rgba(201,162,75,0.3);
    border-bottom: 1px solid rgba(201,162,75,0.3);
    padding: 54px 0;
    text-align: center;
}
.frase-band blockquote { margin: 0 auto; max-width: 820px; }
.frase-band blockquote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.35rem, 3.2vw, 2.1rem);
    line-height: 1.4;
    color: var(--gold-light);
    margin: 0 0 14px;
}
.frase-band footer { background: none; border: 0; padding: 0; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-dim); }
:root[data-theme="light"] .frase-band { background: linear-gradient(135deg, rgba(138,90,52,0.1), rgba(138,90,52,0.03)); border-color: rgba(138,90,52,0.25); }
:root[data-theme="light"] .frase-band blockquote p { color: var(--accent-text); }
:root[data-theme="light"] .frase-band footer { color: var(--text-dim); }

/* Datos del perfil y redes propias */
.perfil-datos { display: grid; gap: 0; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--border); }
.perfil-datos > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.perfil-datos dt { font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-light); }
.theme-adaptive .perfil-datos dt { color: var(--accent-text); }
.perfil-datos dd { margin: 0; font-weight: 600; text-align: right; color: var(--ivory); }
.theme-adaptive .perfil-datos dd { color: var(--text); }
.perfil-redes { display: flex; gap: 10px; margin-top: 20px; }
.perfil-redes a {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(201,162,75,0.5); border-radius: 50%; color: var(--gold-light);
}
.perfil-redes a svg { width: 18px; height: 18px; }
.perfil-redes a:hover { background: var(--gold-light); color: #1c1404; }
.theme-adaptive .perfil-redes a { color: var(--accent-text); border-color: var(--border-strong); }
.theme-adaptive .perfil-redes a:hover { background: var(--accent-text); color: #fff; }

/* Cómo trabajo: pasos numerados */
.pasos-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; counter-reset: paso; }
.paso-card {
    position: relative;
    padding: 34px 26px 28px;
    border: 1px solid rgba(201,162,75,0.2);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(201,162,75,0.07), transparent);
}
.theme-adaptive .paso-card { background: var(--bg-card); border-color: var(--border); }
.paso-numero {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
    font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1c1404;
}
.paso-card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.paso-card p { margin: 0; font-size: 0.95rem; }

/* Línea de tiempo (trayectoria) */
.linea-tiempo { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid rgba(201,162,75,0.4); }
.theme-adaptive .linea-tiempo { border-left-color: var(--border-strong); }
.linea-tiempo li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 0 0 30px 26px; }
.linea-tiempo li::before {
    content: ''; position: absolute; left: -9px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--gold-light); box-shadow: 0 0 0 4px rgba(201,162,75,0.2);
}
.theme-adaptive .linea-tiempo li::before { background: var(--accent-text); box-shadow: 0 0 0 4px rgba(138,90,52,0.15); }
.hito-anio { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--gold-light); }
.theme-adaptive .hito-anio { color: var(--accent-text); }
.linea-tiempo h3 { margin: 0 0 6px; font-size: 1.05rem; }
.linea-tiempo p { margin: 0; font-size: 0.95rem; }
@media (max-width: 560px) { .linea-tiempo li { grid-template-columns: 1fr; gap: 4px; } }

/* Preguntas frecuentes del estudio (leídas del sitio de Romano) */
.estudio-preguntas { max-width: 820px; margin: 48px auto 0; padding: 26px 28px; border: 1px solid var(--border); border-radius: 10px; }
.theme-adaptive .estudio-preguntas { background: var(--bg-card); }
.estudio-preguntas h3 { margin: 0 0 14px; font-size: 1.1rem; }
.estudio-preguntas ul { list-style: none; margin: 0 0 18px; padding: 0; }
.estudio-preguntas li { border-bottom: 1px solid var(--border); }
.estudio-preguntas li:last-child { border-bottom: 0; }
.estudio-preguntas li a { display: block; padding: 12px 0; text-decoration: none; color: var(--ivory); font-weight: 500; }
.estudio-preguntas li a::after { content: ' \2192'; color: var(--gold-light); }
.estudio-preguntas li a:hover { color: var(--gold-light); }
.theme-adaptive .estudio-preguntas li a { color: var(--text); }
.theme-adaptive .estudio-preguntas li a::after, .theme-adaptive .estudio-preguntas li a:hover { color: var(--accent-text); }

/* ==========================================================================
   Portada con retrato: texto a la izquierda y foto a la derecha (en celular, foto arriba)
   ========================================================================== */
.marina-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    text-align: left;
}
.marina-hero-grid .marina-hero-texto { order: 1; }
.marina-hero-grid .marina-hero-foto { order: 2; }
.marina-hero-grid .marina-hero-logo { width: min(380px, 80%); margin: 0 0 26px; }
.marina-hero-grid .hero-actions { justify-content: flex-start; }
.marina-hero-grid .lead { margin-left: 0; margin-right: 0; max-width: 560px; }
/* Portada: fondo negro igual al de la foto; la foto se funde con el fondo (sin marco ni sombra) */
.marina-hero { background: #080808; }
.marina-hero::before { opacity: 0.55; }
.marina-hero-grid { align-items: end; padding-bottom: 0; }
.marina-hero-grid .marina-hero-texto { align-self: center; padding-bottom: 70px; }
.marina-hero-foto {
    position: relative;
    margin: 0;
    justify-self: end;
    align-self: end;
    width: min(100%, 560px);
    line-height: 0;
}
.marina-hero-foto img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 1150 / 1368;
    object-fit: cover;
    object-position: 50% 0;
    background: transparent;
    /* Filtro sobre la imagen: los bordes izquierdo, derecho y superior se funden con el fondo negro */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
    mask-composite: intersect;
}
@media (max-width: 900px) {
    .marina-hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 70px; }
    .marina-hero-grid .marina-hero-foto { order: 0; width: min(88%, 380px); justify-self: center; }
    .marina-hero-grid .marina-hero-foto img {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 20%, #000 66%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 20%, #000 66%, transparent 100%);
    }
    .marina-hero-grid .marina-hero-texto { order: 1; padding-bottom: 56px; margin-top: -34px; position: relative; z-index: 3; }
    .marina-hero-grid .marina-hero-logo { margin: 0 auto 22px; }
    .marina-hero-grid .hero-actions { justify-content: center; }
    .marina-hero-grid .lead { margin-left: auto; margin-right: auto; }
}

/* Foto en "Sobre mí" */
.marina-perfil-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    position: relative;
    z-index: 1;
    display: block;
}
@media (min-width: 901px) {
    .marina-hero-grid .marina-hero-texto, .marina-hero-grid h1, .marina-hero-grid .lead, .marina-hero-grid .hero-estudio { text-align: left; }
    .marina-hero-grid .hero-estudio { display: inline-block; }
}

@media (max-width: 900px) {
    #perfil .placeholder-media { width: 100%; max-width: 420px; max-height: 520px; margin: 8px auto 0; }
}
