/*
Theme Name: Dra. Rosangela Arellano
Description: Sitio de ginecología y obstetricia, con diseño adaptable y contacto directo.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: dra-rosangela-arellano
License: GNU General Public License v2 or later
*/
:root {
    --ra-plum: #762065;
    --ra-accent: #92086a;
    --ra-dark: #57134c;
    --ra-blush: #f8f1f5;
    --ra-line: #ddc2d4;
    --ra-ink: #272427;
    --ra-serif: Georgia, "Times New Roman", serif;
    --ra-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ra-ink); background: #fff; font: 1rem/1.5 var(--ra-sans); padding-bottom: 80px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ra-accent); text-underline-offset: .2em; }
a:hover { color: var(--ra-dark); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--ra-serif); line-height: 1.08; font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.1vw, 3.1rem); }
h3 { font-size: 1.25rem; }
p + p { margin-top: .65em; }
svg { width: 24px; height: 24px; flex: none; }
.ra-wrap { width: min(1290px, calc(100% - 36px)); margin-inline: auto; }
.ra-skip { position: fixed; z-index: 50; top: 5px; left: 5px; transform: translateY(-180%); padding: 10px; background: white; }
.ra-skip:focus { transform: none; }
.ra-header { background: #fff; border-bottom: 1px solid #eee6eb; }
.ra-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 20px; padding-block: 10px 4px; }
.ra-brand { display: flex; gap: 7px; align-items: center; text-decoration: none; flex: none; }
.ra-brand img { width: 30px; height: 61px; object-fit: contain; }
.ra-brand > span { font: 400 clamp(1.02rem, 4.4vw, 1.45rem)/1.12 var(--ra-serif); letter-spacing: -.025em; }
.ra-brand small { display: block; font: 400 .64rem/1.4 var(--ra-sans); letter-spacing: 0; margin-top: 3px; }
.custom-logo { width: auto; max-width: 290px; max-height: 65px; object-fit: contain; }
.ra-nav nav { display: flex; width: 100%; justify-content: space-between; gap: 8px; }
.ra-nav nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ra-ink); text-decoration: none; font-size: .83rem; }
.ra-header-cta { display: none !important; }
.ra-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--ra-plum); border-radius: 28px; padding: 11px 23px; background: var(--ra-plum); color: white; text-decoration: none; font-size: .92rem; font-weight: 600; text-align: center; line-height: 1.3; }
.ra-button:hover { background: var(--ra-dark); color: white; }
.ra-outline { background: transparent; color: var(--ra-plum); }
.ra-eyebrow { color: var(--ra-accent); text-transform: uppercase; letter-spacing: .09em; font-size: .73rem; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.ra-hero { background: linear-gradient(115deg, #fcf9fa, #f0e5ec); overflow: hidden; }
.ra-hero-grid { display: grid; }
.ra-hero-copy { padding-block: 32px 22px; }
.ra-hero-copy h1 { margin-bottom: 16px; }
.ra-lead { font-size: clamp(1rem, 1.8vw, 1.4rem); line-height: 1.42; }
.ra-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 22px; }
.ra-phone-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 650; white-space: nowrap; }
.ra-hero-location { margin-top: 24px; padding-top: 11px; border-top: 1px solid var(--ra-line); font-size: .79rem; }
.ra-portrait { position: relative; width: min(88%, 340px); justify-self: center; }
.ra-portrait img { width: 100%; position: relative; z-index: 1; mix-blend-mode: multiply; mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); }
.ra-portrait::before { content: ""; position: absolute; width: 150%; height: 135%; top: 0; left: -20%; border: 12px solid #e4cedd; border-radius: 50%; }
.ra-section { padding-block: 35px; }
.ra-service-grid { display: grid; margin-top: 23px; gap: 0; }
.ra-service { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--ra-line); }
.ra-service > svg { width: 46px; height: 53px; color: var(--ra-accent); }
.ra-service h3, .ra-service h2 { font-size: 1.25rem; font-weight: 600; }
.ra-service p { font-size: .9rem; line-height: 1.4; margin-top: 6px; }
.ra-service a { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; font-size: .87rem; font-weight: 600; }
.ra-hormonal { display: grid; background: linear-gradient(110deg, #791c66, #85216b); color: white; overflow: hidden; }
.ra-hormonal-copy { padding: 28px 18px; }
.ra-hormonal h2 { font-size: clamp(1.65rem, 3vw, 3.1rem); line-height: 1.16; }
.ra-hormonal p { font-size: clamp(1.03rem, 1.9vw, 1.55rem); margin-top: 17px; }
.ra-expert { display: inline-block; margin-top: 22px; border-radius: 32px; background: white; color: var(--ra-plum); font-weight: 700; font-size: .9rem; padding: 11px 20px; }
.ra-hormonal figure { max-height: 350px; overflow: hidden; }
.ra-hormonal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ra-profile { display: grid; gap: 23px; }
.ra-profile > img { width: 180px; height: 155px; object-fit: cover; object-position: 50% 23%; }
.ra-profile h2 { color: var(--ra-accent); margin-bottom: 9px; }
.ra-profile .ra-specialty { margin-bottom: 13px; }
.ra-profile p { max-width: 730px; }
.ra-faq-section { padding-top: 5px; display: grid; gap: 24px; }
.ra-faq details { border-top: 1px solid var(--ra-line); }
.ra-faq details:last-child { border-bottom: 1px solid var(--ra-line); }
.ra-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; min-height: 48px; padding: 8px 0; font-size: .9rem; }
.ra-faq summary::-webkit-details-marker { display: none; }
.ra-faq summary::after { content: "+"; color: var(--ra-plum); font-size: 1.3rem; }
.ra-faq details[open] summary::after { content: "−"; }
.ra-faq details p { padding: 0 12px 15px 0; font-size: .92rem; }
.ra-contact { background: var(--ra-blush); padding-block: 26px 30px; }
.ra-contact h2 { margin-bottom: 20px; }
.ra-contact-grid { display: grid; gap: 18px; align-items: center; }
.ra-contact-grid > .ra-phone-link { font-size: 1.2rem; text-decoration: none; }
.ra-contact address { display: flex; gap: 13px; font-style: normal; line-height: 1.35; font-size: .9rem; }
.ra-contact address svg { color: var(--ra-accent); }
.ra-contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ra-directions { font-size: .9rem; }
.ra-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: 18px 25px; }
.ra-footer .ra-brand img { width: 23px; height: 48px; }
.ra-footer .ra-brand > span { font-size: 1rem; }
.ra-footer .ra-brand small { font-size: .55rem; }
.ra-socials { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 9px; }
.ra-socials > a, .ra-social-pending { min-width: 54px; min-height: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; color: var(--ra-plum); text-decoration: none; }
.ra-socials span span, .ra-socials a span { font-size: .63rem; }
.ra-social-pending { opacity: .55; }
.ra-mobile-contact { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--ra-line); gap: 10px; }
.ra-mobile-contact > a, .ra-mobile-contact > span { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 8px; min-height: 48px; border-radius: 26px; background: var(--ra-plum); color: white; text-decoration: none; font-size: .95rem; font-weight: 650; }
.ra-mobile-contact .ra-wa { background: white; color: var(--ra-plum); border: 1px solid var(--ra-plum); }
.ra-mobile-contact small { font-size: .55rem; font-weight: 400; }
.ra-page-title { margin-block: 32px; }
.ra-service-detail { max-width: 880px; }
.ra-service-detail > a { display: inline-block; margin-bottom: 25px; }
.ra-service-detail h1 { margin-bottom: 25px; }
.ra-service-detail + .ra-contact { margin-top: 18px; }
.ra-content { overflow-wrap: break-word; }
.ra-desktop-break { display: none; }
@media (min-width: 640px) {
    .ra-wrap { width: min(1290px, calc(100% - 9%)); }
    .ra-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
    .ra-profile { grid-template-columns: 25% minmax(0, 1fr); align-items: center; gap: 35px; }
    .ra-profile > img { width: 100%; height: 180px; }
    .ra-profile > div { border-left: 1px solid var(--ra-line); padding-left: 25px; }
    .ra-contact-grid { grid-template-columns: 1fr 1fr; }
    .ra-contact-actions { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .ra-nav { min-height: 86px; flex-wrap: nowrap; justify-content: space-between; padding-block: 5px; gap: 20px; }
    .ra-brand img { width: 33px; height: 68px; }
    .ra-brand > span { font-size: clamp(1.1rem, 1.65vw, 1.55rem); }
    .ra-brand small { font-size: .64rem; }
    .ra-nav nav { width: auto; gap: 26px; margin-left: auto; }
    .ra-header-cta { display: inline-flex !important; min-height: 42px; padding: 9px 20px; white-space: nowrap; font-size: .85rem; }
    .ra-hero-grid { grid-template-columns: 54% 46%; align-items: center; }
    .ra-hero-copy { padding-block: 46px; position: relative; z-index: 2; }
    .ra-eyebrow { font-size: .8rem; }
    .ra-hero .ra-lead { max-width: 560px; }
    .ra-portrait { width: 100%; max-width: 430px; align-self: end; height: 490px; }
    .ra-portrait img { height: 100%; width: 100%; object-fit: cover; object-position: center 15%; }
    .ra-portrait::before { width: 180%; height: 190%; top: -5%; left: -18%; }
    .ra-hero-location { margin-top: 32px; max-width: 560px; }
    .ra-section { padding-block: 36px; }
    .ra-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
    .ra-service { padding: 22px 10px 12px; gap: 20px; }
    .ra-service:not(:nth-child(3n)) { border-right: 1px solid var(--ra-line); }
    .ra-service:nth-child(n+4) { border-bottom: 0; }
    .ra-service > svg { width: 53px; height: 62px; }
    .ra-hormonal { grid-template-columns: 64% 36%; align-items: stretch; position: relative; }
    .ra-hormonal-copy { padding: 38px 20px 38px max(4.5vw, calc((100vw - 1290px) / 2)); position: relative; z-index: 2; }
    .ra-hormonal figure { max-height: none; position: relative; }
    .ra-hormonal figure::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -110px; width: 150px; background: #81206a; border-radius: 0 0 100% 0; transform: rotate(15deg); z-index: 1; }
    .ra-hormonal img { position: absolute; inset: 0; height: 100%; }
    .ra-expert { font-size: 1rem; }
    .ra-profile { grid-template-columns: 27% minmax(0, 1fr); gap: 42px; }
    .ra-profile > img { height: 180px; }
    .ra-profile > div { padding-left: 38px; }
    .ra-faq-section { grid-template-columns: 40% minmax(0, 1fr); align-items: start; gap: 35px; padding-top: 0; }
    .ra-contact-grid { display: flex; gap: 36px; flex-wrap: wrap; }
    .ra-contact address { border-left: 1px solid var(--ra-line); padding-left: 27px; }
    .ra-contact-actions { margin-left: 10px; }
    .ra-mobile-contact { display: none; }
    .ra-footer .ra-brand > span { font-size: 1.1rem; }
}
@media (min-width: 1150px) {
    .ra-desktop-break { display: inline; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
