/* ============================================================
   ESTILOCOMUN.CSS
   Estilos compartidos entre:
   sobremi.html, sobrevosotros.html, pide_cita.html
   ============================================================ */

/* ── FOOTER LEGAL ───────────────────────────────────── */
.footer-legal-bar {
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(8px, 2vw, 12px) 20px;
}

.footer-legal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copy-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    font-weight: normal;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #ffffff;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    text-decoration: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.footer-legal-links a:hover   { opacity: 0.8; text-decoration: underline; }

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-legal-bar     { padding: 10px 15px; }
    .footer-legal-content { flex-direction: column; text-align: center; gap: 6px; }
    .footer-legal-links   { justify-content: center; }
}

@media (max-width: 480px) {
    .footer-legal-bar           { padding: 8px 10px; }
    .footer-copy-text           { font-size: 0.7rem; width: 100%; text-align: center; }
    .footer-legal-links         { width: 100%; justify-content: center; gap: 6px; }
    .footer-legal-links a       { font-size: 0.7rem; padding: 2px 0; }
    .footer-legal-links .separator { font-size: 0.7rem; }
}

@media (max-width: 380px) {
    .footer-legal-links a          { font-size: 0.65rem; }
    .footer-legal-links .separator { font-size: 0.65rem; margin: 0 2px; }
    .footer-legal-links            { gap: 4px; }
}

/* Accesibilidad: oculta visualmente pero accesible a lectores de pantalla y Google */
.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;
}

/* ── FOOTER CONTACTO COMPLETO ────────────────────────────
   Clases para el bloque email / WhatsApp / ubicación
   Compartido con sobremi, sobrevosotros, pide_cita
   ──────────────────────────────────────────────────────── */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 25px;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
    margin-block-end: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item:hover { opacity: 0.8; }

.icon-wrapper {
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.email-contact    .icon-wrapper { width: 55px; height: 55px; }
.whatsapp-contact .icon-wrapper { width: 45px; height: 45px; }
.location-contact .icon-wrapper { width: 45px; height: 45px; }

.footer-icon { width: 100%; height: 100%; object-fit: contain; }

.contact-text span {
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

.footer-links { display: flex; gap: 25px; flex-wrap: wrap; }

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover { opacity: 0.8; text-decoration: underline; }

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 20px;
    }
    .location-contact { grid-column: 1 / -1; justify-content: center; }
    .footer-info { flex-direction: column; text-align: center; gap: 12px; }
    .footer-links { justify-content: center; gap: 20px; }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;   /* una columna en móvil */
        gap: 14px;
        padding-inline: 16px;
    }
    .location-contact { grid-column: auto; justify-content: flex-start; }
    .email-contact    .icon-wrapper,
    .whatsapp-contact .icon-wrapper,
    .location-contact .icon-wrapper { width: 36px; height: 36px; }
    .contact-text span { font-size: 0.82rem; }
    .footer-links { gap: 12px; }
    .footer-copy  { font-size: 0.75rem; }
}
