:root {
  --primary: #8b0000;
  --primary-dark: #6f0000;
  --secondary: #ffffff;
  --background: #f9f9f9;
  --text: #2c2c2c;
  --muted: #666666;
  --border: #e8e8e8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: var(--secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--primary);
  color: var(--secondary);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--secondary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Exo", sans-serif;
  font-weight: 700;
  color: var(--primary);
  min-width: max-content;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--secondary);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.logo-text {
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 12px;
  font-weight: 500;
}

.nav-list a {
  font-size: 0.95rem;
}

.nav-list a {
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.nav-list a:focus,
.nav-list a:hover {
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 26px;
  height: 2px;
  background: var(--primary);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(139, 0, 0, 0.08);
}

.hero {
  position: relative;
  background-image: linear-gradient(
      120deg,
      rgba(25, 10, 12, 0.7) 0%,
      rgba(25, 10, 12, 0.45) 45%,
      rgba(25, 10, 12, 0.68) 100%
    ),
    url("https://cheerful-clinicasaudecomamor.wordpress.com/wp-content/uploads/2025/04/img_20240823_132442-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 78px 0 58px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: minmax(280px, 760px);
}

.hero-text h1 {
  font-family: "Exo", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: var(--shadow);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px);
}

.btn.secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.hero-highlights {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #ffffff;
}

.hero-highlights i {
  color: #ffd6d6;
  margin-right: 8px;
}

.hero .btn.secondary {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 38px;
}

.section-heading h2,
.section h2 {
  font-family: "Exo", sans-serif;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.section-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.about {
  background: var(--background);
}

.about-card {
  background: var(--secondary);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card h3 {
  margin-bottom: 14px;
  color: var(--primary);
}

.about-card ul {
  display: grid;
  gap: 10px;
}

.services {
  background: var(--secondary);
}

.cards-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.specialties-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  background: var(--secondary);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.specialty-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.specialty-title i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.card ul {
  display: grid;
  gap: 7px;
  list-style: disc;
  padding-left: 18px;
}

.quote {
  background: #faf6f6;
  text-align: center;
}

.quote blockquote {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 500;
  color: var(--primary);
  max-width: 880px;
  margin: 0 auto 12px;
}

.quote p {
  color: var(--muted);
}

.mission {
  background: var(--background);
}

.mission-content {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.gallery {
  background: var(--secondary);
}

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.structure-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  min-height: 120px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, #fff3f3, #ffffff);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  padding: 12px;
}

.structure-item-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.structure-item-title i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
}

.contact {
  background: var(--background);
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.contact-list a {
  color: var(--primary);
  font-weight: 600;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 300px;
}

.map-wrapper iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
}

.privacy {
  background: var(--secondary);
}

.privacy-content {
  max-width: 940px;
}

.privacy-content ul {
  margin: 18px 0;
  display: grid;
  gap: 8px;
  list-style: disc;
  padding-left: 20px;
}

.site-footer {
  background: #1a1a1a;
  color: #f2f2f2;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 30px;
}

.footer-grid .logo {
  color: #fff;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  background: #111111;
  font-size: 0.9rem;
}

.privacy-discreet-link {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.privacy-discreet-link:hover,
.privacy-discreet-link:focus {
  color: #ffffff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 0, 0, 0.1);
  color: var(--primary);
  align-items: center;
  justify-content: center;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.whatsapp-float i {
  font-size: 1.55rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 120;
}

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

.modal-overlay {
  position: absolute;
  inset: 0;
}

.modal-dialog {
  position: relative;
  width: min(92vw, 560px);
  max-height: 90vh;
  background: var(--secondary);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  overflow: auto;
  z-index: 1;
}

.modal-dialog h2 {
  font-family: "Exo", sans-serif;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--muted);
  margin-bottom: 22px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(139, 0, 0, 0.08);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.appointment-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row.double {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.appointment-form label {
  font-weight: 600;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  font-family: inherit;
  font-size: 0.95rem;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: 2px solid rgba(139, 0, 0, 0.2);
  border-color: var(--primary);
}

.appointment-form textarea {
  resize: vertical;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}

.check-label input {
  margin-top: 3px;
}

.check-label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-status {
  min-height: 20px;
  font-size: 0.95rem;
  color: var(--primary);
}

.form-status.error {
  color: #b00020;
}

.form-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 360px;
  background: var(--primary);
  color: var(--secondary);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 140;
}

.form-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #1e1e1e;
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 130;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.privacy-page {
  min-height: 100vh;
  background: var(--background);
}

.privacy-page .privacy-content {
  padding: 84px 0;
}

.privacy-card {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 34px);
}

.privacy-card ul {
  margin: 18px 0;
  display: grid;
  gap: 8px;
  list-style: disc;
  padding-left: 20px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-social {
    margin-left: auto;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    box-shadow: var(--shadow);
    border-radius: 0 0 16px 16px;
    min-width: 210px;
    max-width: 80vw;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s ease;
  }

  .nav-list.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

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

  .structure-grid {
    grid-template-columns: 1fr;
  }

  .form-row.double {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 10px;
  }

  .logo-text {
    font-size: 0.92rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }

  .header-social {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 48px;
    background-position: 64% center;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .form-toast {
    left: 16px;
    right: 16px;
    max-width: unset;
  }

  .modal-dialog {
    max-height: 84vh;
  }
}

@media (max-width: 1080px) and (min-width: 721px) {
  .specialties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 20px, var(--max-width));
  }

  .card,
  .about-card,
  .modal-dialog {
    padding-left: 18px;
    padding-right: 18px;
  }
}