/*
Themo Name: Abogados Menz 2026
Author: Z-SEO
Description: Tema custom para Abogados Menz
Version: 1.0
Template: intentionally-blank

This is the child theme for Intentionally Blank theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/*Theme Name: tema-test-feb-2026*/

/* ==========================================================================
   RESET & BOX MODEL
   ========================================================================== */
:root {
  --primary-color: #04354f;
  --action-color: #efb810;
  --text-white: #ffffff;
  --text-main: #313131;
  --negro: #000;
  --transition-speed: 0.3s;
  --header-height: 80px;
  --fuente-grande: 20px;
  --fuente-mediana: 18px;
  --fuente-pequena: 16px;
  --fuente-weight-1: 400;
  --border-radius: 10px;
}

/* Reset básico para el Pen */
body {
  margin: 0;
  font-family: "Inter", system-ui;
}
*,
*::before,
*::after {
  box-sizing: border-box; /* Crucial para que el padding no rompa el ancho */
}

html {
  scroll-behavior: smooth; /* Desplazamiento suave para anclas */
}

.contenedor {
  width: 100%; /* Se asegura de ocupar todo el ancho en móvil */
  max-width: 1200px; /* Límite de crecimiento */
  margin-left: auto; /* Centra el bloque horizontalmente */
  margin-right: auto; /* Centra el bloque horizontalmente */
  padding: 3rem 1rem 0;
}

.border-radius-1 {
  border-radius: var(--border-radius);
}

/* ==========================================================================
   3. TIPOGRAFÍA (H1 - H6)
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: var(--fuente-weight-1);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
} /* Fluido: escala según pantalla */
h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}
h3 {
  font-size: 1.75rem;
}
p {
  color: var(--text-main);
}
p a {
  color: var(--primary-color);
  text-decoration: underline;
  /* Controlas el grosor */
  text-decoration-thickness: 2px;
  /* Controlas la separación del texto para que no choque con las letras */
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}

p a:hover {
  text-decoration: none;
}

.texto-blanco {
  color: var(--text-white);
}
.texto-blanco a {
  color: var(--action-color);
}

/* ==========================================================================
   Header
   ========================================================================== */
/* Header Principal */

.site-header {
  background-color: var(--primary-color);
  color: var(--text-white);
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header__container {
  margin: 0 auto;
  height: 100%;
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: flex-end;
  /*esto de abajo es para que se comporte como el container*/
  width: 100%; /* Se asegura de ocupar todo el ancho en móvil */
  max-width: 1200px; /* Límite de crecimiento */
  margin-left: auto; /* Centra el bloque horizontalmente */
  margin-right: auto; /* Centra el bloque horizontalmente */
  padding: 0rem 1rem 0;
}

/* Logo */
.site-header__logo {
  margin-right: auto;
}

.site-header__logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.site-header__logo-text {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* Menú de Navegación */
.site-header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.site-header__link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: var(--fuente-weight-1);
  font-size: var(--fuente-pequena);
  opacity: 0.8;
  position: relative; /* Necesario para posicionar el subrayado */
  padding: 8px 0; /* Espacio para que el subrayado no toque las letras */
  transition: opacity var(--transition-speed);
  display: flex;
  list-style: none;
}

/* El "Subrayado" como pseudo-elemento */
.site-header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Grosor del subrayado */
  background-color: var(--text-white);
  transform: scaleX(0); /* Oculto por defecto */
  transform-origin: right;
  transition: transform var(--transition-speed) ease;
}

/* Estado Hover y Active (WordPress estándar) */
.site-header__link:hover,
.site-header__item.current-menu-item .site-header__link {
  opacity: 1;
}

.site-header__link:hover::after,
.site-header__item.current-menu-item .site-header__link::after {
  transform: scaleX(1); /* Se muestra el subrayado */
  transform-origin: left;
}

/* Estado :active (al hacer click físico) */
.site-header__link:active {
  opacity: 0.7;
  transform: translateY(1px); /* Efecto sutil de pulsación */
}

/*ajustes responsive*/
@media (max-width: 768px) {
  .site-header__logo-text,
  .site-header__menu {
    display: none;
  }
}
/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-efecto {
  display: inline-flex; /* Cambiado de inline-block para mejor control */
  align-items: center; /* Centra el texto verticalmente */
  justify-content: center; /* Centra el texto horizontalmente */
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.2s;
  will-change: transform;

  /* SEGURIDAD: Evita que el botón rompa el contenedor */
  max-width: 100%;
  white-space: normal; /* Permite que el texto salte de línea si es muy largo */
  text-align: center;
}

.btn-efecto:hover {
  transform: scale(1.05);
}
.btn-efecto:active {
  transform: scale(0.98);
}

/* 2. CLASES ESTÉTICAS */
.btn-cta,
.btn-cta-2,
.btn-cta-outline {
  padding: 0.8rem 1.5rem; /* Padding balanceado */
  border: 1.5px solid transparent; /* Grosor de borde consistente */
  line-height: 1.2; /* NUNCA uses 0 aquí para botones con texto */
}

.btn-cta {
  background-color: var(--action-color);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: var(--fuente-pequena);
  font-weight: var(--fuente-weight-1);
}

.btn-cta-2 {
  background-color: var(--action-color);
  color: var(--primary-color);
  border-radius: 100px;
  font-size: var(--fuente-grande);
}

.btn-cta-outline {
  background-color: transparent;
  color: white;
  border-radius: 100px;
  font-size: var(--fuente-grande);
  border-color: white;
}

.btn-cta-outline:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: transparent;
}

@media (max-width: 768px) {
  .btn-cta-2,
  .btn-cta-outline {
    font-size: var(--fuente-mediana);
  }
}
/* ==========================================================================
   Hero Home
   ========================================================================== */
/*hero section*/
/* Contenedor Principal */

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--header-height);
  height: 768px;

  /* Activamos Grid */
  display: grid;
  grid-template-columns: 2fr 1fr; /* Dos columnas iguales */
  gap: 1em; /* Espacio entre contenido e imagen */
  align-items: center; /* Centra verticalmente el texto con la imagen */
}

/*ajustes responsive*/
@media (max-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr;
    height: 100vh;
    padding: var(--header-height) 20px 0px 20px;
  }
}

/* Contenido (Izquierda) */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-align: left;
}

.hero__subtitle {
  font-size: 2.5rem;
  color: var(--text-white);
  margin: 0;
}

.hero__title {
  font-size: 1.25rem;
  color: var(--text-white);
  margin: 0;
}

.hero__description {
  border-left: solid;
  border-color: var(--primary-color);
  border-width: 6px;
  padding-left: 2em;
  width: 60ch;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

@media (max-width: 768px) {
  .hero__description {
    width: 100%;
  }
  .hero__subtitle {
    font-size: 2rem;
  }
  .hero__image-wrapper {
    display: none;
  }
  .hero__actions {
    flex-direction: column;
  }
}

/* Imagen (Derecha) */
/* 1. El contenedor dicta el tamaño */
.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 200px;
}
/* 2. L a imagen se adapta al contenedor */
.hero__img {
  position: absolute;
  top: 0;
  left: 0;
  height: 90%;
  object-fit: cover;
  object-position: top;
}

/* Responsive: Muy importante en Grid */
@media (max-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr; /* En móviles, una sola columna */
    text-align: center;
    gap: 40px;
  }

  .hero__image-wrapper {
    order: -1; /* Opcional: pone la foto arriba en móviles */
  }
}
/* ==========================================================================
   Cards de blog
   ========================================================================== */

.grid-blog {
  display: grid;
  /* Tu fórmula optimizada para que las columnas se ajusten solas */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;

  /* Opcional: un poco de margen superior para que no pegue con lo de arriba */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Contenedor Principal */
.card-blog {
  background-color: var(--primary-color);
  overflow: hidden;
  border: none;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Imagen y su enlace */
.card-blog__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block; /* Elimina espacio extra debajo de la imagen */
}

/* Cuerpo de la Card (Padding y Flex) */
.card-blog__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  align-items: flex-start;
}

/* Meta información (Fecha y Categoría) */
.card-blog__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  width: 100%;
}

.card-blog__date {
  color: var(--text-white);
}

.card-blog__category {
  color: var(--action-color);
  text-decoration: none;
}

/* Títulos y Párrafos */
.card-blog__title {
  margin: 0;
  color: var(--text-white);
}

.card-blog__excerpt {
  margin: 0;
  color: var(--text-white);
  font-size: 0.9rem;
}

/* Botón (CTA) */
.card-blog__cta {
  margin-top: auto;
  padding: 0.5rem 1rem;
  font-weight: bold;
  background-color: transparent;
  border: solid 1px;
  color: var(--text-white);
  text-decoration: none;
  border-radius: 4px;
}

/*background de prueba*/

.fondo-1 {
  background-image: url("low-poly-grid-haikei.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative; /* Importante para capas superiores */
  z-index: 0;
}

.fondo-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Ajusta el 0.3 según qué tan oscuro lo quieras */
  /* efecto blur*/
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(10px); /* Para compatibilidad con Safari */
  z-index: -1;
}

/*texto destacado*/
.texto-destacado-fondo {
  background-color: blue;
}
.texto-destacado-contenedor {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 3rem 0;
}

.texto-destacado-text {
  font-size: 1.5rem;
  color: var(--text-white);
}

.texto-destacado-text a {
  color: var(--text-white);
  text-decoration: underline;
  /* Controlas el grosor */
  text-decoration-thickness: 2px;
  /* Controlas la separación del texto para que no choque con las letras */
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}

.texto-destacado-text a:hover {
  text-decoration: none;
}
