/* Estilos compartidos de las cuatro páginas de Consultorio Plenia. */
:root {
    --navy: #092a58;
    --gold: #d9ad43;
    --blue: #417dae;
    --rose: #b76172;
    --text: #173960;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    background-color: var(--bg, #eff8fd);
    background-image: radial-gradient(ellipse at 4% 3%, #fff9 0, transparent 45%),
    linear-gradient(170deg, transparent 30%, #d9edf670 30.2%, transparent 39%),
    linear-gradient(9deg, #c9e4f080 0%, transparent 15%);
}

.medicine, .home {
    --accent: #427cae;
    --soft: #deeffc;
    --bg: #eff8fd;
}
body.home {
    background-image: url('imagenes/fondoinicio.png'); /* Cambiá el nombre por el de tu imagen real */
    background-size: cover; /* Hace que la imagen cubra toda la pantalla sin deformarse */
    background-position: center top; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita como un mosaico */
    background-attachment: fixed; /* Opcional: hace que el fondo quede fijo cuando bajás con el scroll */
}

.coaching {
    --accent: #ad811e;
    --soft: #fff5d8;
    --bg: #fffbf2;
}

.beauty {
    --accent: #ad5567;
    --soft: #fbe9e9;
    --bg: #fff4f2;
    background-image: linear-gradient(173deg, transparent 27%, #f5d5d570 27.2%, transparent 41%),
                      linear-gradient(12deg, #f5d5d580, transparent 23%);
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2 {
    color: var(--navy);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.65rem, 2.7vw, 2.2rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 14px;
}

p {
    margin-bottom: 18px;
}

p:last-child {
    margin-bottom: 0;
}

.wrap {
    width: min(1120px, calc(100% - 56px));
    margin-inline: auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding-block: 16px 24px;
}

.logo {
    width: 170px;
}

.crop {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.crop img {
    position: absolute;
    max-width: none;
    height: auto;
    display: block;
}

.header nav {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.header nav a {
    font-size: 16px;
    text-decoration: none;
    position: relative;
    padding-block: 12px;
}

.header nav a:hover {
    color: var(--accent);
}

.header nav a[aria-current] {
    font-weight: bold;
}

.header nav a[aria-current]:after {
    content: '';
    position: absolute;
    height: 3px;
    background: var(--accent);
    bottom: 5px;
    left: 0;
    right: 0;
    border-radius: 4px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 55px;
    margin-bottom: 24px;
}

.portrait {
    border-radius: 18px;
    border: 2px solid #fff9;
}

.hero-copy {
    padding: 0 10px;
}

.hero h1 {
    font-size: clamp(3.4rem, 6.8vw, 5.8rem);
    letter-spacing: -.045em;
    margin-bottom: 12px;
}

.eyebrow {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .21em;
    text-transform: uppercase;
    margin: 12px 0 6px;
}

.role {
    font-size: 19px;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-top: 14px;
}

.title-rule {
    width: 130px;
    height: 3px;
    background: var(--accent);
}

.area-dot {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    font-size: 62px;
    font-family: Georgia, serif;
    line-height: 1;
    color: var(--accent);
    background: var(--soft);
    border: 4px solid #ffffffb0;
}

.hero-copy .area-dot {
    width: 110px;
    height: 110px;
}

.script {
    font-family: 'Segoe Print', 'Bradley Hand', cursive;
    font-style: italic;
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
    line-height: 1.25;
    color: var(--accent);
    margin: 25px 0 12px;
}

.insurance {
    background: var(--soft);
    border-radius: 16px;
    padding: 20px 30px;
    font-size: 22px;
    margin-top: 32px;
}

.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    background: #ffffffc9;
    border: 1px solid #fff;
    border-radius: var(--radius);
    padding: 25px;
}

.panel h3 {
    font-family: Georgia, serif;
    font-size: 23px;
    color: var(--navy);
    margin-top: -10px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lead {
    font-size: 22px;
}

.info-line {
    display: flex;
    gap: 20px;
    margin: 22px 0;
}

.info-line > span {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--accent);
}

.info-line p {
    margin: 0 0 5px;
}

.info-line small {
    display: block;
    font-size: 16px;
    line-height: 1.4;
}

.example {
    background: #fff8df;
    border-radius: 15px;
    padding: 18px;
}

.example h3 {
    margin: 0 0 7px;
}

.example p {
    font-size: 18px;
}

.note {
    font-size: 15px;
    line-height: 1.4;
    margin-top: 18px;
}

.schedule {
    background: var(--soft);
    padding: 15px 22px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 20px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--accent);
    color: white;
    border-radius: 16px;
    padding: 16px 22px;
    text-decoration: none;
    text-align: center;
    font-size: 21px;
    line-height: 1.25;
    min-height: 65px;
    transition: filter .15s, transform .15s;
}

.button:hover {
    filter: brightness(.92);
    transform: translateY(-2px);
}

.button > span:last-child {
    font-size: 32px;
}

.whatsapp {
    background: #098c48;
    font-size: 18px;
    font-weight: bold;
}

.phone {
    display: block;
    font-size: 26px;
    font-weight: bold;
    text-decoration: none;
    margin: 12px 0 0;
    text-align: center;
}

.location {
    display: flex;
    align-items: center;
    gap: 24px;
}

.location h2 {
    font-size: 25px;
    margin-bottom: 10px;
}

.location p {
    font-size: 18px;
}

.symbol {
    font-size: 56px;
    color: var(--accent);
}

.map-link {
    margin-left: auto;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 30px;
    background: var(--soft);
    padding: 12px 20px;
    font-size: 16px;
}

.stack .location {
    flex-wrap: wrap;
    gap: 14px;
}

.stack .location .symbol {
    display: none;
}

.calendar {
    background: #fff;
    border: 1px solid #c4dfed;
    border-radius: 13px;
    overflow: hidden;
    margin-top: 15px;
}

.calendar > strong {
    display: block;
    text-align: center;
    background: #c6e3f3;
    padding: 5px;
    color: var(--navy);
}

table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    text-align: center;
}

td, th {
    border: 1px solid #d3e3ea;
    padding: 7px 2px;
    font-size: 16px;
}

td.request {
    background: #ffde3d;
    font-weight: bold;
    border: 2px solid #dc6558;
}

td.available {
    background: #d5f58c;
    font-weight: bold;
}

.topics {
    margin-bottom: 18px;
}

.topics ul {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 0;
}

.topics li {
    font-size: 16px;
    text-align: center;
    line-height: 1.3;
    background: #eaf4fb;
    border-radius: 12px;
    padding: 14px 9px;
}

.topics li:nth-child(6n+2) {
    background: #eef5eb;
}

.topics li:nth-child(6n+3) {
    background: #fcece9;
}

.topics li:nth-child(6n+4) {
    background: #fff6dd;
}

.topics li:nth-child(6n+5) {
    background: #f4ebf6;
}

.topics li span {
    display: block;
    color: var(--accent);
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.closing {
    text-align: center;
    color: var(--navy);
    margin: 30px auto;
}

.footer {
    text-align: center;
    padding: 25px 0 35px;
    color: var(--navy);
}

.footer > a {
    display: inline-block;
    border: 1px solid var(--accent);
    border-radius: 18px;
    padding: 12px 30px;
    text-decoration: none;
}

.home-brand {
    width: min(550px, 80%);
    margin: 22px auto 42px;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.service-card {
    border: 3px solid white;
    border-radius: 25px;
    overflow: hidden;
    background: var(--soft);
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 25px #163e6507;
}

.card-photo {
    width: 100%;
}

.card-body {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    flex: 1;
    position: relative;
    background: var(--soft);
    border-radius: 24px;
    margin-top: -4px;
}

.card-body .area-dot {
    margin-top: -50px;
    z-index: 1;
    margin-bottom: 10px;
}

.card-body h2 {
    text-transform: uppercase;
    font: normal clamp(1.3rem, 1.8vw, 2.2rem) / 1.1 Arial, sans-serif;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: clamp(1.2rem, 2.25vw, 1.8rem);
    font-weight: normal;
    margin-bottom: 15px;
}

.card-body p {
    font-size: 20px;
    min-height: 110px;
}

.card-body .button {
    width: 100%;
    margin-top: auto;
    min-height: 90px;
}

.small-divider {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto;
}

.home .location {
    padding: 25px 35px;
}

.home .location h2 {
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    letter-spacing: .08em;
    font-size: 22px;
}

.treatments {
    display: grid;
    grid-template-columns: 1.05fr .95fr 1fr;
    gap: 12px;
}

.treatment {
    display: flex;
    flex-direction: column;
    border: 2px solid white;
    border-radius: 20px;
    overflow: hidden;
    background: #fbe9e9;
}

.treatment:nth-child(2) {
    background: #f7eddf;
}

.treatment-copy {
    padding: 20px 20px 0;
    flex: 1;
}

.treatment h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 27px;
    margin-bottom: 5px;
}

.treatment-icon {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 55px;
    line-height: 1;
    margin-bottom: 18px;
}

.treatment ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.treatment li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 7px;
}

.treatment li:before {
    content: '♥';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.treatment-photo {
    width: 100%;
    margin-top: auto;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 24px 10px;
    gap: 15px;
    text-align: center;
}

.benefits p {
    margin: 0;
    font-size: 17px;
}

.benefits p + p {
    border-left: 1px solid #d4a2ab;
}

.benefits .script {
    font-size: 27px;
}

.beauty-contact {
    grid-template-columns: 1.1fr 1fr;
}

.beauty-contact .location {
    flex-wrap: wrap;
}

.beauty-contact .symbol {
    display: none;
}

.beauty-contact .map-link {
    margin-left: 0;
}

.beauty .contact .button {
    background: var(--accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: fixed;
    top: -100px;
    background: white;
    padding: 12px;
    z-index: 99;
}

.skip:focus {
    top: 10px;
}

@media (min-width: 1400px) {
    .home-brand {
        width: 450px;
        margin-bottom: 30px;
    }
    .home .wrap {
        max-width: 1050px;
    }
}

@media (max-width: 950px) {
    .header {
        gap: 22px;
    }
    .header nav {
        gap: 16px;
    }
    .header nav a {
        font-size: 15px;
    }
    .logo {
        width: 135px;
    }
    .hero {
        gap: 28px;
    }
    .hero h1 {
        font-size: 4rem;
    }
    .role {
        font-size: 16px;
    }
    .hero-copy .area-dot {
        width: 80px;
        height: 80px;
        font-size: 45px;
    }
    .topics ul {
        grid-template-columns: repeat(3, 1fr);
    }
    .panel {
        padding: 20px;
    }
    .card-body {
        padding: 0 14px 14px;
    }
    .card-body p {
        font-size: 17px;
    }
    .card-body .button {
        font-size: 18px;
    }
    .treatment-copy {
        padding: 18px 12px 0;
    }
    .treatment h2 {
        font-size: 23px;
    }
    .treatment li {
        font-size: 16px;
    }
    .home .location {
        flex-wrap: wrap;
    }
    .home .map-link {
        margin-left: 0;
    }
}

/* Ocultar botones del menú móvil en PC */
.menu-toggle, .close-menu {
    display: none;
}
@media (max-width: 680px) {
    body {
        font-size: 16px;
    }
    .wrap {
        width: calc(100% - 20px);
    }

/* --- 1. ENCABEZADO: Logo al centro y botón a la derecha --- */
    .header {
        flex-direction: row; /* Mantiene todo en una línea */
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        position: relative;
    }
    
    .logo-link {
        margin: 0 auto !important; 
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Centra el logo de forma absoluta */
    }
    
    .main-logo, .logo-img {
        max-width: 150px !important;
        margin: 0;
    }

    /* Botón de 3 líneas */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        margin-left: auto; /* Empuja el botón a la derecha */
        z-index: 10;
    }

    /* --- 2. MENÚ LATERAL DESPLEGABLE --- */
    .header nav {
        position: fixed;
        top: 0;
        right: -100%; /* Se esconde fuera de la pantalla hacia la derecha */
        width: 260px; /* Ancho del panel */
        height: 100vh;
        background-color: var(--navy); /* Azul oscuro corporativo */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px 0;
        gap: 0;
        transition: right 0.3s ease-in-out; /* Animación de deslizamiento */
        z-index: 9999;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        margin: 0;
        border-radius: 0;
    }

    /* Clase que se activa con JavaScript al tocar el botón */
    .header nav.open {
        right: 0; 
    }

    /* Botón cerrar "X" */
    .close-menu {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 26px;
        cursor: pointer;
        align-self: flex-end; /* Lo pone a la derecha */
        margin-right: 25px;
        margin-bottom: 30px;
    }

    /* Estilo de los enlaces adentro del menú */
    .header nav a {
        color: white;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Línea separadora sutil */
        width: 100%;
        padding: 18px 30px;
        text-align: left;
        font-size: 16px;
        border-radius: 0;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* Estilo de la página activa adentro del menú */
    .header nav a[aria-current] {
        background-color: var(--gold); /* Usa el dorado oficial de Plenia */
        color: var(--navy); /* Letra en azul marino para contrastar */
    }
    
    .header nav a[aria-current]:after {
        display: none;
    }
    
    /* Efecto al tocar o pasar el mouse por los enlaces (opcional pero recomendado) */
    .header nav a:hover {
        background-color: rgba(255, 255, 255, 0.1); 
    }
    .header nav a[aria-current]:hover {
        background-color: var(--gold); /* Mantiene el dorado en el elemento activo */
    }

    /* --- 3. ARREGLO DE LA PÁGINA DE MEDICINA/COACHING/COSMETOLOGÍA --- */
    .hero {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 0;
        text-align: center;
    }
    .portrait {
        width: 60%; /* Achicamos la foto para que no ocupe toda la pantalla */
        max-width: 250px;
        margin: 0 auto;
    }
    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }
    .hero-copy .area-dot {
        display: flex; /* Restauramos el círculo del ícono */
        width: 70px;
        height: 70px;
        margin-top: -35px; /* Lo superpone con la foto */
        margin-bottom: 10px;
        z-index: 2;
    }
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }
    .hero h1 br {
        display: none; /* Fuerza el nombre a una sola línea si es posible */
    }
    .title-rule {
        margin-inline: auto;
    }
    .role {
        font-size: 16px;
        margin-top: 10px;
    }
    .insurance {
        margin-top: 15px;
        padding: 12px;
        font-size: 18px;
    }

    /* --- 4. ARREGLOS DE LAS TARJETAS DE INICIO Y RESTO DEL SITIO --- */
    .services {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .card-body h2 {
        font-size: 24px;
    }
    .card-body h3 {
        font-size: 20px;
    }
    .card-body .area-dot {
        width: 70px;
        height: 70px;
        margin-top: -35px;
    }
    .card-body .button {
        font-size: 18px;
        min-height: 60px;
    }
    .columns, .beauty-contact {
        grid-template-columns: 1fr;
    }
    .home .location {
        padding: 22px;
        gap: 15px;
        flex-wrap: wrap;
    }
    .location .symbol {
        display: none;
    }
    .location p {
        font-size: 16px;
    }
    .topics ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .topics li {
        font-size: 15px;
    }
    .treatments {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .treatment-copy {
        padding: 20px 20px 0;
    }
    .treatment h2 {
        font-size: 24px;
    }
    .treatment li {
        font-size: 16px;
    }
    .benefits {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding-block: 25px;
    }
    .benefits p:nth-child(3) {
        border: 0;
    }
    .phone {
        font-size: 22px;
    }
    .footer {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .button {
        transition: none;
    }
}

/* Estilos para el logo en la página de inicio */
/* Estilos para el logo en la página de inicio */
.home-header {
    text-align: center;
    padding-top: 20px; /* Reducido para que no baje tanto */
    margin-bottom: 10px; /* Reducido para acercar las tarjetas */
}

.main-logo {
    max-width: 350px; 
    width: 85%; 
    height: auto;
}

/* Ajustes para las fotos superiores de las tarjetas */
.card-photo img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 309 / 329; /* Mantiene la proporción rectangular de la foto */
    object-fit: cover; /* Evita que la foto se estire o se deforme */
}

/* Ajustes para los nuevos íconos de imagen dentro de los círculos */
.service-icon {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin deformarse */
    border-radius: 50%; /* Recorta las esquinas de la imagen para que sea perfectamente circular */
    display: block;
}
/* Asegura que el enlace de la foto ocupe todo el espacio correctamente */
.card-photo a {
    display: block;
    width: 100%;
}
.card-photo a:hover {
    opacity: 0.95; /* Da un sutil efecto visual al pasar el mouse por la foto */
}
/* Ajuste para el nuevo ícono de imagen en la ubicación */
.symbol img {
    width: 45px; /* Podés subir o bajar este número para cambiar el tamaño del ícono */
    height: auto;
    display: block;
}

/* Ajustes para el logo en las páginas internas (Medicina, Coaching, etc.) */
.logo-link {
    margin-top: 18px; /* Ajustá este número para subir o bajar el logo */
    margin-left: 180px; /* Ajustá este número para moverlo hacia el centro */
}

.logo-img {
    max-width: 180px;
    height: auto;
    display: block;
}