/* ==========================================================================
   VARIABLES & RESETS
   ========================================================================== */
:root {
  /* Paleta Institucional */
  --bg-dark: #071a2b;       /* Azul marino profundo (Autoridad) */
  --bg-darker: #04101c;
  --bg-light: #f8f9fa;      /* Gris muy claro para secciones */
  --text-main: #333333;     /* Texto principal legible */
  --text-muted: #666666;
  --text-light: #ffffff;
  --accent: #2c5282;        /* Azul corporativo */
  --accent-hover: #1a365d;
  --border-color: #e2e8f0;
  
  /* Tipografía */
  --font-serif: 'Libre Baskerville', serif;
  --font-sans: 'Source Sans 3', sans-serif;
  
  /* Espaciado & Estructura */
  --container-width: 1200px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ==========================================================================
   TIPOGRAFÍA Y UTILIDADES
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
  color: var(--bg-dark);
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.kicker.blue {
  color: var(--accent);
}

.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head.narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: 2.5rem;
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  gap: 0.5rem;
}

.button.primary {
  background-color: var(--accent);
  color: var(--text-light);
  border: 2px solid var(--accent);
}

.button.primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button.outline {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.button.outline:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.button.light-button {
  background-color: var(--text-light);
  color: var(--bg-dark);
  border: 2px solid var(--text-light);
}

.button.light-button:hover {
  background-color: transparent;
  color: var(--text-light);
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(7, 26, 43, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.brand span {
  font-size: 0.75rem;
  letter-spacing: 2px;
  opacity: 0.8;
}

.main-nav {
  display: none; /* Oculto en móvil por defecto */
  gap: 2rem;
}

.main-nav a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.header-contact {
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  display: none; /* Oculto en móvil */
}

.header-contact:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.text-link {
  color: var(--text-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.quick-data {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.quick-data span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-data span::before {
  content: "•";
  color: var(--accent);
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.photo-caption {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background-color: #ffffff;
  color: var(--bg-dark);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.photo-caption strong {
  display: block;
  font-family: var(--font-serif);
}

.photo-caption span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   AUTHORITY STRIP
   ========================================================================== */
.authority-strip {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.authority-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.authority-grid p {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.authority-grid span {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   METODOLOGÍA
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.process-grid article {
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: 4px;
  border-top: 4px solid var(--accent);
  transition: var(--transition);
}

.process-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.process-grid span {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.process-grid h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* ==========================================================================
   ESPECIALIDADES
   ========================================================================== */
.specialties {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.specialties-intro h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.specialties-intro p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.specialty-list {
  display: flex;
  flex-direction: column;
}

.specialty-list article {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.specialty-list article:first-child {
  padding-top: 0;
}

.specialty-list span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.specialty-list h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.specialty-list p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ==========================================================================
   EL ESTUDIO / SOBRE MÍ
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-photo img {
  border-radius: 4px;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin: 1.5rem 0;
}

.about-copy p {
  margin-bottom: 1.5rem;
}

.about-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 4px;
}

.about-data div strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--bg-dark);
  font-size: 1.1rem;
}

.about-data div span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESULTADOS / RESOLUCIONES
   ========================================================================== */
.results {
  background-color: var(--bg-light);
}

.results-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.result-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2rem;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.result-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.result-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.result-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.result-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.result-card small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.view-resolution {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-resolution i {
  font-style: normal;
  transition: transform 0.3s ease;
}

.result-card:hover .view-resolution i {
  transform: translateX(5px) translateY(-5px);
}

.results-footer {
  margin-top: 4rem;
  text-align: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem;
  border-radius: 4px;
}

.results-footer p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* ==========================================================================
   PRENSA
   ========================================================================== */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
}

.press-source {
  display: flex;
  flex-direction: column;
}

.press-source span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.press-source strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--bg-dark);
}

.press-source time {
  font-size: 0.9rem;
  color: var(--accent);
}

.press-copy blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--bg-dark);
}

.press-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.press-actions small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.press-button {
  background-color: #f1f5f9;
  color: var(--bg-dark);
  align-self: flex-start;
}

/* ==========================================================================
   BLOQUE DE URGENCIA
   ========================================================================== */
.urgent-block {
  background-color: #8b0000; /* Rojo oscuro institucional para alerta */
  color: #ffffff;
  padding: 4rem 0;
}

.urgent-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.urgent-inner h2 {
  color: #ffffff;
}

.urgent-inner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.urgent-block .kicker {
  color: #ffbaba;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES
   ========================================================================== */
.faq-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list details {
  background-color: var(--bg-light);
  margin-bottom: 1rem;
  border-radius: 4px;
}

.faq-list summary {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACTO & FOOTER
   ========================================================================== */
.contact {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact p {
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.contact address {
  font-style: normal;
  display: grid;
  gap: 1.5rem;
  background-color: rgba(255,255,255,0.05);
  padding: 2.5rem;
  border-radius: 4px;
}

.contact address div {
  display: flex;
  flex-direction: column;
}

.contact address span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.contact address strong,
.contact address a {
  font-size: 1.1rem;
}

.contact address a:hover {
  text-decoration: underline;
}

footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ==========================================================================
   WHATSAPP WIDGET
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.whatsapp-fab {
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.whatsapp-fab svg {
  width: 35px;
  height: 35px;
}

.whatsapp-popup {
  background-color: #ffffff;
  color: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  width: 280px;
  position: relative;
  display: none; /* Controlado por JS */
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.whatsapp-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}

.whatsapp-popup strong {
  display: block;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.whatsapp-popup span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.whatsapp-popup a {
  display: inline-block;
  background-color: var(--bg-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   MODAL RESOLUCIONES
   ========================================================================== */
.resolution-modal {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  max-width: 800px;
  width: 90%;
  background: #ffffff;
}

.resolution-modal::backdrop {
  background: rgba(7, 26, 43, 0.8);
  backdrop-filter: blur(5px);
}

.resolution-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.resolution-header span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.resolution-header h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.resolution-close {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.resolution-document {
  padding: 2rem;
  background: var(--bg-light);
  display: flex;
  justify-content: center;
}

.resolution-document img {
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-height: 60vh;
  object-fit: contain;
}

.resolution-note {
  padding: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   MEDIA QUERIES (TABLET & DESKTOP)
   ========================================================================== */
@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  
  .process-grid,
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .urgent-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav, .header-contact { display: flex; }
  
  .hero-grid,
  .specialties-grid,
  .about,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .results-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .about-data {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .press-grid {
    grid-template-columns: 250px 1fr;
  }
}