:root {
  --bg: #ffffff;
  --surface: #f8f9fb;
  --primary: #1ed7c0;
  --primary-dark: #0f9f87;
  --muted: #6b7280;
  --text: #1a202c;
  --accent: #0ea5e9;
  --accent-secondary: #0ea5e9;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img,
a img {
  max-width: 100%;
  display: block;
  outline: none;
  border: none;
}

a,
a:focus,
a:active {
  color: inherit;
  text-decoration: none;
  outline: none;
}

a:focus-visible {
  outline: 2px dashed rgba(0, 148, 208, 0.9);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(30, 215, 192, 0.1);
  transition: box-shadow 0.3s ease;
}

.site-header.has-scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.brand-tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.brand-doctor {
  margin: 0.5rem 0 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}


.page-body {
  padding-top: 0;
}


.hero {
  position: relative;
  background: linear-gradient(135deg, #1ed7c0 0%, #0ea5e9 100%);
  color: white;
  padding: 4rem 0 5rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-carousel-inner {
  position: relative;
  min-height: 500px;
  width: 100%;
  max-width: 700px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: grid;
  align-content: center;
  justify-items: start;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 500px;
  margin: 1.5rem 0 2.5rem;
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  position: relative;
  z-index: 5;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.cta,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.secondary-btn:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255,255,255,0.5);
}

/* Remover: .hero-image no se usa */
.hero-image {
  display: none;
}

/* Remover: .benefit-grid no se usa en home.php */
/* Remover: estilos de .main-nav y .menu-toggle (menú removido) */

.services,
.benefits,
.contact-section,
.not-found,
.page-header,
.map {
  padding: 5rem 0;
}

.section-header,
.contact-card,
.service-grid,
.reviews-grid,
.site-footer {
  display: grid;
}

.container > .services,
.container > .benefits,
.container > .contact-section {
  padding: 0;
  margin: 4rem 0;
}

.section-header {
  gap: 1rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

.section-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.service-grid,
.benefit-grid,
.reviews-grid {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, 280px);
}

.contact-grid {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, 280px);
  align-items: start;
}

/* Centrar grillas solo cuando hay espacio para 4+ columnas */
@media (min-width: 1280px) {
  .service-grid,
  .benefit-grid,
  .reviews-grid,
  .contact-grid {
    justify-content: center;
  }
}

.service-card,
.benefit-grid article,
.contact-card,
.review-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background-color 0.4s ease;
  border: 1px solid rgba(30, 215, 192, 0.1);
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.benefit-grid article:hover,
.contact-card:hover,
.review-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-md);
  background-color: rgba(30, 215, 192, 0.02);
}

.service-card h3,
.benefit-grid h3,
.contact-card h3,
.review-card .review-author {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

.review-author {
  margin-top: auto;
  font-weight: 700;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

.service-maps {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.service-maps h3,
.service-maps p {
  color: white;
}

.contact-section {
  margin: 5rem 0 0;
  background: linear-gradient(180deg, rgba(30, 215, 192, 0.02) 0%, transparent 100%);
  padding: 5rem 0;
}

.map-container {
  margin: 2.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 215, 192, 0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hours {
  margin: 0.75rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: linear-gradient(135deg, var(--text) 0%, #2d3748 100%);
  color: rgba(255,255,255,0.9);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.reviews-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 215, 192, 0.02) 100%);
}

.reviews-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.review-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  border: 1px solid rgba(30, 215, 192, 0.1);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-md);
}

.review-rating {
  margin-bottom: 1rem;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.review-text {
  margin: 1rem 0 auto;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

.review-author {
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

.reviews-cta {
  text-align: center;
}

.reviews-cta p {
  color: var(--muted);
  margin-bottom: 1rem;
}

@media (max-width: 1200px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .hero {
    padding: 2.5rem 0 4rem;
  }
}

@media (max-width: 880px) {
  .header-inner {
    justify-content: center;
  }
  .service-grid,
  .benefit-grid,
  .contact-grid,
  .reviews-grid {
    grid-template-columns: 280px;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding: 3rem 0 4rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0 3rem;
    min-height: auto;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .service-card,
  .benefit-grid article,
  .contact-card {
    padding: 2rem;
  }
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  .service-grid,
  .benefit-grid,
  .contact-grid,
  .reviews-grid {
    grid-template-columns: 280px;
  }
}
