/*
    Risum - Estilos personalizados
    Complementa el tema Hyperspace (HTML5 UP)
*/

/* ─── Landing page contacto.html ─── */

/* Header mínimo */
.landing-header {
    display: flex;
    align-items: center;
    padding: 1em 2em;
}

.landing-logo {
    height: 48px;
    width: auto;
    display: block;
}

.landing-back {
    margin-left: auto;
    font-size: 0.85em;
    opacity: 0.7;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.landing-back:hover {
    opacity: 1;
}

/* Hero con imagen de fondo */
#landing-hero {
    background-image: url('../images/portada-risum.webp');
    background-size: cover;
    background-position: center top;
    position: relative;
}

#landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 36, 43, 0.72);
    z-index: 0;
}

#landing-hero .inner {
    position: relative;
    z-index: 1;
}

#landing-hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.4em;
}

#landing-hero p {
    font-size: 1.1em;
    opacity: 0.85;
    margin-bottom: 2em;
}

/* Botón grande en hero */
.button.large {
    font-size: 1.15em;
    padding: 0.75em 2em;
}

@media (max-width: 736px) {
    #landing-hero h1 {
        font-size: 1.75em;
    }
    .landing-logo {
        height: 36px;
    }
}

/* ─── Skip to content (accesibilidad) ─── */

.skip-link {
    position: absolute;
    top: -50px;
    left: 1em;
    background: #212931;
    color: #ffffff;
    padding: 0.5em 1em;
    border: 2px solid #ffffff;
    border-radius: 0 0 4px 4px;
    font-size: 0.875em;
    text-decoration: none;
    z-index: 99999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ─── Botón flotante de WhatsApp ─── */

.whatsapp-float {
    position: fixed;
    bottom: 2em;
    right: 2em;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.whatsapp-float::after {
    content: 'Agendar hora';
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.8em;
    white-space: nowrap;
    padding: 0.35em 0.75em;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

.whatsapp-float::before {
    font-family: 'Font Awesome 5 Brands';
    content: '\f232';
    font-size: 1.75em;
    color: #ffffff;
    line-height: 1;
    font-weight: 400;
}

/* ─── Google Maps embed ─── */

.map-embed {
    margin-top: 2.5em;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-embed iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}

/* ─── Horario de atención ─── */

.business-hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3em 1.25em;
    margin: 0;
    font-size: 0.95em;
}

.business-hours dt {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.business-hours dd {
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Foto de la doctora (generic.html) ─── */

#main .split .image.fit img {
    border-radius: 6px;
    object-fit: cover;
    object-position: top center;
}

/* ─── Formulario de contacto ─── */

.form-feedback {
    margin-top: 0.75em;
    font-size: 0.9em;
    min-height: 1.4em;
}

.form-feedback.success {
    color: #6ec97a;
}

.form-feedback.error {
    color: #e07070;
}

/* ─── Sección de reseñas / testimonios ─── */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5em 1.75em;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.testimonial-stars {
    color: #f5c518;
    font-size: 1.2em;
    letter-spacing: 0.05em;
}

.testimonial-card blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95em;
    line-height: 1.6;
}

.testimonial-card blockquote p {
    margin: 0 0 0.6em;
}

.testimonial-card blockquote footer {
    font-style: normal;
    font-size: 0.88em;
    opacity: 0.65;
}

.testimonial-card blockquote cite {
    font-style: normal;
    font-weight: 600;
}

/* Separación de la lista de acciones bajo testimonios */
.testimonials-actions {
    margin-top: 2em;
}

/* ─── Accesibilidad: foco visible para navegación con teclado ─── */

:focus-visible {
    outline: 2px solid #9bf1ff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Suprimir outline por defecto solo cuando no se navega con teclado */
:focus:not(:focus-visible) {
    outline: none;
}

/* ─── Responsive: ocultar botón WA en mobile si es muy intrusivo ─── */

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1.25em;
        right: 1.25em;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float::before {
        font-size: 1.5em;
    }
}
