/* ============================================================
   CSS/styles.css — versión limpia sin duplicados
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Open+Sans&display=swap');

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding: 0 1rem;
}

p {
  margin-bottom: 20px;
  color: black;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== IMÁGENES ===== */

/* Imagen de la abogada en #about de index.html */
.about-img {
  width: 100%;
  max-width: 480px;        /* no más ancha que esto */
  height: auto;
  aspect-ratio: 3 / 4;    /* proporción vertical — retrato */
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 34, 68, 0.12);
}

/* Imagen de servicios en #services de index.html — tipo banner */
.services-img {
  width: 100%;
  max-width: 100%;         /* ocupa todo el ancho del contenedor */
  height: auto;
  aspect-ratio: 21 / 6;   /* proporción panorámica */
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 1.2rem 0 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Imagen de servicios en services.html (la de la página detalle) */
.services1-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 21 / 6;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile — ajustar proporciones */
@media (max-width: 768px) {
  .about-img {
    max-width: 100%;       /* foto llena todo el ancho en mobile */
    aspect-ratio: 4 / 5;  /* un poco menos alta en mobile */
  }

  .services-img,
  .services1-img {
    aspect-ratio: 16 / 7; /* banner un poco más alto en mobile */
  }
}

/* ===== HEADER ===== */
header {
  background: #002244;
  color: #fff;
  padding: 1rem 0;
  width: 100%;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header img {
  max-width: 150px;
  height: auto;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  text-align: left;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.branding img {
  width: 180px;
  height: 140px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  margin: 10px;
}

.branding h1 {
  font-size: 3.8rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #fff;
  font-family: 'Playfair Display', serif;
}


/* ===== NAVEGACIÓN ===== */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #f1c40f;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

#language-select {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: none;
  font-weight: bold;
  background-color: #f1c40f;
  color: #002244;
  cursor: pointer;
}


/* ===== HERO ===== */
.hero {
  background: linear-gradient(to right, #01376e, #015ab4);
  color: #ffffff;
  text-align: center;
  padding: 6rem 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  max-width: 100%;
  height: 140px;
}

.hero p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

.hero .container,
.hero .container1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #f1c40f;
  color: #002244;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #ffdf4e;
}

/* Texto rotante */
#rotating-text {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: #ffffff;
  margin-top: 2rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}


/* ===== SECCIONES GENERALES ===== */
section {
  padding: 3rem 1rem;
  background-color: #fff;
  margin-top: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

section.reveal {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  color: #000000;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

/* ===== SISTEMA DE BOTONES — UN SOLO LUGAR ===== */

/* Primario — amarillo — "Solicita una Consulta" */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #f1c40f;
  color: #002244;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid #f1c40f;
  transition: background 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn:hover {
  background: #ffdf4e;
  border-color: #ffdf4e;
  transform: translateY(-2px);
}

/* Secundario — azul outline — "Ver servicios" */
.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: #002244;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid #002244;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-outline:hover {
  background: #002244;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== STATS COUNTER ===== */
.stats {
  background: linear-gradient(135deg, #002244, #015ab4);
  padding: 3rem 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.stats.reveal {
  opacity: 1;
  transform: translateY(0);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: #f1c40f;
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #cce0ff;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}


/* ===== TESTIMONIOS — INFINITE SCROLL ===== */
.testimonials {
  padding: 3rem 0;
  overflow: hidden;
  background: #f0f8ff;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 2rem;
}

.testimonials-fade-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonials-fade-wrapper::before,
.testimonials-fade-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-fade-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f0f8ff, transparent);
}

.testimonials-fade-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f0f8ff, transparent);
}

.testimonials-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scrollLeft 200s linear infinite;
  padding: 1rem 0;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  width: 320px;
  min-width: 320px;
  box-shadow: 0 4px 16px rgba(0, 34, 68, 0.1);
  border-left: 4px solid #002244;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 34, 68, 0.18);
}

.testimonial-card p {
  font-style: italic;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-card cite {
  font-weight: bold;
  color: #002244;
  font-size: 0.9rem;
  display: block;
}

.testimonial-card .stars {
  color: #f1c40f;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}


/* ===== FAQ ===== */
.faq {
  margin-top: 2rem;
  padding: 2.5rem 1rem;
  background-color: #fff;
  border-radius: 8px;
}

.faq h2 {
  font-family: 'Playfair Display', serif;
  color: #002244;
  margin-bottom: 1.5rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-weight: bold;
  background: #f2f2f2;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #e0e0e0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1rem;
  color: #444;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1rem;
}


/* ===== CONTACTO ===== */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact input,
.contact textarea,
.contact select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

.contact button,
.btn-submit {
  padding: 0.75rem;
  background-color: #f1c40f;
  color: #002244;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact button:hover,
.btn-submit:hover {
  background-color: #ffdf4e;
}


/* ===== FORMULARIO DE CITAS ===== */
#appointment-form {
  background: #f4f4f4;
  padding: 2rem;
  border-radius: 10px;
  border-left: 5px solid #002244;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form label {
  font-weight: bold;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="file"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(12, 47, 26, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(29, 146, 74, 0.55);
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@keyframes waPulse {
  0%, 90%, 100% { transform: scale(1); }
  95%           { transform: scale(1.07); }
}

/* WhatsApp estático en footer (fallback) */
.whatsapp-btn {
  display: inline-block;
  background: #1eb856;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: bold;
}


/* ===== FOOTER ===== */
footer {
  background: #002244;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 3px solid #001122;
  border-radius: 10px;
}

footer a {
  color: #f1c40f;
  text-decoration: none;
}

footer p {
  color: #cce0ff;
  margin-bottom: 0.5rem;
}


/* ===== ANIMACIONES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #002244;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 999;
    border-top: 2px solid #f1c40f;
  }

  .nav-links.active {
    display: flex;
  }

  .branding h1 {
    font-size: 1.8rem;
  }

  .hero h2,
  #rotating-text {
    font-size: 1.6rem;
    height: auto;
    min-height: 80px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .testimonial-card {
    width: 260px;
    min-width: 260px;
    padding: 1.2rem 1.5rem;
  }

  .testimonials-fade-wrapper::before,
  .testimonials-fade-wrapper::after {
    width: 60px;
  }

  .whatsapp-float {
    padding: 0.9rem;
    border-radius: 50%;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-float .wa-text {
    display: none;
  }

  .blog-preview {
    grid-template-columns: 1fr;
  }
}

/* ===== EYEBROW / BADGE ===== */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #015ab4;
  margin-bottom: 0.4rem;
}

.about-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #0c447c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

/* ===== MINI STATS EN ABOUT ===== */
.about-mini-stats {
  display: flex;
  gap: 2rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.mini-stat-n {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #002244;
  line-height: 1;
}

.mini-stat-l {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0;
}

/* Centra el último card si queda solo en su fila */
.services-grid .service-card:last-child:nth-child(3n - 2),
.services-grid .service-card:last-child:nth-child(3n - 1) {
  grid-column: auto;
}

/* Cuando hay 5 cards en grid de 3 — centra la última fila */
.services-grid:has(.service-card:nth-child(5):last-child) {
  grid-template-columns: repeat(6, 1fr);
}

.services-grid:has(.service-card:nth-child(5):last-child) .service-card {
  grid-column: span 2;
}

.services-grid:has(.service-card:nth-child(5):last-child) .service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.services-grid:has(.service-card:nth-child(5):last-child) .service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card {
  border: 1px solid #e8edf4;
  border-radius: 10px;
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #002244, #015ab4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 34, 68, 0.12);
  border-color: #015ab4;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.7rem;
}

.service-card strong {
  display: block;
  font-size: 1rem;
  color: #002244;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.service-link {
  font-size: 0.85rem;
  color: #015ab4;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.service-link:hover {
  color: #002244;
}

/* ===== ICONOS LUCIDE EN SERVICE CARDS ===== */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.9rem;
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 10px;
  padding: 10px;
  transition: background 0.2s ease;
}

.service-card:hover .service-icon {
  background: #002244;
}

.service-icon i,
.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: #002244;
  stroke-width: 1.8;
  transition: stroke 0.2s ease;
}

.service-card:hover .service-icon svg {
  stroke: #f1c40f;
}

/* ===== FAQ MODERNO ===== */
.faq-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid #e8edf4;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: #015ab4;
  box-shadow: 0 4px 16px rgba(0, 34, 68, 0.10);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #002244;
  text-align: left;
  transition: background 0.2s ease;
  gap: 1rem;
}

.faq-item.active .faq-question {
  background: #f0f6ff;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8edf4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: #002244;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #002244;
  color: #f1c40f;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 1.2rem 1rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ===== ABOUT — TWO COLUMN LAYOUT ===== */

.about-two-col {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  margin-top: 2rem;
  align-items: start;
}

/* Columna foto */
.about-photo-col {
  position: sticky;
  top: 2rem; /* se queda fija mientras scrolleas el texto */
}

.about-photo-wrapper {
  position: relative;
}

.about-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 34, 68, 0.15);
}

/* Badge flotante sobre la foto */
.about-photo-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 34, 68, 0.15);
  white-space: nowrap;
  border-left: 4px solid #002244;
}

.photo-badge-icon {
  width: 36px;
  height: 36px;
  background: #e8f0fe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-badge-icon svg {
  width: 20px;
  height: 20px;
  stroke: #002244;
  stroke-width: 1.8;
}

.about-photo-badge strong {
  display: block;
  font-size: 0.85rem;
  color: #002244;
  font-weight: 700;
}

.about-photo-badge span {
  display: block;
  font-size: 0.75rem;
  color: #888;
}

/* Stats bajo la foto */
.about-photo-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f4fa;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-top: 2rem; /* espacio para el badge */
}

.photo-stat {
  text-align: center;
  flex: 1;
}

.photo-stat-n {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #002244;
  line-height: 1;
}

.photo-stat-l {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-top: 3px;
  line-height: 1.3;
}

.photo-stat-divider {
  width: 1px;
  height: 40px;
  background: #d0dae8;
  flex-shrink: 0;
}

/* Columna texto */
.about-text-col {
  padding-top: 0.5rem;
}

/* Bloques de contenido con ícono */
.about-block {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eef0f4;
}

.about-block:last-of-type {
  border-bottom: none;
}

.about-block-icon {
  width: 44px;
  height: 44px;
  background: #e8f0fe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-block-icon svg {
  width: 22px;
  height: 22px;
  stroke: #002244;
  stroke-width: 1.8;
}

.about-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #002244;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Chips de servicios */
.about-services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f4fa;
  color: #002244;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #d0dae8;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  background: #e8f0fe;
  border-color: #015ab4;
}

.chip svg {
  width: 13px;
  height: 13px;
  stroke: #015ab4;
  stroke-width: 2;
}

/* Botones CTA */
.about-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid #002244;
  color: #002244;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: #002244;
  color: #fff;
}

/* Intro de servicios */
.services-intro {
  color: #666;
  font-size: 1rem;
  max-width: 680px;
  margin-bottom: 1.5rem;
}


/* ===== SERVICES — FULL CARDS GRID ===== */

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin: 2.5rem 0;
}

.service-full-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-full-card:hover {
  box-shadow: 0 8px 30px rgba(0, 34, 68, 0.10);
  transform: translateY(-3px);
}

/* Header de la card */
.sfc-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #eef0f4;
}

.sfc-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #002244;
  margin: 0 0 4px;
}

/* Ícono de la card */
.sfc-icon {
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sfc-icon svg {
  width: 24px;
  height: 24px;
  stroke: #002244;
  stroke-width: 1.8;
}

/* Colores de ícono por área */
.sfc-icon--shield   { background: #fff0f0; }
.sfc-icon--shield   svg { stroke: #993c1d; }
.sfc-icon--heart    { background: #fff0f6; }
.sfc-icon--heart    svg { stroke: #993556; }
.sfc-icon--doc      { background: #f0f8ff; }
.sfc-icon--doc      svg { stroke: #185fa5; }
.sfc-icon--alert    { background: #fff8e6; }
.sfc-icon--alert    svg { stroke: #854f0b; }
.sfc-icon--car      { background: #f0fff4; }
.sfc-icon--car      svg { stroke: #3b6d11; }

/* Tags */
.sfc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #f0f4fa;
  color: #5a7a9a;
  padding: 2px 8px;
  border-radius: 4px;
}

.sfc-tag--urgent {
  background: #fff3e0;
  color: #854f0b;
}

/* Párrafos dentro de la card */
.service-full-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

.service-full-card p:last-of-type {
  margin-bottom: 1rem;
}

/* CTA de la card */
.sfc-cta {
  display: inline-block;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: #015ab4;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  padding-top: 0.5rem;
  border-top: 1px solid #eef0f4;
}

.sfc-cta:hover {
  color: #002244;
  transform: translateX(3px);
}

/* Bloque CTA al final */
.services-cta-block {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f0f4fa, #e8f0fe);
  border-radius: 14px;
  margin-top: 1rem;
}

.services-cta-block p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}


/* ===== LUCIDE ICONS — SERVICE CARDS EN INDEX ===== */
.service-icon {
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  transition: background 0.2s ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: #002244;
  stroke-width: 1.8;
  transition: stroke 0.2s ease;
}

.service-card:hover .service-icon {
  background: #002244;
}

.service-card:hover .service-icon svg {
  stroke: #f1c40f;
}


/* ===== RESPONSIVE — ABOUT TWO COL ===== */
@media (max-width: 900px) {
  .about-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo-col {
    position: static; /* quita sticky en mobile */
  }

  .about-photo {
    height: 340px;
  }

  .about-photo-badge {
    bottom: -16px;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .about-photo-stats {
    margin-top: 1.8rem;
  }

  .about-cta-row {
    flex-direction: column;
  }

  .about-cta-row .btn,
  .about-cta-row .btn-outline {
    text-align: center;
    width: 100%;
  }
}

/* ===== RESPONSIVE — SERVICES FULL GRID ===== */
@media (max-width: 900px) {
  .services-full-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .service-full-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {

  /* About chips más chicos */
  .chip {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  /* Stats foto en 3 columnas pequeñas */
  .photo-stat-n {
    font-size: 1.5rem;
  }

  .photo-stat-l {
    font-size: 0.65rem;
  }

  /* Services intro */
  .services-intro {
    font-size: 0.95rem;
  }

  /* CTA block */
  .services-cta-block {
    padding: 1.5rem;
  }
}

/* ===== MOBILE — SERVICES GRID ===== */
@media (max-width: 768px) {

  /* 1. Header más compacto — el nombre en dos líneas no se desborda */
  .branding {
    gap: 0.5rem;
  }
  .branding img {
    width: 60px;
    height: 50px;
    padding: 4px;
    margin: 4px;
  }
  .branding h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  /* 2. Hero — texto más legible en pantalla pequeña */
  .hero {
    padding: 3rem 1rem;
  }
  #rotating-text {
    font-size: 1.4rem;
    min-height: 90px;
    height: auto;
    padding: 0 0.5rem;
  }
  .hero p {
    font-size: 1rem;
  }

  /* 3. Stats — más compactos en 2 columnas */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }

  /* 4. About — mini stats en columna */
  .about-mini-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .mini-stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }

  /* 5. FAQ — botón más fácil de tocar (44px mínimo por WCAG) */
  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  /* 6. Secciones — menos padding lateral para ganar espacio */
  section {
    padding: 2rem 0.75rem;
    margin-top: 1rem;
    border-radius: 6px;
  }
}

/* Extra pequeño — 360px y menos */
@media (max-width: 400px) {
  .branding h1 {
    font-size: 1.9rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 1.8rem;
  }
}
 
.why-us {
  background: #fff;
  padding: 3.5rem 1rem;
}
 
.why-subtitle {
  color: #666;
  font-size: 1rem;
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
 
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
 
.why-card {
  background: #f8faff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
 
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #002244, #015ab4);
  opacity: 0;
  transition: opacity 0.25s ease;
}
 
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 34, 68, 0.10);
  border-color: #b5d4f4;
}
 
.why-card:hover::after {
  opacity: 1;
}
 
.why-icon {
  width: 52px;
  height: 52px;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}
 
.why-card:hover .why-icon {
  background: #002244;
}
 
.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: #002244;
  stroke-width: 1.8;
  transition: stroke 0.2s ease;
}
 
.why-card:hover .why-icon svg {
  stroke: #f1c40f;
}
 
.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #002244;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
 
.why-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
}
 
.why-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
 
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
 
  .why-cta {
    flex-direction: column;
    align-items: center;
  }
 
  .why-cta .btn,
  .why-cta .btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   CSS/blog.css — estilos para blog.html y blog-post.html
   ============================================================ */

/* ===== BLOG HERO ===== */
.blog-hero {
  background: linear-gradient(135deg, #002244, #015ab4);
  color: #fff;
  padding: 3rem 1rem 2rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.blog-hero .section-eyebrow {
  color: #f1c40f;
}

.blog-hero h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.blog-hero-subtitle {
  color: #cce0ff;
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Filtros */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #cce0ff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Open Sans', sans-serif;
}

.blog-filter-btn:hover {
  border-color: #f1c40f;
  color: #f1c40f;
}

.blog-filter-btn.active {
  background: #f1c40f;
  border-color: #f1c40f;
  color: #002244;
}


/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 2.5rem 1rem;
  background: #f4f6fa;
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

/* Grid de cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e8edf4;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 34, 68, 0.1);
  border-color: #b5d4f4;
}

.blog-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.blog-card-cat--familia  { background: #e8f0fe; color: #0c447c; }
.blog-card-cat--notarial { background: #e8f5e9; color: #1b5e20; }
.blog-card-cat--violencia{ background: #fff3e0; color: #854f0b; }
.blog-card-cat--transito { background: #f3e5f5; color: #4a148c; }
.blog-card-cat--general  { background: #f0f4fa; color: #3d5a8a; }

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #002244;
  margin-bottom: 0.7rem;
  line-height: 1.4;
  flex: 1;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #eef0f4;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-card-read {
  font-size: 0.82rem;
  color: #015ab4;
  font-weight: 700;
}


/* Estado vacío */
.blog-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  gap: 1rem;
}

.blog-empty-icon {
  width: 60px;
  height: 60px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-empty-icon svg {
  width: 28px;
  height: 28px;
  stroke: #002244;
  stroke-width: 1.5;
}

.blog-empty h3 {
  font-family: 'Playfair Display', serif;
  color: #002244;
  font-size: 1.3rem;
}

.blog-empty p {
  color: #666;
  font-size: 0.95rem;
}


/* ===== CTA DEL BLOG ===== */
.blog-cta-section {
  padding: 2rem 1rem;
  background: #f4f6fa;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.blog-cta-card {
  background: linear-gradient(135deg, #002244, #015ab4);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}

.blog-cta-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.blog-cta-icon svg {
  width: 26px;
  height: 26px;
  stroke: #f1c40f;
  stroke-width: 1.8;
}

.blog-cta-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.blog-cta-card p {
  color: #cce0ff;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-cta-card .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.blog-cta-card .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}


/* ===== POST PAGE ===== */
.post-page {
  padding: 2rem 1rem;
  opacity: 1;
  transform: none;
  background: #f4f6fa;
  box-shadow: none;
}

.post-container {
  max-width: 780px;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.post-breadcrumb a {
  color: #015ab4;
  text-decoration: none;
}

.post-breadcrumb a:hover { text-decoration: underline; }

.post-header {
  margin-bottom: 1.5rem;
}

.post-category {
  display: inline-block;
  background: #e8f0fe;
  color: #002244;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #002244;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.82rem;
  color: #888;
  flex-wrap: wrap;
  align-items: center;
}

.post-meta svg {
  vertical-align: middle;
  margin-right: 4px;
}

/* Aviso legal */
.post-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #fff8e6;
  border-left: 4px solid #f1c40f;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}

.post-disclaimer svg {
  width: 18px;
  height: 18px;
  stroke: #854f0b;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.post-disclaimer p {
  font-size: 0.85rem;
  color: #854f0b;
  margin: 0;
  line-height: 1.5;
}

/* Contenido del artículo */
.post-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #002244;
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e8f0fe;
}

.post-content h2:first-child { margin-top: 0; }

.post-content p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 4px solid #f1c40f;
  background: #f8faff;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

.post-content blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #002244;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.post-content strong { color: #002244; }

/* CTA del post */
.post-cta {
  background: linear-gradient(135deg, #002244, #015ab4);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.post-cta h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-cta p {
  color: #cce0ff;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.post-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.post-cta .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* Volver al blog */
.post-back { margin-top: 1rem; }

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #015ab4;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.post-back-link:hover { color: #002244; }

.post-back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}


/* ===== SOCIAL BUTTONS — reservado para cuando haya redes oficiales ===== */


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero h2 { font-size: 1.7rem; }

  .post-title { font-size: 1.5rem; }

  .post-content {
    padding: 1.5rem;
  }

  .blog-cta-buttons,
  .post-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .blog-cta-buttons .btn,
  .blog-cta-buttons .btn-outline,
  .post-cta-buttons .btn,
  .post-cta-buttons .btn-outline {
    width: 100%;
  }

  .post-meta {
    gap: 0.6rem;
  }
}
