:root {
  --navy: #1d2b46;
  --navy-deep: #122034;
  --slate: #4f5e73;
  --sky: #edf3f9;
  --mist: #f6f8fb;
  --teal: #6aa38a;
  --teal-dark: #4b7b65;
  --mint: #8ed0b2;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(23, 41, 63, 0.12);
  --shadow-card: 0 12px 30px rgba(23, 41, 63, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, #eef2f7 0%, #f7f9fc 45%, #eef2f7 100%);
  min-height: 100vh;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 70px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 30px;
}

.section-head p {
  margin: 0;
  color: var(--slate);
}

.site-header {
  background: #e9eef5;
  border-bottom: 1px solid #d9e2ee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  color: var(--navy);
}

.brand strong {
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #8fd0b3, #6aa38a);
  box-shadow: 0 10px 20px rgba(106, 163, 138, 0.3);
  color: #fff;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  color: var(--slate);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--navy);
}

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

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e4f0ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex: 0 0 auto;
}

.icon-circle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.button {
  border: 1px solid #d4deeb;
  background: #e9eff7;
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.button-primary {
  background: var(--teal);
  color: #fff;
  border: none;
  box-shadow: 0 12px 24px rgba(106, 163, 138, 0.35);
}

.button-outline {
  background: transparent;
  border: 1px solid #c6d4e4;
  color: var(--navy);
}

.button-ghost {
  background: #eff4f9;
  color: var(--navy);
  border: none;
}

.hero {
  background: linear-gradient(120deg, #e7eef6 0%, #f7f9fc 40%, #eef3f8 100%);
  padding: 60px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 12px;
}

.hero-title {
  margin: 0 0 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 44px;
  line-height: 1.15;
}

.hero-text {
  margin: 0 0 24px;
  color: var(--slate);
  font-size: 16px;
  max-width: 420px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  min-width: 280px;
  flex: 1 1 280px;
}

.input {
  border: 1px solid #dfe7f2;
  outline: none;
  font-size: 14px;
  background: var(--white);
  width: 100%;
  color: var(--navy);
  padding: 12px 14px;
  border-radius: 12px;
}

.input-icon {
  width: 20px;
  height: 20px;
  color: #9fb1c6;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.input-group .input {
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hero-filters {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--slate);
}

.hero-filters label {
  font-weight: 600;
}

.hero-filters .input {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #dfe7f2;
  min-width: 220px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-frame {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 420px;
  width: 100%;
}

.hero-figure {
  position: relative;
  height: 320px;
  border-radius: 22px;
  background: linear-gradient(135deg, #dce7f3 0%, #f5f7fb 60%);
  overflow: hidden;
}

.hero-figure::before {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(143, 208, 179, 0.6), rgba(111, 160, 214, 0.4));
  filter: blur(0.5px);
}

.hero-plus {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(160deg, #7ec9a8, #6aa38a);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(106, 163, 138, 0.4);
}

.hero-pill {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffffff, #d9e6f4);
  box-shadow: 0 10px 22px rgba(23, 41, 63, 0.1);
}

.hero-pill-one {
  width: 110px;
  height: 40px;
  right: 40px;
  top: 70px;
}

.hero-pill-two {
  width: 130px;
  height: 44px;
  right: 90px;
  bottom: 60px;
}

.hero-card-mini {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 14px 26px rgba(23, 41, 63, 0.15);
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(160deg, #7ec9a8, #6aa38a);
}

.hero-card-lines span {
  display: block;
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f2;
  margin-bottom: 6px;
}

.hero-card-lines span:last-child {
  width: 60px;
  margin-bottom: 0;
}

.hero-caption {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--slate);
  font-size: 14px;
}

.hero-caption strong {
  font-size: 24px;
  color: var(--navy);
}

.section-featured {
  background: #f5f7fb;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pharmacy-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pharmacy-thumb {
  height: 150px;
  background: #e4ebf5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 36px;
}

.pharmacy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pharmacy-body {
  padding: 16px 16px 20px;
  display: grid;
  gap: 12px;
}

.pharmacy-title {
  margin: 0;
  font-size: 18px;
}

.pharmacy-region {
  margin: -4px 0 0;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 13px;
}

.pharmacy-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--slate);
  font-size: 13px;
}

.pharmacy-meta li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pharmacy-link {
  font-weight: 600;
  color: var(--teal-dark);
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

.section-benefits {
  background: #eef2f7;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: grid;
  gap: 12px;
}

.benefit-card h3 {
  margin: 0;
  font-size: 18px;
}

.benefit-card p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #e7f2ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--teal-dark);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.section-cta-banner {
  background: linear-gradient(120deg, #dfe9f4, #eef3f8 60%, #dfe9f4);
  position: relative;
  overflow: hidden;
}

.section-cta-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 60px;
  background: rgba(142, 208, 178, 0.3);
}

.cta-inner {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.cta-inner h2 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
}

.cta-inner p {
  margin: 0;
  color: var(--slate);
}

.section-contact {
  background: #f6f8fb;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}

.contact-card strong {
  display: block;
  color: var(--navy);
}

.contact-card span {
  color: var(--slate);
  font-size: 13px;
}

.site-footer {
  background: var(--navy-deep);
  color: #d9e3ef;
  padding: 60px 0 20px;
}

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

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: #d9e3ef;
}

.footer-brand p {
  margin: 12px 0 0;
  color: #c3d0de;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
}

.footer-contact-line {
  font-size: 14px;
}

.footer-text {
  margin: 0 0 14px;
  color: #c3d0de;
  font-size: 14px;
  line-height: 1.6;
}

.footer-cta {
  font-weight: 700;
}

.footer-list {
  color: #c3d0de;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #b4c3d4;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.not-found-actions {
  justify-content: center;
  margin-top: 18px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-row .input {
  min-width: 220px;
}

.thumb img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.farmacia-single .thumb img {
  height: 420px;
  object-fit: cover;
}

.farmacia-single {
  display: grid;
  gap: 24px;
}

.farmacia-actions {
  margin-top: 18px;
}

.farmacia-map-card {
  overflow: hidden;
}

.farmacia-map {
  margin-top: 16px;
}

.farmacia-map .leaflet-container {
  border-radius: var(--radius-sm);
}

.submit-hero {
  background: linear-gradient(120deg, #e7eef6 0%, #f7f9fc 48%, #e8f2ed 100%);
  padding: 58px 0 42px;
}

.submit-hero-inner {
  max-width: 760px;
}

.submit-layout {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 24px;
  align-items: start;
}

.submit-panel,
.submit-form-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.submit-panel {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.submit-panel h2,
.submit-panel p {
  margin: 0;
}

.submit-panel h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
}

.submit-panel p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}

.submit-form-card {
  padding: 24px;
}

.farmacia-submit-form {
  display: grid;
  gap: 22px;
}

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

.form-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

.form-field label span {
  color: var(--teal-dark);
}

.form-field textarea.input {
  min-height: 96px;
  resize: vertical;
}

.input-file {
  padding: 10px;
}

.input-file::file-selector-button {
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  margin-right: 12px;
  padding: 10px 14px;
}

.form-help {
  color: var(--slate);
  font-size: 12px;
  line-height: 1.45;
}

.form-error {
  color: #b42318;
  font-weight: 600;
  font-size: 12px;
}

.form-notice {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 4px;
  line-height: 1.45;
}

.form-notice-success {
  background: #e7f4ee;
  color: var(--teal-dark);
  border: 1px solid #c8e4d7;
}

.form-notice-error {
  background: #fff0ed;
  color: #9f2a1d;
  border: 1px solid #ffd3cb;
}

.form-notice-warning {
  background: #fff8e6;
  color: #8a5b00;
  border: 1px solid #f5d48a;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 24px;
  align-items: start;
}

.contact-panel,
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.contact-panel {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.contact-panel h2,
.contact-panel p {
  margin: 0;
}

.contact-panel h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
}

.contact-panel p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}

.contact-info-list {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid #e7edf5;
  display: grid;
  gap: 10px;
  color: var(--slate);
  font-size: 14px;
}

.contact-info-list li {
  position: relative;
  padding-left: 18px;
}

.contact-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.contact-form-card {
  padding: 24px;
}

.contact-form-card .wpcf7 form {
  display: grid;
  gap: 18px;
}

.contact-form-card .wpcf7 p {
  margin: 0;
}

.contact-form-card .wpcf7 label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

.contact-form-card .wpcf7 input:not([type="submit"]),
.contact-form-card .wpcf7 textarea,
.contact-form-card .wpcf7 select {
  border: 1px solid #dfe7f2;
  outline: none;
  font: inherit;
  background: var(--white);
  width: 100%;
  color: var(--navy);
  padding: 12px 14px;
  border-radius: 12px;
}

.contact-form-card .wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-card .wpcf7 input[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 13px 22px;
  box-shadow: var(--shadow-card);
}

.contact-form-card .wpcf7 input[type="submit"]:hover {
  background: var(--teal-dark);
}

.contact-form-card .wpcf7-not-valid-tip {
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.contact-form-card .wpcf7-response-output {
  border-radius: var(--radius-sm);
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.rp-toast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 45px rgba(18, 32, 52, 0.18);
  display: grid;
  gap: 4px;
  line-height: 1.45;
  padding: 16px 18px;
  animation: rp-toast-in 0.28s ease-out both;
}

.rp-toast strong {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
}

.rp-toast span {
  font-size: 14px;
}

.rp-toast-success {
  background: #e7f4ee;
  border: 1px solid #c8e4d7;
  color: var(--teal-dark);
}

.rp-toast.is-hiding {
  animation: rp-toast-out 0.35s ease-in both;
}

@keyframes rp-toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rp-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.empty-state {
  margin: 0;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--slate);
}

@media (max-width: 960px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .nav-list {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 36px;
  }

  .submit-layout,
  .contact-page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 50px 0;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: 30px;
  }

  .site-nav .nav-list {
    gap: 14px;
  }

  .pharmacy-thumb {
    height: 140px;
  }

  .submit-form-card,
  .submit-panel,
  .contact-form-card,
  .contact-panel {
    padding: 18px;
  }

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

  .form-actions .button {
    width: 100%;
  }

  .rp-toast {
    left: 16px;
    right: 16px;
    top: 16px;
    width: auto;
  }
}
