:root {
  --green: #006b4d;
  --green-dark: #0c3b2e;
  --red: #4e073b;
  --wine: #4e073b;
  --wine-alt: #4e073b;
  --gold: #bc955c;
  --ink: #22252a;
  --muted: #667085;
  --line: #e3e6ea;
  --surface: #ffffff;
  --soft: #f6f3ee;
  --focus: #0b7a75;
  --shadow: 0 14px 32px rgba(31, 37, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(45deg, #4e073b 7%, #4e073b 22%, #4e073b 35%, rgb(255, 255, 255) 35%, rgb(255, 255, 255) 89%, #4e073b 89%) center center / 100% 100% no-repeat;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 10px 26px rgba(78, 7, 59, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 180px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
}

.brand strong,
h1,
h2,
h3 {
  font-family: Montserrat, Arial, sans-serif;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 19px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gold);
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: #8b6b35;
}

.hero {
  color: #fff;
  background: var(--wine);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: end;
  gap: 40px;
  min-height: 500px;
  padding: 86px 0 50px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.hero .eyebrow {
  color: #f4d6a3;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font: 800 15px "Source Sans 3", Arial, sans-serif;
  text-decoration: none;
}

.button.primary {
  color: #3a1f06;
  background: var(--gold);
  box-shadow: 0 10px 20px rgba(188, 149, 92, 0.24);
}

.button.secondary {
  color: var(--wine);
  background: #fff;
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.notice {
  padding: 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border-top: 5px solid var(--gold);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.notice h2 {
  font-size: 24px;
}

.notice ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.section {
  padding: 76px 0;
}

.section:nth-of-type(2n + 1) {
  background: var(--soft);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step-card {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: left;
}

.step-media {
  width: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, filter 0.5s ease;
  display: grid;
  align-items: end;
}

.step-card:hover .step-media {
  transform: scale(1.06);
}

.step-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.step-content {
  position: relative;
  z-index: 1;
  padding: 26px;
  color: #fff;
  text-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.step-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.step-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.step-media--1 {
  background-image: url("uploads/paso\ 1.jpg");
}

.step-media--2 {
  background-image: url("uploads/paso\ 2.jpg");
}

.step-media--3 {
  background-image: url("uploads/paso\ 3.jpg");
}

.step-card h3,
.step-card p {
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 0;
  padding: 24px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 10px 24px rgba(31, 37, 45, 0.07);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}

.service-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px;
  border: none;
  background: transparent;
  color: var(--wine);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.service-toggle:hover,
.service-toggle:focus {
  transform: scale(1.02);
  color: var(--gold);
  outline: none;
}

.service-toggle span:first-child {
  flex: 1;
}

.service-toggle .chevron {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(188, 149, 92, 0.12);
  color: var(--wine);
  transition: transform 0.2s ease;
}

.service-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
}

.service-card.expanded .service-content {
  max-height: 360px;
  opacity: 1;
  padding: 12px 18px 18px;
}

.service-description {
  margin: 0 0 14px;
  color: var(--muted);
}

.service-procedure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.procedure-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.procedure-item:first-child {
  border-top: none;
}

.procedure-name {
  color: var(--ink);
  font-weight: 600;
}

.requirements-inline {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--wine);
  font: 700 16px "Source Sans 3", Arial, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.requirements-inline:hover,
.requirements-inline:focus {
  transform: scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(78, 7, 59, 0.12);
}

.requirements-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.requirements-modal-overlay.visible {
  display: flex;
}

.requirements-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 28px 26px;
  position: relative;
}

.requirements-modal h2 {
  margin: 0 0 18px;
  font-size: 24px;
  color: var(--wine);
}

.requirements-body ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  color: var(--ink);
}

.requirements-body li {
  margin-bottom: 10px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--wine);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  background: var(--soft);
}

.service-card h3 {
  color: var(--wine);
  font-size: 17px;
  line-height: 1.2;
}


.service-card p,
.form-intro p,
.consult-layout p,
.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.appointment-band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.appointment-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 104px;
}

.appointment-form,
.lookup {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(22, 34, 51, 0.08);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label,
.lookup label {
  color: #344054;
  font-weight: 800;
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(11, 122, 117, 0.16);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 20px;
  color: var(--muted);
  font-weight: 600;
}

.check-row input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 5px;
}

.submit-button {
  width: 100%;
}

.download-button {
  width: 100%;
  margin-top: 10px;
}

.calendar-picker {
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  padding: 16px;
  background: #fff;
}

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

.calendar-header button {
  background: none;
  border: none;
  color: var(--wine);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: background 0.2s;
}

.calendar-header button:hover {
  background: var(--soft);
}

.calendar-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekday {
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-day.empty {
  cursor: default;
  background: transparent;
}

.calendar-day.available {
  background: var(--green);
  color: #fff;
}

.calendar-day.available:hover:not(:disabled) {
  background: var(--green-dark);
  transform: scale(1.05);
}

.calendar-day.partial {
  background: var(--gold);
  color: #3a1f06;
}

.calendar-day.partial:hover:not(:disabled) {
  background: #a67e47;
  transform: scale(1.05);
}

.calendar-day.unavailable {
  background: var(--red);
  color: #fff;
}

.calendar-day.unavailable:hover:not(:disabled) {
  opacity: 0.8;
}

.calendar-day.selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wine);
}

.form-message {
  min-height: 28px;
  margin: 14px 0 0;
  font-weight: 800;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--red);
}

.consult-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 8px;
}

.lookup-result {
  margin-top: 16px;
  color: var(--muted);
}

.lookup-result strong {
  color: var(--ink);
}

.site-footer {
  padding: 0;
  color: #fff;
  background: var(--wine);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr 1fr;
  gap: 58px;
  padding: 46px 0 70px;
}

.footer-brand {
  padding-top: 4px;
}

.footer-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.site-footer p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-brand p,
.footer-column p,
.footer-column a {
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}

.footer-contact p {
  font-weight: 300;
  line-height: 1.32;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 20px;
}

.footer-column h2 {
  margin: 0 0 4px;
  padding-bottom: 10px;
  color: #fff;
  border-bottom: 4px solid var(--gold);
  font-size: 20px;
  line-height: 1;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 6px;
}

.social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--wine);
  background: #fff;
  border-radius: 50%;
  text-decoration: none;
}

.social-links svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-links a:hover {
  color: var(--wine);
  transform: translateY(-1px);
  text-decoration: none;
}

.copyright {
  padding: 18px 16px;
  color: #fff;
  background: #4d002f;
  text-align: center;
  font-size: 17px;
}

@media (max-width: 900px) {
  .header-inner,
  .main-nav {
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    color: var(--gold);
  }

  .hero-grid,
  .appointment-layout,
  .consult-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 34px;
    padding: 40px 0 50px;
  }

  .hero-grid {
    min-height: auto;
    padding: 70px 0 40px;
  }

  .form-intro {
    position: static;
  }

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

@media (max-width: 620px) {
  .service-grid,
  .steps-grid,
  .field-row,
  .lookup-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .service-grid,
  .steps-grid,
  .field-row,
  .lookup-row {
    grid-template-columns: 1fr;
  }

  .site-header {
    background: linear-gradient(145deg, var(--wine), var(--wine-alt));
  }

  .section {
    padding: 54px 0;
  }

  .appointment-form,
  .lookup,
  .notice {
    padding: 20px;
  }
}
