/* ==========================================================================
   Portada (index.php). Solo se carga en esa página.
   Enfoque claro y editorial: fondo crema, titular grande centrado,
   tarjetas "¿qué te ha pasado?" y el azul marino reservado al contacto final.
   ========================================================================== */

.v2 { --v2-ancho: 1180px; }
.v2 .container { max-width: var(--v2-ancho); }

.v2-antetitulo { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-texto); margin-bottom: .75rem; }
.v2-antetitulo--claro { color: var(--oro); }
.v2-h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; margin-bottom: 1rem; }
.v2-texto { color: var(--gris); font-size: 1.05rem; }
.v2-seccion { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.v2-seccion--crema { background: var(--crema); }
.v2-seccion--borde { border-top: 1px solid var(--borde); }

/* 1. Portada */
.v2-portada {
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(193, 166, 119, .22), transparent 70%),
        linear-gradient(#fbf9f5, var(--crema));
    padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    border-bottom: 1px solid var(--borde);
}
.v2-sello { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--borde); border-radius: 999px; padding: .4rem 1rem; font-size: .88rem; font-weight: 500; color: var(--tinta); margin-bottom: 1.75rem; box-shadow: 0 2px 10px rgba(14, 27, 46, .05); }
.v2-sello .icono { color: var(--oro-texto); }
.v2-titular { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.06; color: var(--azul); max-width: 19ch; margin: 0 auto 1.25rem; text-wrap: balance; }
.v2-titular em { font-style: italic; color: var(--oro-texto); }
.v2-entradilla { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--gris); max-width: 44rem; margin: 0 auto 2.5rem; }

.v2-problemas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 920px; margin: 0 auto; text-align: left; }
.v2-problema { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--tinta); box-shadow: var(--sombra); transition: transform .2s, border-color .2s, box-shadow .2s; }
.v2-problema:hover { transform: translateY(-2px); border-color: var(--oro); color: var(--tinta); box-shadow: 0 14px 34px rgba(14, 27, 46, .12); }
.v2-problema__icono { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--azul); color: var(--oro); font-size: 1.35rem; }
.v2-problema__texto { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.v2-problema__texto strong { font-size: 1.05rem; }
.v2-problema__texto small { color: var(--gris); font-size: .9rem; margin-top: .15rem; }
.v2-problema__flecha { color: var(--oro-texto); font-size: 1.2rem; transition: transform .2s; }
.v2-problema:hover .v2-problema__flecha { transform: translateX(4px); }
.v2-reclamamos { margin: 1.75rem auto 0; max-width: 900px; color: var(--gris); font-size: .95rem; }
.v2-reclamamos a { color: var(--tinta); font-weight: 600; }
.v2-otro { margin: .75rem 0 0; color: var(--gris); }
.v2-otro a { font-weight: 600; }

/* Tarjetas de servicio */
.v2-servicios { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.1rem; max-width: 1180px; margin: 0 auto; text-align: left; }
.v2-servicio { position: relative; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 0 1.5rem 1.5rem; text-decoration: none; color: var(--tinta); box-shadow: var(--sombra); transition: transform .2s, border-color .2s, box-shadow .2s; }
.v2-servicio:hover { transform: translateY(-3px); border-color: var(--oro); color: var(--tinta); box-shadow: 0 16px 38px rgba(14, 27, 46, .14); }
.v2-servicio__foto { display: block; margin: 0 -1.5rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--crema); }
.v2-servicio__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.v2-servicio:hover .v2-servicio__foto img { transform: scale(1.04); }
.v2-servicio__icono { position: relative; width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--oro-texto); font-size: 1.45rem; margin: -26px 0 .9rem; box-shadow: 0 6px 16px rgba(14, 27, 46, .15); }
.v2-servicio__etiqueta { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-texto); margin-bottom: .35rem; }
.v2-servicio h2 { font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; font-weight: 600; margin: 0 0 1rem; }
.v2-servicio ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex-grow: 1; }
.v2-servicio li { position: relative; padding: .4rem 0 .4rem 1.2rem; border-bottom: 1px dashed var(--borde); font-size: .97rem; }
.v2-servicio li:last-child { border-bottom: 0; }
.v2-servicio li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--oro); }
.v2-servicio__enlace { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--oro-texto); }
.v2-servicio__enlace .icono { transition: transform .2s; }
.v2-servicio:hover .v2-servicio__enlace .icono { transform: translateX(4px); }
.v2-servicio--principal { background: var(--azul); border-color: var(--azul); color: #fff; }
.v2-servicio--principal:hover { color: #fff; }
.v2-servicio--principal h2 { color: #fff; }
.v2-servicio--principal { grid-row: span 2; }
.v2-servicio--principal .v2-servicio__foto { aspect-ratio: auto; flex: 1 1 260px; min-height: 260px; }
.v2-servicio--principal .v2-servicio__icono { background: var(--oro); color: var(--azul); }
.v2-servicio--principal h2 { font-size: 1.9rem; }
.v2-servicio--principal ul { flex-grow: 0; }
.v2-servicio--principal .v2-servicio__etiqueta, .v2-servicio--principal .v2-servicio__enlace { color: var(--oro); }
.v2-servicio--principal li { border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9); }

/* 2. Cifras */
.v2-cifras { background: var(--azul); color: #fff; padding: 1.75rem 0; }
.v2-cifras__fila { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.v2-cifras__fila > div { display: flex; flex-direction: column; align-items: center; padding: 0 .5rem; }
.v2-cifras__fila > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.v2-cifras strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--oro); line-height: 1.1; }
.v2-cifras span { font-size: .9rem; color: rgba(255, 255, 255, .78); margin-top: .25rem; }

/* 2b. Somos abogados */
.v2-diferencia { border-bottom: 1px solid var(--borde); }
.v2-diferencia__consejo { display: flex; gap: .6rem; align-items: flex-start; background: #fff8e8; border-left: 3px solid var(--oro); border-radius: 8px; padding: .9rem 1rem; font-weight: 600; font-size: .95rem; margin: 1.5rem 0 0; }
.v2-diferencia__consejo .icono { color: var(--oro-texto); margin-top: .2rem; }
.v2-comprueba { background: #fff; border: 1px solid var(--borde); border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; }
.v2-comprueba__cabeza { display: flex; justify-content: space-between; align-items: center; background: var(--azul); color: rgba(255, 255, 255, .8); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 1rem 1.5rem; }
.v2-comprueba__glc { color: var(--oro); }
.v2-comprueba ul { list-style: none; margin: 0; padding: 0 1.5rem; }
.v2-comprueba li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--borde); }
.v2-comprueba li:last-child { border-bottom: 0; }
.v2-comprueba li > span { display: flex; flex-direction: column; }
.v2-comprueba strong { font-size: 1.02rem; }
.v2-comprueba small { color: var(--gris); font-size: .88rem; margin-top: .15rem; }
.v2-comprueba b { display: inline-flex; align-items: center; gap: .35rem; color: #1e6b3a; background: #e8f4ec; border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; white-space: nowrap; }

/* 3. Pasos y honorarios */
.v2-pasos { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; }
.v2-pasos::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--borde); }
.v2-pasos li { display: flex; gap: 1.25rem; position: relative; padding-bottom: 1.75rem; }
.v2-pasos li:last-child { padding-bottom: 0; }
.v2-pasos__num { flex: 0 0 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--oro); color: var(--azul); display: grid; place-items: center; font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; font-weight: 700; z-index: 1; }
.v2-pasos h3 { font-size: 1.15rem; font-weight: 600; margin: .6rem 0 .35rem; }
.v2-pasos p { color: var(--gris); margin: 0; }

.v2-honorarios { background: var(--crema); border: 1px solid var(--borde); border-top: 4px solid var(--oro); border-radius: 18px; padding: 2rem; }
.v2-honorarios__etiqueta { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-texto); margin-bottom: .5rem; }
.v2-honorarios__titulo { font-family: "Playfair Display", Georgia, serif; font-size: 1.75rem; font-weight: 600; line-height: 1.2; color: var(--azul); margin-bottom: 1.25rem; }
.v2-honorarios ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.v2-honorarios li { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--borde); }
.v2-honorarios li:last-child { border-bottom: 0; }
.v2-honorarios .icono { color: var(--oro-texto); }

/* 4. Televisión */
.v2-tele { background: var(--azul); border-radius: 22px; padding: 14px 14px 4px; box-shadow: 0 24px 60px rgba(14, 27, 46, .25); }
.v2-tele .tarjeta-video { background: transparent; border: 0; box-shadow: none; }
.v2-tele .tarjeta-video__imagen { border-radius: 12px; overflow: hidden; }
.v2-tele .tarjeta-video__texto { padding: 1rem .5rem .75rem; }
.v2-tele .tarjeta-video__meta { color: var(--oro); }
.v2-tele .tarjeta-video__titulo { color: #fff; font-size: 1.25rem; }
.v2-lista-videos { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--borde); }
.v2-lista-videos li { border-bottom: 1px solid var(--borde); }
.v2-lista-videos a { display: block; padding: .85rem 0; color: var(--tinta); text-decoration: none; font-weight: 600; }
.v2-lista-videos a:hover { color: var(--oro-texto); }
.v2-lista-videos__canal { display: block; font-size: .8rem; font-weight: 500; color: var(--gris); margin-bottom: .15rem; }
.v2-canales { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--borde); }
.v2-canales { gap: 1.5rem 3rem; align-items: flex-end; }
.v2-canal { display: flex; flex-direction: column; align-items: center; gap: .6rem; color: #6b7280; transition: color .2s; }
.v2-canal:hover { color: var(--azul); }
.v2-canal__logo { width: auto; height: 44px; max-width: 64px; }
.v2-canal > span { font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.v2-diferencia__foto { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 1.5rem; box-shadow: var(--sombra); }

/* 5. Sentencias */
.v2-cabecera-fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.v2-cabecera-fila .v2-h2 { margin: 0; max-width: 24ch; }
.v2-sentencias { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--azul); }
.v2-sentencias li { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--borde); }
.v2-sentencias time { font-size: .9rem; font-weight: 600; color: var(--gris); }
.v2-sentencias h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; font-weight: 600; margin: 0 0 .2rem; }
.v2-sentencias__entidad { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oro-texto); margin: 0 0 .25rem; }
.v2-sentencias__tribunal { font-size: .88rem; color: var(--gris); margin: 0; }
.v2-sentencias__sello { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: #1e6b3a; background: #e8f4ec; border-radius: 999px; padding: .3rem .8rem; white-space: nowrap; }

/* 6. Otras áreas */
.v2-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v2-area { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.5rem; border: 1px solid var(--borde); border-radius: 16px; text-decoration: none; color: var(--tinta); transition: border-color .2s, background .2s; }
.v2-area:hover { border-color: var(--oro); background: #fffdf9; color: var(--tinta); }
.v2-area h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .3rem; }
.v2-area p { color: var(--gris); margin: 0; }
.v2-area__icono { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--crema); color: var(--oro-texto); font-size: 1.3rem; }
.v2-area__flecha { margin-left: auto; margin-top: .3rem; color: var(--oro-texto); font-size: 1.2rem; flex-shrink: 0; }
.v2-extranjeria { color: var(--gris); margin: 1.5rem 0 0; font-size: .95rem; }

/* 7. Contacto */
.v2-contacto { background: var(--azul); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.v2-contacto .v2-h2 { color: #fff; }
.v2-contacto__texto { color: rgba(255, 255, 255, .78); font-size: 1.05rem; }
.v2-contacto__botones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 2rem; }
.v2-contacto__botones .btn { display: inline-flex; align-items: center; gap: .5rem; }
.v2-contacto__oficinas { font-size: .9rem; color: rgba(255, 255, 255, .65); margin: 0; }
.v2-contacto__oficinas strong { color: #fff; font-weight: 600; }
.v2-contacto .formulario { color: var(--tinta); }

/* Barra fija en móvil */
@media (max-width: 1199.98px) { .v2-servicios { grid-template-columns: 1fr 1fr; max-width: 820px; } .v2-servicio--principal { grid-row: auto; grid-column: 1 / -1; } .v2-servicio--principal .v2-servicio__foto { flex: none; min-height: 0; aspect-ratio: 21 / 9; } }
@media (max-width: 575.98px) { .v2-servicios { grid-template-columns: 1fr; } }
.v2-barra-movil { display: none; }

@media (max-width: 991.98px) {
    .v2-cifras__fila { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
    .v2-cifras__fila > div:nth-child(3) { border-left: 0; }
    .v2-honorarios { margin-top: .5rem; }
}

@media (max-width: 767.98px) {
    .v2-problemas, .v2-areas { grid-template-columns: 1fr; }
    .v2-problema { padding: .95rem 1rem; }
    .v2-sentencias li { grid-template-columns: 1fr; gap: .4rem; }
    .v2-sentencias__sello { justify-self: start; }
    .v2-canales { gap: .5rem 1.5rem; }
    .v2-canal__logo { height: 34px; }
    .v2-canales { gap: 1.25rem 2rem; }

    .v2-barra-movil { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--azul); border-top: 1px solid rgba(255, 255, 255, .1); padding-bottom: env(safe-area-inset-bottom); }
    .v2-barra-movil a { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .9rem .25rem; color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; }
    .v2-barra-movil a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
    .v2-barra-movil a:first-child { background: var(--oro); color: var(--azul); }
    body:has(.v2-barra-movil) { padding-bottom: 56px; }
    body:has(.v2-barra-movil) .boton-whatsapp { display: none; }
}
