/* ===========================
   PERFIL PÚBLICO - VISTA DESKTOP
   =========================== */
@media (min-width: 992px) {

    /* Centrar contenido y darle respiro */
    .site-main {
        max-width: 1100px;
        margin: 20px auto 40px;
    }

    .profile-header-card .profile-header {
        display: grid;
        grid-template-columns: 160px minmax(0, 1.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 24px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
        font-size: 32px;
    }

    .profile-main h2 {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .profile-specialty {
        font-size: 16px;
    }

    .profile-cedula {
        font-size: 13px;
    }

    .profile-tags {
        margin-top: 6px;
    }

    .profile-actions {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border-radius: 18px;
        background: #f5faf9;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

    .profile-actions .btn-primary,
    .profile-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .profile-info-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
        align-items: flex-start;
        gap: 24px;
    }

    .profile-info-grid h3 {
        font-size: 18px;
    }

    .profile-info-grid p {
        font-size: 14px;
        line-height: 1.55;
    }

    .clinic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .clinic-card {
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 13px;
    }

    .clinic-card h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .clinic-address,
    .clinic-contact {
        font-size: 13px;
    }

    .clinic-map iframe {
        height: 210px;
        border-radius: 12px;
    }
}

/* Chips / etiquetas para servicios y enfermedades */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #c7ebe7;
    background: #f4fbfa;
    color: #0b756c;
    white-space: nowrap;
}

.chip-servicio {
    background: #e6fbf7;
    border-color: #aee8de;
}

.chip-enfermedad {
    background: #f5f7ff;
    border-color: #cdd6ff;
    color: #2f4f96;
}

.chip-empty {
    font-size: 13px;
    color: #9ca3af;
}

/* En móvil que respiren un poco más */
@media (max-width: 768px) {
    .chip {
        font-size: 12px;
        padding: 5px 11px;
    }
}

.foto-perfil-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f7f7;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.foto-perfil-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-perfil-iniciales {
    font-size: 42px;
    color: #06b6b6;
    font-weight: 600;
}

.paginacion-medicos {
    margin: 20px 0 10px;
    text-align: center;
}

.paginacion-medicos .pag-link {
    display: inline-block;
    margin: 0 3px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.1);
    color: #008b7c;
    text-decoration: none;
    background: #fff;
}

.paginacion-medicos .pag-link.activo {
    background: #00bfa5;
    color: #fff;
    border-color: #00bfa5;
    font-weight: 600;
}

/* ====== TARJETAS DE RESULTADOS - DISEÑO FINAL ====== */

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

@media (max-width: 1100px) {
    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta base */
.result-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid #E0ECEA;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Destacados: borde dorado */
.result-card.card-destacado {
    border: 2px solid #50b8ea;
    background: linear-gradient(135deg, #fffdf5, #ffffff);
	box-shadow: 0 10px 30px rgba(197, 222, 234, 0.3);
}

/* Estrellita en la esquina */
.result-card.card-destacado::after {
    content: "★";
    position: absolute;
    top: -10px;
    right: -10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);	
}

/* Header: avatar + badges */
.result-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.result-card-header-left {
    display: flex;
    align-items: center;
}

/* Avatar circular pequeño en resultados */
.rv-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #04b6a8;
}

.rv-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Iniciales sin foto dentro del mismo círculo */
.rv-avatar .result-photo-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f2f2f2);
    border: 2px solid #12c2b9;
    color: #12c2b9;
    font-weight: 600;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges */
.result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

/* Cuerpo de la tarjeta */
.rv-body {
    padding: 8px 6px 0;
}

/* Nombre en una sola línea, centrado */
.rv-name {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 26px;
    font-weight: 700;
    color: #333333;
}

/* Especialidad en rojo */
.rv-specialty {
    margin-top: 2px;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #c62828;
}

/* Ubicación y textos */
.rv-text {
    font-size: 13px;
    margin: 0;
}

.result-contact {
    margin-top: 6px;
    font-size: 13px;
}

/* Botones */
.result-actions {
    margin-top: 10px;
    width: 100%;
}

.result-actions-row {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-cta {
    display: block;
    text-align: center;
    padding: 7px 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* Ver perfil completo */
.btn-perfil {
    background: #04b6a8;
    color: #ffffff;
}
.btn-perfil:hover {
    background: #039488;
}

/* WhatsApp */
.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: #ffffff;
}
.btn-whatsapp:hover {
    background: #1ebe5b;
}

/* Llamar */
.btn-call {
    flex: 1;
    background: #12c2b9;
    color: #ffffff;
}
.btn-call:hover {
    background: #0f9d96;
}


.contact-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    margin: 4px 0;
    justify-content: center;
}

/* Ícono Teléfono */
.icon-phone {
    width: 16px;
    height: 16px;
    fill: #555;
}

/* Ícono WhatsApp */
.icon-whatsapp {
    width: 17px;
    height: 17px;
    fill: #25D366;
}
/* Caja de contacto dentro de la tarjeta */
.contact-box {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #f5faf9;
    display: inline-block;
}

/* Cada línea de contacto */
.contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 2px 0;
    color: #444;
}

/* Icono redondo */
.contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eaf3f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 14px;
    height: 14px;
}

/* Colores específicos */
.contact-icon-phone svg {
    fill: #555;
}

.contact-icon-whatsapp {
    background: #e7f9f0;
}
.contact-icon-whatsapp svg {
    fill: #25D366;
}
.home-steps-grid-nice {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    padding: 10px 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e8f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #04b6a8;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.step-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0c544f;
}

.step-item p {
    font-size: 14px;
    color: #5b5b5b;
    line-height: 1.4;
    max-width: 240px;
}

body {
   
    color: #444;
    font-size: 15px;
}

/* Encabezados */
h1, h2, h3 {
    color: #0C544F;
    font-weight: 700;
    letter-spacing: -0.3px;
}

h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

h3 {
    font-size: 18px;
}

/* Tarjetas */
.result-card {
    font-size: 15px;
    border-radius: 14px;
    padding: 25px 24px;
}

/* Nombre del médico */
.result-name {
    font-size: 22px;
    font-weight: 700;
    color: #0C544F;
    margin-top: 15px;
}

/* Especialidad */
.result-specialty {
    font-size: 17px;
    font-weight: 600;
    color: #DA2C2C; /* rojo suave */
    margin-top: 2px;
}

/* Ubicación */
.result-location {
    font-size: 14px;
    color: #666;
    line-height: 1.35;
    margin-bottom: 12px;
}

/* Iconos de contacto */
.contact-line img {
    width: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.contact-line {
    font-size: 15px;
    margin: 4px 0;
}

/* Botón principal */
.btn-verde {
    background-color: #04B6A8;
    border: none;
    padding: 12px 20px;
    color: white;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-verde:hover {
    background-color: #0C544F;
}

/* Chips */
.chip-servicio {
    font-size: 14px;
    padding: 8px 14px;
    background: #E8F7F6;
    border: 1px solid #CCEDEA;
    color: #0C544F;
    font-weight: 500;
    border-radius: 18px;
    transition: 0.2s;
}

.chip-servicio:hover {
    background: #04B6A8;
    color: white;
}

/* Secciones */
.card h2 {
    font-size: 24px;
}

/* Home steps */
.step-item p {
    font-size: 14px;
    color: #555;
}

.step-icon {
    font-size: 34px;
    background-color: #E8F7F6;
    color: #04B6A8;
}

/* Botones WhatsApp y Llamar */
.btn-small {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
}

/* Sección: ¿Eres médico? */
.home-doctor-block {
    font-size: 16px;
    line-height: 1.6;
}

.home-doctor-block h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 12px;
}

.home-doctor-block p {
    font-size: 17px;
    color: #444;
    margin-bottom: 14px;
}

.home-doctor-block ul {
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 18px;
    padding-left: 20px;
    color: #444;
}

.home-doctor-block li {
    margin-bottom: 6px;
}

/* Botón más grande y elegante */
.home-doctor-block .btn-medico {
    background-color: #04B6A8;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    color: #fff;
    display: inline-block;
    transition: 0.2s;
}

.home-doctor-block .btn-medico:hover {
    background-color: #0C544F;
}

/* Sección SEO final: Directorio médico en México */
.home-seo-block h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 12px;
}

.home-seo-block p {
    font-size: 17px;
    line-height: 1.65;
    color: #444;
}


/* ====== HOME: tarjeta de búsqueda ====== */

.search-card-home {
    padding-top: 26px;
    padding-bottom: 26px;
}

.search-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: center;
}

/* Columna izquierda (texto) */
.search-home-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 8px;
}

.search-home-subtitle {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
}

.search-home-highlights {
    margin: 0 0 14px 18px;
    padding: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.search-home-highlights li {
    margin-bottom: 4px;
}

.search-home-counter {
    font-size: 14px;
    color: #0C544F;
    background: #E8F7F6;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    margin-top: 4px;
}

/* Columna derecha (formulario) */
.search-home-form {
    background: #F6FBFA;
    border-radius: 16px;
    padding: 14px 16px 16px;
    border: 1px solid #D5E5E1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}

/* Grid del formulario en portada: 2 columnas en desktop */
.search-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

/* Botón buscar más vistoso */
.btn-buscar-home {
    margin-top: 14px;
    width: 100%;
    font-size: 15px;
    padding: 10px 0;
    border-radius: 999px;
    font-weight: 600;
}

/* Responsive: en móvil se apilan */
@media (max-width: 900px) {
    .search-home-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .search-home-info {
        text-align: left;
    }
    .search-grid-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .search-card-home {
        padding: 18px 16px 20px;
    }
    .search-home-info h2 {
        font-size: 22px;
    }
    .search-home-subtitle,
    .search-home-highlights,
    .search-home-counter {
        font-size: 14px;
    }
}


/* ====== HOME: tarjeta de búsqueda (version mejorada) ====== */

.search-card-home {
    padding-top: 26px;
    padding-bottom: 30px;
}

.search-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: center;
}

/* Columna izquierda */

.search-home-copy h2 {
    font-size: 30px;
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.search-home-subtitle {
    font-size: 17px;
    color: #333;
    margin-bottom: 14px;
}

.search-home-highlights {
    margin: 0 0 16px 18px;
    padding: 0;
    font-size: 15px;
    color: #444;
    line-height: 1.55;
}

.search-home-highlights li {
    margin-bottom: 6px;
}

.search-home-counter {
    font-size: 15px;
    color: #0C544F;
    background: #E1F4F1;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    margin-top: 2px;
    font-weight: 600;
}

/* Ilustración */

.search-home-illu {
    margin-top: 18px;
}

.search-home-illu img {
    max-width: 270px;
    width: 100%;
    display: block;
}

/* Columna derecha (formulario) */

.search-home-form {
    background: #F6FBFA;
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid #D5E5E1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.search-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

/* Botón */

.btn-buscar-home {
    margin-top: 16px;
    width: 100%;
    font-size: 16px;
    padding: 11px 0;
    border-radius: 999px;
    font-weight: 600;
}

/* Responsive */

@media (max-width: 900px) {
    .search-home-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .search-home-illu {
        margin-top: 12px;
        text-align: center;
    }

    .search-home-illu img {
        max-width: 220px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .search-card-home {
        padding: 18px 16px 22px;
    }

    .search-home-copy h2 {
        font-size: 24px;
    }

    .search-home-subtitle {
        font-size: 15px;
    }

    .search-home-highlights {
        font-size: 14px;
    }

    .search-home-counter {
        font-size: 14px;
    }

    .search-grid-home {
        grid-template-columns: 1fr;
    }
}
/* ============================
   FORMULARIO DE BÚSQUEDA GRANDE
   ============================ */

.search-home-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 26px;
    border: 1px solid #D8E6E3;
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

/* Grid más amplio */
.search-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;  /* más separación */
}

/* Labels más visibles */
.search-home-form label {
    font-size: 15px;
    font-weight: 600;
    color: #0C544F;
    margin-bottom: 6px;
    display: block;
}

/* Inputs más grandes y modernos */
.search-home-form input,
.search-home-form select {
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #C8DAD6;
    background: #F9FCFC;
    transition: 0.2s;
}

.search-home-form input:focus,
.search-home-form select:focus {
    border-color: #04B6A8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4,182,168,0.15);
    outline: none;
}

/* BOTÓN BUSCAR MÁS GRANDE Y LLAMATIVO */
.btn-buscar-home {
    margin-top: 20px;
    width: 100%;
    font-size: 17px;
    padding: 14px 0;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background-color: #04B6A8;
    border: none;
    transition: 0.25s;
}

.btn-buscar-home:hover {
    background-color: #028f85;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
    .search-grid-home {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
/* ================================
   EXPLORA POR ESPECIALIDAD (MEJORADO)
   ================================ */

.home-specialties h2 {
    font-size: 28px;       /* antes ~22px */
    font-weight: 700;
    color: #0C544F;
    margin-bottom: 6px;
}

.home-specialties p {
    font-size: 17px;        /* antes 13px */
    color: #555;
    margin-bottom: 18px;
}

/* Chips más grandes y atractivos */
.chip-servicio {
    padding: 10px 18px !important;
    font-size: 16px !important;
    border-radius: 22px;
    font-weight: 600;
    color: #0C544F;
    background: #E8F7F6;
    border: 1px solid #C9EDEA;
    transition: 0.2s;
}

.chip-servicio:hover {
    background: #04B6A8;
    color: white;
    border-color: #04B6A8;
    transform: translateY(-1px);
}


/* ===================================
   CARD FLOTANTE SOBRE EL HERO
   =================================== */

.site-main {
    position: relative;
    z-index: 2;
}

/* La tarjeta se sube hacia el hero */
.search-card-float {
    margin-top: -18px;          /* la hace "flotar" */
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #D8E6E3;
    box-shadow: 0 18px 50px rgba(0,0,0,0.10);
    padding: 26px 26px 28px;
}

/* Para que el hero no quede "cortado" */
.hero {
    padding-bottom: 80px;       /* deja espacio para la tarjeta flotante */
}

/* En móvil la bajamos un poco menos */
@media (max-width: 600px) {
    .search-card-float {
        margin-top: -28px;
        padding: 20px 18px 22px;
        border-radius: 18px;
    }
    .hero {
        padding-bottom: 64px;

        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
    }
}
.search-card-float {
    position: relative;
    overflow: hidden;
}

.search-card-float::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(4,182,168,0.20);
}

