/* Estilo Premium - Arquetipo B: Reticular & Estructurado */

/* Importar tipografías de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* Variables de Diseño (Design Tokens) */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Paleta Técnica - Salud Premium */
  --bg-primary: #FCFDFD;
  --bg-secondary: #F8FAFC;
  --bg-dark: #0F172A;
  
  --border-color: rgba(15, 23, 42, 0.08); /* Rejilla de 1px */
  --border-color-active: #0D9488;
  
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  
  --accent: #0D9488; /* Teal Clínico */
  --accent-hover: #0F766E;
  --accent-light: #F0FDFA;
  
  --wpp-color: #25D366;
  --wpp-hover: #20BA5A;
  --urgent-color: #DC2626;
  --urgent-hover: #B91C1C;
}

/* Reset y Estilos Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* Espacio para la sticky bottom bar */
}

/* Tipografía de Autor */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Layout Reticular de 1px */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.border-grid {
  border: 1px solid var(--border-color);
}

.border-b-grid {
  border-bottom: 1px solid var(--border-color);
}

.border-r-grid {
  border-right: 1px solid var(--border-color);
}

.container-custom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container-custom {
    padding: 0 1rem;
  }
}

/* Header */
header {
  background-color: rgba(252, 253, 253, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  list-style: none;
  height: 100%;
}

.nav-links li {
  height: 100%;
  border-left: 1px solid var(--border-color);
}

.nav-links li:last-child {
  border-right: 1px solid var(--border-color);
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  height: 100%;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background-color: var(--bg-secondary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border: none;
}

.header-cta:hover {
  background-color: var(--accent);
}

@media (max-width: 992px) {
  .nav-links {
    display: none; /* Simplificado para móviles en landing simple */
  }
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(80vh - 80px);
  align-items: stretch;
}

.hero-content {
  padding: 5rem 4rem 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-image-container {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border-color);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--bg-dark);
  color: white;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 280px;
}

.hero-badge-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-badge-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-image-container {
    height: 350px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

/* Buscador en Hero */
.hero-search-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  max-width: 550px;
}

.hero-search-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.search-input-wrapper {
  display: flex;
  position: relative;
}

.search-input-wrapper input {
  flex-grow: 1;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: white;
  color: var(--text-dark);
  transition: border-color 0.2s ease;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrapper input {
  padding-left: 2.5rem;
}

.clean-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-btn:hover {
  color: var(--text-dark);
}

/* Secciones Generales */
.section-padding {
  padding: 7rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

.section-header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.section-header-left {
  max-width: 600px;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  line-height: 1.2;
}

.section-header-side {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid de Tratamientos (Arquetipo B) */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .treatments-grid {
    grid-template-columns: 1fr;
  }
}

.treatment-card {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-card:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-hover);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

/* Buscador Coberturas Expandida */
.coberturas-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  min-height: 150px;
}

@media (max-width: 992px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

.staff-card {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.staff-card:hover {
  background-color: var(--bg-secondary);
}

.staff-img-wrapper {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: #E2E8F0;
  border: 1px solid var(--border-color);
}

.staff-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transition: transform 0.4s ease;
}

.staff-card:hover .staff-img {
  transform: scale(1.03);
}

.staff-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.staff-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.staff-license {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  display: block;
}

/* Tecnologia & Confianza */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.tech-info {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.tech-item {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.tech-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tech-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tech-visual {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .tech-split {
    grid-template-columns: 1fr;
  }
  .tech-info {
    padding: 2.5rem;
  }
  .tech-visual {
    padding: 2.5rem;
    border-left: none;
    border-top: 1px solid var(--border-color);
    min-height: 300px;
  }
}

/* FAQs Acordeón (Arquetipo B: Técnico, bordes limpios) */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-accordion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.faq-accordion:hover {
  background-color: var(--bg-secondary);
  color: var(--accent);
}

.accordion-icon {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1rem;
}

.faq-panel p {
  padding-bottom: 1.5rem;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Ubicación y footer */
.location-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-top: 1px solid var(--border-color);
}

.location-info {
  padding: 4rem;
  border-right: 1px solid var(--border-color);
}

.info-row {
  margin-bottom: 2rem;
}

.info-row-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.info-row-content {
  font-size: 1rem;
  color: var(--text-dark);
}

.map-wrapper {
  height: 100%;
  min-height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) contrast(1.1) opacity(0.9); /* Integración técnica */
}

@media (max-width: 992px) {
  .location-section {
    grid-template-columns: 1fr;
  }
  .location-info {
    padding: 2.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .map-wrapper {
    min-height: 300px;
  }
}

footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Sticky Contact Bar (Reemplaza botón flotante de WhatsApp según el Arquetipo B) */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  height: 70px;
}

.sticky-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: stretch;
}

.sticky-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.sticky-item:last-child {
  border-right: none;
}

.sticky-info {
  justify-content: flex-start;
  padding-left: 2rem;
}

.sticky-info-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sticky-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.sticky-info-wrapper {
  display: flex;
  flex-direction: column;
}

.sticky-wpp-turno {
  background-color: var(--wpp-color);
  color: white;
}

.sticky-wpp-turno:hover {
  background-color: var(--wpp-hover);
}

.sticky-wpp-urgent {
  background-color: var(--urgent-color);
  color: white;
}

.sticky-wpp-urgent:hover {
  background-color: var(--urgent-hover);
}

@media (max-width: 768px) {
  .sticky-container {
    grid-template-columns: 1fr 1fr;
  }
  .sticky-info {
    display: none; /* Ocultar datos fijos en móvil, priorizar botones de WhatsApp */
  }
}

.gap-wpp-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Clases de utilidad para SVGs (compatibilidad con clases tipo Tailwind en Vanilla CSS) */
.w-3 {
  width: 0.75rem;
  height: 0.75rem;
}
.h-3 {
  height: 0.75rem;
}
.w-4 {
  width: 1rem;
  height: 1rem;
}
.h-4 {
  height: 1rem;
}
.w-5 {
  width: 1.25rem;
  height: 1.25rem;
}
.h-5 {
  height: 1.25rem;
}
.w-8 {
  width: 2rem;
  height: 2rem;
}
.h-8 {
  height: 2rem;
}
.fill-current {
  fill: currentColor;
}
svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
