/*
Theme Name: Clinica Razzari
Theme URI: https://example.com/clinica-razzari
Author: Codex
Author URI: https://openai.com
Description: Tema completo para WordPress inspirado en la identidad visual de Clinica Razzari, con portada responsive, formulario de solicitud de turno y buenas practicas de accesibilidad WCAG 2.2.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clinica-razzari
Tags: custom-logo, custom-menu, featured-images, one-column, accessibility-ready
*/

:root {
  --color-teal: #007d9a;
  --color-teal-dark: #006175;
  --color-olive: #929d61;
  --color-olive-dark: #748044;
  --color-ink: #275968;
  --color-muted: #687476;
  --color-panel: #f1f4f4;
  --color-line: #dce4e3;
  --color-white: #ffffff;
  --shadow-soft: 0 10px 28px rgba(15, 62, 76, 0.08);
  --font-main: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.55;
  background: var(--color-white);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--color-teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-teal-dark);
}

:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 4px;
}

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

.float-wa{
        position:fixed;
        width:60px;
        height:60px;
        bottom:40px;
        right:40px;
        background-color:#25d366;
        color:#FFF;
        border-radius:50px;
        text-align:center;
        font-size:30px;
        z-index:100;
    }
.float-wa:hover {
    background-color: #07d152;
}

.obras-sociales{
    padding:20px 20px;
    background:#f8f8f8;
}

.obras-sociales h2{
    text-align:center;
    margin-bottom:40px;
    margin-top: 40px;
}

.obras-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    max-width:1200px;
    margin:0 auto;
}

.obra-item{
    background:#fff;
    border-radius:12px;
    padding:8px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    font-weight:500;
}

.header-grid{
    display:grid;
    grid-template-columns:320px 1fr;
    grid-template-rows:40px 60px;
    width:100%;
    align-items:center;
}

.columna-izquierda{
    grid-row:1 / 3;
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.fila-superior{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding-bottom:0px;
}

.fila-inferior{
    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #123943;
  background: #ffffff;
  border: 3px solid #f2c94c;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 2px 16px rgba(20, 70, 84, 0.08);
}

.site-header__inner {
  display: grid;
  align-items: center;
  min-height: 100px;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 8px 26px 10px;
  gap: clamp(14px, 2.2vw, 28px);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  color: var(--color-teal);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__logo,
.custom-logo {
  display: block;
  width: clamp(220px, 24vw, 242px);
  max-width: 100%;
  height: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--color-teal);
  background: transparent;
  border: 2px solid var(--color-line);
  border-radius: 4px;
  cursor: pointer;
}

.site-header__actions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  align-self: center;
  justify-self: end;
}

.site-navigation {
  grid-area: nav;
  align-self: center;
  justify-self: end;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -8px;
}

.menu-toggle__bars::after {
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(8px) rotate(90deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  opacity: 0;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(9px, 1.45vw, 17px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.15rem 0.1rem;
  font-size: clamp(0.9rem, 0.82vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  color: var(--color-teal);
}

.primary-menu .menu-cta {
  display: none;
}

.button,
.header-cta,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.62rem 0.95rem;
  color: #ffffff;
  font: 700 0.82rem/1 var(--font-main);
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--color-olive);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.button:hover,
.header-cta:hover,
button:hover,
input[type="submit"]:hover {
  color: #ffffff;
  background: var(--color-olive-dark);
}

.section {
  padding: clamp(46px, 6.2vw, 72px) 28px;
}

.section--soft {
  background: var(--color-panel);
}

.section__inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.section__title {
  margin: 0 0 14px;
  color: var(--color-teal);
  font-size: clamp(1.45rem, 2.55vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.section__title span,
.accent {
  color: var(--color-olive);
}

.section__title2 {
  margin: 0 0 24px;
  color: rgb(255, 255, 255);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.section__title2 span,
.accent {
  color: var(--color-olive);
}

.lead {
  max-width: 860px;
  margin: 0 auto 28px;
  color: var(--color-muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.45;
  text-align: center;
}

.copy {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  text-align: center;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(430px, 53vw, 610px);
  align-items: end;
  color: #ffffff;
  background: #0f3942;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 47, 56, 0.7) 0%, rgba(10, 47, 56, 0.22) 58%, rgba(10, 47, 56, 0.42) 100%);
}

.hero__inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 28px 58px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.16;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
}

.split h2 {
  margin: 0 0 8px;
  color: var(--color-teal);
  font-size: clamp(1.18rem, 1.9vw, 1.58rem);
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-transform: uppercase;
}

.split p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.split__media img {
  width: 100%;
  aspect-ratio: 2.08 / 1;
  object-fit: cover;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 58px;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  min-height: 110px;
  padding: 22px 16px 18px;
  color: #ffffff;
  background: var(--color-teal);
  border-bottom: 9px solid var(--color-olive);
}

.specialty-card h2,
.specialty-card h3 {
  display: flex;
  align-items: end;
  min-height: 2.6em;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
}

.specialty-card p {
  padding-top: 11px;
  margin: auto 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  width: min(900px, 100%);
  margin: 42px auto 0;
}

.team-card {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 0.96;
  background: linear-gradient(180deg, #f8fbfb 0%, #e7eeee 100%);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  padding: 7px 6px 6px;
  color: #ffffff;
  height: 39px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  background: var(--color-teal);
}

.team-card__role {
  padding: 4px 6px 6px;
  color: #ffffff;
  font-size: 0.58rem;
  background: var(--color-olive);
}

.residents {
  margin-top: 34px;
  text-align: center;
}

.residents h3 {
  margin: 0 0 18px;
  color: var(--color-olive);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.resident-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: min(800px, 100%);
  padding: 0;
  margin: 0 auto 0;
  list-style: none;
}

.resident-list li {
  color: #ffffff;
  background: var(--color-teal);
  border-top: 10px solid var(--color-olive);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  min-height: 58px;
  padding: 7px 8px 8px;
  text-transform: uppercase;
}

.resident-list small {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: none;
}

.slogan {
  color: var(--color-teal);
  font-size: clamp(1.0rem, 5vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.slogan strong {
  font-weight: 700;
}

.center-actions {
  display: grid;
  justify-items: center;
  text-align: center;
}

.contact-box {
  width: min(740px, 100%);
  margin: 0 auto;
  background: #f2f4f3;
}

.contact-box__title {
  padding: 20px 22px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  background: var(--color-teal);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 42px;
  padding: 48px 54px 34px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  color: #193f4a;
  font: 600 1rem/1.3 var(--font-main);
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 0;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-teal);
  outline: 3px solid rgba(242, 201, 76, 0.6);
}

.contact-form__full {
  grid-column: 1 / -1;
}

.contact-form__actions {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
}

.form-message {
  width: min(740px, 100%);
  margin: 0 auto 18px;
  padding: 14px 18px;
  color: #173f49;
  background: #e6f3ef;
  border-left: 6px solid var(--color-olive);
}

.site-footer {
  color: #ffffff;
  background: var(--color-teal);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(980px, 100%);
  min-height: 195px;
  margin: 0 auto;
  padding: 34px 28px;
}

.footer-address {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.footer-brand {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.footer-meta {
  text-align: right;
}

.wp-block-image img,
.entry-content img {
  height: auto;
}

.entry-content {
  width: min(900px, calc(100% - 56px));
  margin: 56px auto;
}

.page-hero {
  padding: clamp(74px, 10vw, 118px) 28px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(20, 94, 114, 0.94), rgba(36, 123, 147, 0.86)), var(--page-image, none) center / cover no-repeat;
}

.page-hero__inner,
.page-section__inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.page-section {
  padding: clamp(52px, 7vw, 82px) 28px;
}

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

.info-card {
  min-height: 190px;
  padding: 26px 22px;
  color: var(--color-muted);
  background: #ffffff;
  border-top: 9px solid var(--color-teal);
  box-shadow: var(--shadow-soft);
}

.info-card h2,
.info-card h3 {
  margin: 0 0 12px;
  color: var(--color-teal);
  font-size: 1.25rem;
  line-height: 1.18;
  text-transform: uppercase;
}

.info-card p,
.info-card ul {
  margin: 0;
}

.info-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li {
  padding: 16px 18px;
  background: var(--color-panel);
  border-left: 7px solid var(--color-olive-dark);
}

.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
}

.page-copy h2 {
  margin: 0 0 18px;
  color: var(--color-teal);
  font-size: clamp(1.22rem, 2.1vw, 1.72rem);
  letter-spacing: 0.04em;
  line-height: 1.18;
  text-transform: uppercase;
}

.page-copy p {
  margin: 0 0 18px;
}

.page-panel {
  padding: 26px;
  background: var(--color-panel);
  border-top: 9px solid var(--color-olive);
}

.page-panel h2,
.page-panel h3 {
  margin: 0 0 14px;
  color: var(--color-teal);
  font-size: 1.18rem;
  line-height: 1.18;
  text-transform: uppercase;
}

.page-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 1.1rem;
  margin: 0;
}

.cta-band {
  padding: clamp(42px, 6vw, 64px) 28px;
  text-align: center;
  background: #ffffff;
}

.cta-band__inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 18px;
  color: var(--color-teal);
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header__inner {
    /* grid-template-columns: auto 1fr;
    grid-template-areas: "brand actions";*/
    min-height: 86px;
    padding: 0 20px;
  }

  .brand {
    grid-row: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    grid-area: auto;
    position: fixed;
    top: 86px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 24px 24px 40px;
    background: #ffffff;
    border-top: 1px solid var(--color-line);
    overflow-y: auto;
  }

  .site-header__actions {
    justify-self: end;
    align-self: center;
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu,
  .primary-menu ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-menu a {
    display: block;
    min-height: 48px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--color-line);
  }

  .split,
  .page-split,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .split__media {
    order: -1;
  }

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

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

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

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

  .footer-address,
  .footer-meta {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .brand__logo,
  .custom-logo {
    width: 184px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0.66rem 0.82rem;
    font-size: 0.72rem;
  }

  .specialty-grid,
  .team-grid,
  .resident-list,
  .contact-form,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 22px 28px;
  }

  .site-footer__inner {
    min-height: 0;
  }
}

@media (max-width: 460px) {
  .site-header__inner {
    gap: 12px;
  }

  .brand__logo,
  .custom-logo {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
