/* ==========================================================================
   STYLE-V2.CSS - Sistema de Diseño Premium de SIPPE Centro Multidisciplinario
   ========================================================================== */

/* VARIABLES DE DISEÑO CORPORATIVO HSL */
:root {
  --primary: #2b5c47;         /* Verde bosque principal */
  --primary-hover: #1e4232;
  --primary-light: #f1f6f3;
  
  --accent-rose: #c86a7a;      /* Rosa Terapia Familiar */
  --accent-rose-hover: #b45b6a;
  --accent-rose-light: #fdf1f2;
  
  --accent-yellow: #d6a129;    /* Amarillo Evaluaciones */
  --accent-yellow-hover: #be8e20;
  --accent-yellow-light: #fefcf3;
  
  --accent-blue: #4b709c;      /* Azul Habla y Lenguaje */
  --accent-blue-hover: #3d5b80;
  --accent-blue-light: #f4f7fa;
  
  --text: #2d3748;
  --text-muted: #64748b;
  --bg-light: #f7f9fa;
  
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px rgba(43, 92, 71, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ESTILOS BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

/* CONTENEDOR PRINCIPAL */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ELEGANTE HEADER STICKY */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  gap: 16px;
}
.logo img {
  max-height: 60px;
  width: auto;
  display: block;
  max-width: 100%;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}
nav a:hover {
  color: var(--primary);
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(43, 92, 71, 0.15);
  transition: var(--transition);
}
.btn-header:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 92, 71, 0.25);
}
.btn-header svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* HERO SECTION PREMIUM */
.hero {
  padding: 60px 0 100px 0;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(241, 246, 243, 0.8) 0%, rgba(255, 255, 255, 1) 90%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-image-container {
  min-width: 0;
}
.hero-badge {
  display: inline-flex;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #17382a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(43, 92, 71, 0.15);
  transition: var(--transition);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(43, 92, 71, 0.25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  color: var(--text);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  background-color: #ffffff;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  border-top: 1px solid #edf2f7;
  padding-top: 32px;
  width: 100%;
  justify-content: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.hero-image-container {
  position: relative;
}
.hero-img-wrap {
  border-radius: 30px 100px 30px 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  aspect-ratio: 1.15;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.hero-img-wrap:hover img {
  transform: scale(1.05);
}

.phone-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 16px 28px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  border: 1px solid #f1f5f9;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}
.phone-icon-wrap {
  width: 46px;
  height: 46px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.phone-info-text span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.phone-info-text a {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.phone-info-text a:hover {
  color: var(--primary);
}

/* SECCIÓN DE SERVICIOS */
.services {
  padding: 100px 0;
  background-color: #ffffff;
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
}
.section-title-wrap h2 {
  font-size: 36px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title-wrap h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}
.service-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.08);
}
.service-icon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 2;
}

.card-green .service-icon-badge { background-color: var(--primary); }
.card-rose .service-icon-badge { background-color: var(--accent-rose); }
.card-yellow .service-icon-badge { background-color: var(--accent-yellow); }
.card-blue .service-icon-badge { background-color: var(--accent-blue); }

.service-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}
.service-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
  text-align: center;
}
.card-green h3 { color: var(--primary); }
.card-rose h3 { color: var(--accent-rose); }
.card-yellow h3 { color: var(--accent-yellow); }
.card-blue h3 { color: var(--accent-blue); }

.service-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.service-info ul {
  list-style-type: none !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.btn-service {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  width: 100%;
  border: 1px solid currentColor;
}
.btn-service:hover {
  border-color: transparent;
}
.card-green .btn-service { background-color: var(--primary-light); color: var(--primary); }
.card-green .btn-service:hover { background-color: var(--primary); color: #ffffff; }

.card-rose .btn-service { background-color: var(--accent-rose-light); color: var(--accent-rose); }
.card-rose .btn-service:hover { background-color: var(--accent-rose); color: #ffffff; }

.card-yellow .btn-service { background-color: var(--accent-yellow-light); color: var(--accent-yellow); }
.card-yellow .btn-service:hover { background-color: var(--accent-yellow); color: #ffffff; }

.card-blue .btn-service { background-color: var(--accent-blue-light); color: var(--accent-blue); }
.card-blue .btn-service:hover { background-color: var(--accent-blue); color: #ffffff; }

/* SECCIÓN PROCESO */
.process {
  padding: 100px 0;
  background-color: var(--bg-light);
}
.process-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.process-content h2 {
  font-size: 36px;
  margin-bottom: 48px;
  font-weight: 800;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  height: 100%;
  width: 2px;
  border-left: 2px dashed #cbd5e1;
  z-index: 1;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  font-size: 16px;
}
.step-text h4 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.step-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.process-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  aspect-ratio: 1.2;
}
.process-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SECCIÓN CONFIANZA */
.why-choose {
  padding: 80px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #edf2f7;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-card {
  text-align: center;
  padding: 10px;
}
.why-icon {
  width: 54px;
  height: 54px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why-icon svg {
  width: 24px;
  height: 24px;
}
.why-card h4 {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

/* FOOTER Y CONTACTO */
.contact-footer {
  padding: 80px 0 40px 0;
  background-color: var(--bg-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 60px;
}
.info-box {
  background-color: var(--primary);
  color: #ffffff;
  padding: 40px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(43, 92, 71, 0.15);
}
.info-box h3 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 24px;
  line-height: 1.3;
}
.info-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-link-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}
.info-link-item svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
  flex-shrink: 0;
  opacity: 0.9;
}
.info-link-item a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}
.info-link-item a:hover {
  opacity: 0.8;
}

.clinic-photo-card {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  position: relative;
  background-color: #ffffff;
  align-self: center;
}
.clinic-photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.clinic-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.clinic-title-top {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 0;
  margin-bottom: 16px;
  display: block;
}

.map-preview-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.map-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.map-header-icon {
  color: #e53e3e;
  flex-shrink: 0;
}
.map-header-icon svg {
  width: 24px;
  height: 24px;
}
.map-header-text h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}
.map-header-text p {
  font-size: 12px;
  color: var(--text-muted);
}
.map-iframe-container {
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  margin-bottom: 20px;
}
.btn-directions {
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  display: block;
}
.btn-directions:hover {
  background-color: var(--primary-hover);
}

.bottom-cta-bar {
  background-color: #f1f6f3;
  padding: 20px 40px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2ece7;
}
.bottom-cta-text {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bottom-cta-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-cta-icon svg {
  width: 20px;
  height: 20px;
}
.bottom-cta-text h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 2px;
}
.bottom-cta-text p {
  font-size: 13px;
  color: var(--text-muted);
}
.btn-bottom-cta {
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(43, 92, 71, 0.15);
}
.btn-bottom-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.copyright-wrap {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #edf2f7;
  font-size: 13px;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid, .process-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .header-wrap {
    height: 80px;
  }
  .logo {
    min-width: 0;
  }
  .logo img {
    max-height: 52px;
  }
  nav {
    display: none;
  }
  .hero {
    padding: 36px 0 72px 0;
  }
  .hero-content {
    text-align: center;
  }
  .hero-badge {
    margin: 0 auto 20px auto;
  }
  .hero h1 {
    font-size: 36px;
    margin-bottom: 18px;
  }
  .hero-p {
    font-size: 16px;
    margin: 0 auto 28px auto;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
  }
  .btn-primary,
  .btn-outline {
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
  }
  .hero-trust {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }
  .trust-item {
    justify-content: center;
    text-align: center;
  }
  .hero-image-container {
    width: 100%;
  }
  .hero-img-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .services-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  .bottom-cta-bar {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 24px;
  }
  .bottom-cta-text {
    flex-direction: column;
  }
  .btn-bottom-cta {
    width: 100%;
    text-align: center;
  }
  .form-card {
    padding: 24px 20px;
  }
  .info-card-wrap {
    padding: 24px;
  }
  .internal-grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 540px;
    margin: 0 auto;
  }
  .internal-hero {
    padding: 50px 0 !important;
  }
  .internal-hero h1 {
    font-size: 30px !important;
  }
  .internal-hero p {
    font-size: 15px !important;
    padding: 0 10px;
  }
  .internal-content {
    padding: 40px 0 !important;
  }
  .cf-turnstile {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }
}

/* ==========================================================================
   ESTILOS DE CONTENIDO ADICIONAL PARA PÁGINAS INTERNAS
   ========================================================================== */
.internal-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #17382a 100%);
  color: #ffffff;
  text-align: center;
}
.internal-hero h1 {
  color: #ffffff;
  font-size: 44px;
  margin-bottom: 12px;
}
.internal-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.internal-content {
  padding: 80px 0;
}
.internal-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}
@media (max-width: 900px) {
  .internal-grid-2 {
    grid-template-columns: 1fr;
  }
}

.article-content h3 {
  font-size: 24px;
  margin: 32px 0 16px 0;
}
.article-content p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.8;
}
.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
  color: var(--text-muted);
}
.article-content li {
  margin-bottom: 8px;
}

/* FORM STYLES PREMIUM */
.form-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid #edf2f7;
}
.info-card-wrap {
  padding: 40px;
}
.form-group {
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 92, 71, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.btn-submit {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(43, 92, 71, 0.15);
}
.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* MENÚ HAMBURGUESA MÓVIL Y OVERLAY INTERACTIVO */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.mobile-menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  header {
    z-index: 1010; /* Eleva el header y sus elementos (incluido nav) por sobre el nav-overlay (990) */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #ffffff !important;
  }
  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
    touch-action: manipulation;
  }
  nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    max-width: 100%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    padding: 100px 30px 40px 30px;
    gap: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    align-items: flex-start !important;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
  }
  nav.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }
  nav a {
    font-size: 18px !important;
    font-weight: 600 !important;
    width: 100%;
    padding: 8px 0;
  }
  nav .btn-header {
    margin-top: 15px;
    justify-content: center;
    width: 100%;
    padding: 14px 20px !important;
  }
  
  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 990;
  }
  .nav-overlay.open {
    display: block;
  }
  
  /* Animación hamburguesa activa */
  .mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- OPTIMIZACIÓN DE NAVEGACIÓN Y SCROLL SUAVE --- */
html {
  scroll-behavior: smooth;
}
#servicios {
  scroll-margin-top: 110px; /* Compensa la altura del menú sticky */
}

/* --- WIDGET DE CONTACTO FLOTANTE DUAL (OPCIÓN A) --- */
.floating-contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 980;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 10px 8px 16px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-contact-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(43, 92, 71, 0.12);
  background: rgba(255, 255, 255, 0.85);
}
.widget-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.widget-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.widget-btn svg {
  transition: transform 0.2s ease;
}
.widget-btn:hover {
  transform: scale(1.1);
}
.widget-btn:hover svg {
  transform: scale(1.05);
}
.btn-call {
  background-color: var(--primary);
}
.btn-call:hover {
  background-color: var(--primary-hover);
}
.btn-whatsapp {
  background-color: #25D366;
}
.btn-whatsapp:hover {
  background-color: #20ba5a;
}

/* Adaptación móvil para evitar tapar información vital */
@media (max-width: 480px) {
  .floating-contact-widget {
    bottom: 16px;
    right: 16px;
    padding: 6px 6px 6px 12px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .widget-label {
    font-size: 12px;
  }
  .widget-btn {
    width: 34px;
    height: 34px;
  }
}

/* SOPORTE NATIVO Y ADAPTATIVO PARA MODO OSCURO (PREFERS-COLOR-SCHEME: DARK) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4fa87f;          /* Verde más brillante y suave */
    --primary-hover: #3d8664;
    --primary-light: rgba(79, 168, 127, 0.15);    /* Fondo de contenedor verde oscuro */
    
    --accent-rose: #d67a8b;      /* Rosa suave */
    --accent-rose-hover: #c06575;
    --accent-rose-light: rgba(214, 122, 139, 0.15);
    
    --accent-yellow: #e5ab37;    /* Amarillo suave */
    --accent-yellow-hover: #cc972e;
    --accent-yellow-light: rgba(229, 171, 55, 0.15);
    
    --accent-blue: #648bb9;      /* Azul suave */
    --accent-blue-hover: #51739c;
    --accent-blue-light: rgba(100, 139, 185, 0.15);
    
    --text: #e2e8f0;             /* Texto claro */
    --text-muted: #94a3b8;       /* Texto atenuado claro */
    --bg-light: #0f172a;         /* Fondo alterno oscuro */
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 40px rgba(43, 92, 71, 0.3);
  }

  body {
    background-color: #0b0f19;   /* Fondo general oscuro */
    color: var(--text);
  }

  header {
    background-color: rgba(11, 15, 25, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #1e293b;
  }

  /* Evitar que el logo blanco desaparezca o contraste demasiado */
  .logo img {
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.15));
  }

  /* Tarjetas y Contenedores */
  .service-card, 
  .form-card, 
  .clinic-photo-card,
  .phone-overlay,
  .why-choose-card {
    background-color: #172033 !important;
    border-color: #243049 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  }

  /* Estilos específicos de texto en Modo Oscuro */
  .why-choose, .services, .hero {
    background: #0b0f19 !important;
  }
  
  .hero {
    background: radial-gradient(circle at 10% 20%, rgba(22, 36, 29, 0.8) 0%, rgba(11, 15, 25, 1) 90%) !important;
  }

  .process {
    background-color: #0f172a !important;
  }

  .timeline::before {
    border-left-color: #334155;
  }

  .step-number {
    background-color: #172033;
    border-color: var(--primary);
    color: var(--primary);
  }

  .styled-hr {
    border-color: #1e293b;
  }

  /* Botones y Controles */
  .btn-outline {
    background-color: #172033;
    border-color: #334155;
    color: var(--text);
  }
  
  .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  .form-control {
    background-color: #0f172a;
    border-color: #334155;
    color: var(--text);
  }

  .form-control:focus {
    border-color: var(--primary);
    background-color: #0b0f19;
  }

  /* Widget de contacto flotante */
  .floating-contact-widget {
    background: rgba(23, 32, 51, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  .floating-contact-widget:hover {
    background: rgba(23, 32, 51, 0.95);
  }

  /* Corrección de contrastes en textos e iconos */
  .info-link-item a {
    color: var(--text) !important;
  }
  .info-link-item a:hover {
    color: var(--primary) !important;
  }
  
  /* Ajuste de inline cream color en acerca-de-nosotros.html */
  div[style*="background-color: #fcfbf5"] {
    background-color: var(--accent-yellow-light) !important;
    border-color: var(--accent-yellow) !important;
  }

  /* Asegurar contraste en botones de servicio en modo oscuro */
  .btn-service {
    border: 1px solid currentColor !important;
  }
  .btn-service:hover {
    border-color: transparent !important;
  }

  /* Fondo de menú móvil en modo oscuro */
  @media (max-width: 768px) {
    header {
      background-color: #0b0f19 !important;
    }
    nav {
      background-color: #111a2e !important;
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    }
  }
}
