/* ==========================================================================
   SISTEMA DE DISEÑO PREMIUM - CLÍNICA DENTAL SAUZA
   ========================================================================== */

:root {
  /* Color Palette - User Specified Hexes */
  --base-blue-gray: #AEBAC4;   /* Soft slate blue-gray */
  --base-clinical-blue: #104B83; /* Strong medical blue */
  
  --emphasis-navy: #184E7E;    /* Dark royal / navy blue */
  --emphasis-sky: #4595C6;     /* Bright celestial blue */
  --emphasis-white: #FFFFFF;   /* Pure white */
  
  /* Primary HSL Tokens (for clinical blue) */
  --primary-hue: 209;
  --primary-sat: 78%;
  --primary-light: 29%; 

  /* Light Theme Variables */
  --primary: var(--base-clinical-blue);
  --primary-hover: var(--emphasis-navy);
  
  --accent: var(--emphasis-sky);
  --accent-hover: #337fae; /* slightly darker version of sky blue for hover */
  
  --bg-main: #F2F5F8; /* extremely light blue-white background */
  --bg-card: var(--emphasis-white);
  --bg-light: #E0E7ED; /* soft slate-gray background */
  
  --text-main: #0B2238; /* dark navy for readability */
  --text-muted: #536E85; /* mid-tone slate blue for text */
  --text-light: var(--emphasis-white);
  
  --border: var(--base-blue-gray);
  --shadow-sm: 0 2px 8px rgba(16, 75, 131, 0.06);
  --shadow-md: 0 8px 30px rgba(16, 75, 131, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 75, 131, 0.15);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
  
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(16, 75, 131, 0.08);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --site-width: 1200px;
}

/* Premium Dark Theme Override */
body.dark-theme {
  --bg-main: #071626; /* extremely deep navy blue */
  --bg-card: #0E253C; /* deep slate card background */
  --bg-light: #163654; /* darker slate border/fill */
  
  --text-main: #E7EEF4; /* soft white-blue */
  --text-muted: #A0B4C4; /* soft slate-gray */
  
  --border: #214363;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  --glass-bg: rgba(7, 22, 38, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   RESET & ESTRUCTURA GLOBAL
   ========================================================================== */

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==========================================================================
   COMPONENTES PREMIUM & ENLACES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 57, 53, 0.2);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(207, 166, 97, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

body.dark-theme .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

body.dark-theme .btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg-main);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* TEXT COLOR UTILITIES */
.text-accent {
  color: var(--accent);
}

/* IMAGE PLACEHOLDER STYLES - Left blank as requested, styled beautifully */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(var(--primary-hue), 25%, 90%) 0%, hsl(var(--primary-hue), 20%, 95%) 100%);
  border: 2px dashed hsl(var(--primary-hue), 30%, 80%);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

body.dark-theme .img-placeholder {
  background: linear-gradient(135deg, hsl(var(--primary-hue), 25%, 16%) 0%, hsl(var(--primary-hue), 20%, 20%) 100%);
  border-color: hsl(var(--primary-hue), 20%, 25%);
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

.placeholder-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.7;
}

body.dark-theme .placeholder-icon {
  color: var(--accent);
}

.placeholder-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

#site-header.scrolled {
  padding: 0.4rem 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0.8rem 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 72px;
  width: auto;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
  transition: var(--transition);
}

#site-header.scrolled .logo-img {
  height: 54px;
}

#desktop-menu ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

body.dark-theme .nav-link:hover, body.dark-theme .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

body.dark-theme .nav-link::after {
  background-color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
#theme-toggle {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

body.dark-theme #theme-toggle {
  color: var(--accent);
}

#theme-toggle:hover {
  background-color: var(--bg-light);
}

#theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Burger Button */
#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 6px;
}

#mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

body.dark-theme #mobile-menu-btn span {
  background-color: var(--text-light);
}

#mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Menu Drawer */
#mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 130px 2rem 2rem;
  transition: var(--transition);
}

#mobile-menu-drawer.open {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.mobile-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-main);
}

.mobile-link:hover {
  color: var(--primary);
}

body.dark-theme .mobile-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   HERO / PORTADA SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 180px 0 100px;
  background-color: hsl(var(--primary-hue), 25%, 95%);
  overflow: hidden;
  transition: var(--transition);
}

body.dark-theme .hero-section {
  background-color: hsl(var(--primary-hue), 35%, 6%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 20px;
}

body.dark-theme .hero-title {
  color: var(--text-light);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-image-container {
  height: 480px;
  position: relative;
}

.hero-img-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.hero-img-content:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   QUICK INFO SECTION
   ========================================================================== */

.quick-info-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

body.dark-theme .info-icon {
  color: var(--accent);
}

.info-icon svg {
  width: 28px;
  height: 28px;
}

.info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

body.dark-theme .info-card h3 {
  color: var(--text-light);
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list li span {
  color: var(--text-muted);
}

.schedule-list li.badge {
  background-color: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  justify-content: center;
  margin-top: 8px;
}

body.dark-theme .schedule-list li.badge {
  color: var(--accent);
}

.location-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.info-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

body.dark-theme .info-link {
  color: var(--accent);
}

.info-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section {
  padding: 120px 0;
  background-color: var(--bg-card); /* Crisp White */
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0 16px;
}

body.dark-theme .section-title {
  color: var(--text-light);
}

.header-divider {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.header-divider-left {
  width: 50px;
  height: 4px;
  background-color: var(--accent);
  margin: 16px 0 24px;
  border-radius: 2px;
}

.section-description {
  color: var(--text-muted);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

body.dark-theme .service-card:hover {
  border-color: var(--accent);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

body.dark-theme .service-icon {
  color: var(--accent);
}

.icon-placeholder svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

body.dark-theme .service-card h3 {
  color: var(--text-light);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-more {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

body.dark-theme .service-more {
  color: var(--accent);
}

/* ==========================================================================
   ABOUT / CONÓCENOS SECTION
   ========================================================================== */

.about-section {
  padding: 120px 0;
  background-color: var(--bg-light);
}

.about-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 80px;
}

.about-image-wrapper {
  height: 520px;
}

.about-img-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.about-img-content:hover {
  transform: scale(1.02);
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0 4px;
}

body.dark-theme .about-title {
  color: var(--text-light);
}

.about-specialist {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.about-credentials {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 2rem;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.badge-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

body.dark-theme .badge-number {
  color: var(--accent);
}

.badge-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

body.dark-theme .badge-text {
  color: var(--text-main);
}

/* ==========================================================================
   ADVANTAGES SECTION
   ========================================================================== */

.advantages-section {
  padding: 120px 0;
  background-color: var(--bg-card); /* Crisp White */
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.advantage-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

body.dark-theme .advantage-icon {
  color: var(--accent);
}

.advantage-icon svg {
  width: 32px;
  height: 32px;
}

.advantage-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

body.dark-theme .advantage-card h3 {
  color: var(--text-light);
}

.advantage-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}



/* ==========================================================================
   COMMENTS & TESTIMONIALS SECTION
   ========================================================================== */

.comments-section {
  padding: 120px 0;
  background-color: var(--bg-main); /* Light Blue-Gray */
}

.comments-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}

.comments-feed-area h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.comments-feed-area {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 15px;
}

.comment-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.4s ease;
}

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

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comment-author-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

body.dark-theme .comment-author-info h4 {
  color: var(--text-light);
}

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

.comment-stars {
  color: #ffc107;
  font-size: 0.9rem;
}

.comment-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Review Star Selector styling */
.star-rating-select {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-btn {
  font-size: 1.8rem;
  color: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.star-btn:hover,
.star-btn:hover ~ .star-btn,
.star-btn.active,
.star-btn.active ~ .star-btn {
  color: #ffc107;
}

/* Comments Form Card & Input styling */
.comments-form-area .form-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.comments-form-area .form-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}

body.dark-theme .comments-form-area .form-card h3 {
  color: var(--text-light);
}

.comments-form-area .form-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.dark-theme .form-group label {
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group textarea {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  background-color: var(--bg-main);
  color: var(--text-main);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 75, 131, 0.1);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 149, 198, 0.15);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
  padding: 120px 0;
  background-color: var(--bg-card); /* Crisp White */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-info-area h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

body.dark-theme .contact-info-area h2 {
  color: var(--text-light);
}

.contact-info-area p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.method-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.dark-theme .method-icon {
  color: var(--accent);
}

.method-icon svg {
  width: 24px;
  height: 24px;
}

.method-details h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

body.dark-theme .method-details h4 {
  color: var(--text-light);
}

.method-details p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.method-details a:hover {
  color: var(--primary);
  text-decoration: underline;
}

body.dark-theme .method-details a:hover {
  color: var(--accent);
}

.contact-map-area {
  height: 420px;
}

.google-map-iframe {
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.google-map-iframe:hover {
  box-shadow: var(--shadow-lg), 0 12px 30px rgba(13, 57, 53, 0.12);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--primary); /* Reverted to clinical blue */
  color: var(--text-light); /* Reverted to white text */
  padding: 80px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; /* Rich 4-column layout! */
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img-footer {
  height: 140px; /* Massive footer logo silhouette! */
  width: auto;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
  filter: brightness(0) invert(1); /* Pure solid white logo silhouette */
  opacity: 0.95;
  transition: var(--transition);
}

.logo-img-footer:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* Bullet stars and contact icons inside the rich footer */
.footer-bullet-icon {
  color: var(--accent); /* Accent color star next to link */
  margin-right: 6px;
  font-size: 0.8rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-item-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent); /* Accent sky blue for icons */
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-item-text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

.footer-item-text a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-notes-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-top: 12px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  display: inline-block;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 24px;
  color: var(--accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 4px;
  color: var(--accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-socials a:hover {
  background-color: var(--primary);
  color: var(--text-light);
  opacity: 1;
}

/* ==========================================================================
   MODALES PREMIUM (SERVICIOS Y ÉXITO)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(13, 57, 53, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary);
}

body.dark-theme .modal-close:hover {
  color: var(--accent);
}

.modal-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.modal-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-theme .modal-icon-wrapper {
  color: var(--accent);
}

.modal-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

body.dark-theme .modal-header h3 {
  color: var(--text-light);
}

.modal-tag {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.modal-body {
  margin-bottom: 32px;
}

#modal-service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-highlights h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

#modal-service-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#modal-service-highlights-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

#modal-service-highlights-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* Success Modal override */
.success-card {
  text-align: center;
  max-width: 480px;
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(207, 166, 97, 0.3);
}

.success-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

body.dark-theme .success-header h3 {
  color: var(--text-light);
}

.success-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.success-body {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  margin-bottom: 24px;
  text-align: left;
  border: 1px solid var(--border);
}

.success-body p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.success-body p:last-child {
  margin-bottom: 0;
}

.whatsapp-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ==========================================================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  
  .hero-image-container {
    height: 380px;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrapper {
    height: 380px;
  }
  
  .booking-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-map-area {
    height: 320px;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  #mobile-menu-btn {
    display: flex;
  }
  
  #desktop-menu,
  .btn-cta {
    display: none;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .quick-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .quick-info-section {
    margin-top: -20px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .comments-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .modal-card {
    padding: 2rem;
  }
  
  #modal-service-highlights-list {
    grid-template-columns: 1fr;
  }

  /* Reducción de espacios muertos (paddings) en móvil */
  .hero-section {
    padding: 120px 0 60px;
  }
  
  .services-section,
  .about-section,
  .advantages-section,
  .comments-section,
  .contact-section {
    padding: 60px 0;
  }
  
  .site-footer {
    padding: 40px 0 0;
  }
  
  .section-header {
    margin-bottom: 36px;
  }
  
  .info-card {
    padding: 1.5rem;
  }

  /* Mantener botones de la portada lado a lado en móvil sin deformarse */
  .hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 480px; /* Evita que se estiren demasiado en tablets */
  }

  .hero-buttons .btn-large {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    flex: 1;
    white-space: nowrap;
    justify-content: center;
  }
}

/* ==========================================================================
   BOTÓN VOLVER ARRIBA (BACK TO TOP) - PREMIUM UI
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 99;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .back-to-top-btn {
  background-color: var(--accent);
  color: var(--bg-main);
}

.back-to-top-btn.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.back-to-top-btn svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.back-to-top-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-lg), 0 8px 20px rgba(16, 75, 131, 0.25);
  transform: translateY(-4px);
}

body.dark-theme .back-to-top-btn:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-lg), 0 8px 20px rgba(69, 149, 198, 0.35);
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .back-to-top-btn svg {
    width: 22px;
    height: 22px;
  }
}
