/* COLORES */
:root {
    --primary:#ff15a2;
    --white:#ffffff;
    --gray:#f2f2f2;
    --dark:#1c1c1c;
}

/* GENERAL */
body {
    font-family:'Poppins',sans-serif;
    color: #1c1c1c;
}

.section-spacing {
    padding:50px 0;
}

#titulos-margin {
    margin-top: 50px;
}

.contact-form .form-control:hover, #searchInput:hover, #especialidadFiltro:hover {
    box-shadow:0 0 0 3px #ff15a2;
}

.contact-form .form-control:focus, #searchInput:focus, #especialidadFiltro:focus {
    box-shadow:0 0 0 3px #ff15a2;
}

.nav-cta, .contact-form .btn, .btn-outline-secondary {
    position: relative;
    overflow: hidden;
    border: none;
    transition: color 0.5s ease, background-position 0.5s ease;
}

.nav-cta:hover, .contact-form .btn:hover, .btn-outline-secondary:hover {
    color: #ff15a2;
    background: linear-gradient(90deg, #ff15a2 50%, #1c1c1c 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

/* TEXTOS */
.titulo {
    color: #ff15a2;
    font-weight:700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.titulo-pagina {
    color: #ff15a2;
    font-weight:700;
    text-align: center;
    margin-bottom: 3rem;
}

.subtitulo {
    color: #ff15a2;
}

.stat-number {
    font-size:2rem;
    font-weight:700;
    color: #ff15a2;
}

.review-name {
    font-weight:600;
    color: #ff15a2;
}

/* FONDOS */
#navbar, #serviciosmedicos, #preguntasfrecuentes, #ubicacion {
    background: #ffffff;
}

#nuestrainstitucion, #opinionesreales, #contacto {
    background:#f2f2f2; 
}

#directorio, #serviciomedico {
    background-color: #f2f2f2;
    margin-top: 50px;
}

/* NAVBAR */
.navbar-brand, .navbar-brand:hover, .navbar-brand:focus {
    font-weight:700;
    color: #ff15a2;
}

.nav-link {
    position: relative;
    color: #1c1c1c;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #ff15a2;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #ff15a2;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: #ff15a2;
    color: #ffffff;
    border-radius:30px;
    text-decoration:none;
    transition:.3s;
    display:inline-block;
    font-size:.95rem;
}

a[href^="mailto:"] {
    color: #1c1c1c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a[href^="mailto:"]:hover {
    color: var(--primary);
}

/* ÍNDICE LATERAL */
.side-index {
    position:fixed;
    right:25px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:1000;
}

.side-index a {
    display:flex;
    align-items:center;
    gap:10px;
    background:white;
    padding:10px 16px;
    border-radius:30px;
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
    text-decoration:none;
    color:var(--dark);
    font-size:.9rem;
    font-weight:500;
    transition:.3s ease;
}

.side-index a i {
    font-size:1.1rem;
    color:var(--primary);
}

.side-index a:hover {
    background:var(--primary);
    color:white;
    transform:translateX(-6px);
}

.side-index a:hover i {
    color:white;
}

/* HERO */
.hero-premium {
    height:100vh;
    background: linear-gradient(rgba(255,21,162,.8),rgba(0,0,0,.6)), url('Hero.webp');
    background-size: cover;
    background-position: center;
    justify-content: center
}

.hero-premium img {
    width: 100%;
    height: 100%; /* o la altura que quieras */
    margin-bottom: 1rem;
}

/* NUESTRA INSTITUCIÓN */
.institution-img {
    width: 450px;          /* ancho fijo */
    height: 300px;         /* altura fija para cuadrado */
    border-radius: 18px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* SERVICIOS MÉDICOS */
.specialty-card {
    height:220px;
    border-radius:18px;
    background-size:cover;
    background-position:center;
    position:relative;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.12);
    transition:.4s;
}

.specialty-card img {
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    top:0;
    left:0;
}

/* Overlay normal */
.specialty-overlay {
    position:absolute;
    bottom:0;
    width:100%;
    height:100%;
    background:linear-gradient(to top,rgba(0,0,0,.75),rgba(0,0,0,.2));
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:25px;
    color:#ffffff;
    transition:background .4s ease;
}

/* Hover */
.specialty-card:hover .specialty-overlay{
    background:linear-gradient(
        to top,
        #ff15a2,
        rgba(255,21,162,.25)
    );
}

/* pequeña animación elegante */
.specialty-card:hover{
    transform:translateY(-6px) scale(1.02);
}

/* OPINIONES DE PACIENTES REALES */
.review-card {
    max-width:700px;
    margin:auto;
    background: #ffffff;
    padding:40px;
    border-radius:18px;
}

.review-stars {
    color:#ffc107;
    font-size:1.4rem;
    margin-bottom:15px;
}

.review-text {
    color: #1c1c1c;
    line-height:1.7;
}

/* PREGUNTAS FRECUENTES */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: 18px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: #f2f2f2;
    color: #1c1c1c;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-button:hover {
    background: #ff15a2;
    color: #ffffff;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #ff15a2;
    color: #ffffff;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-body {
    background: #f2f2f2;
    line-height: 1.7;
}

.pf-link {
    color: #1c1c1c;
    text-decoration: none;
}

.pf-link:hover {
    color: #ff15a2;
}

/* CONTACTO */
.contact-premium {
    background: #ff15a2;
}

.contact-info {
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-item {
    display:flex;
    align-items:center;
    gap:15px;
    background:#ff15a2;
    padding:18px 22px;
    border-radius:18px;
    text-decoration:none;
    color: #ffffff;
    font-weight:500;
    transition:.3s;
}

.contact-item:hover {
    background: #ffffff;
    color: #ff15a2;
    transform:translateY(-5px);
}

.contact-item i {
    font-size:1.6rem;
}

/* FORMULARIO */
.contact-form .form-control {
    border-radius:18px;
    border:none;
    padding:12px;
    color: #1c1c1c;
    background-color: #ffffff;
}

.contact-form .btn {
    background: #ff15a2;
    color: #ffffff;
    border-radius:18px;
    font-weight:600;
}

/* UBICACIÓN */
.map-container iframe {
    border-radius: 18px;
    transition: all 0.3s ease;
}

.map-container iframe:hover {
    box-shadow: 0 10px 25px #ff15a2;
}

.map-container iframe:focus {
    outline: none;
}

/* FOOTER */
.footer-premium {
    background:#1c1c1c;
    color:#ffffff;
    padding:70px 0 30px 0;
}

#footer img {
    max-width: auto;
    height: auto;
    display: block;
}

.footer-title {
    font-weight:600;
    margin-bottom:20px;
}

.footer-text {
    color:#ffffff;
    font-size:.95rem;
    line-height:1.6;
}

.footer-links {
    list-style:none;
    padding:0;
}

.footer-links li {
    margin-bottom:10px;
}

.footer-links a {
    text-decoration:none;
    color:#ffffff;
    transition:.3s;
}

.footer-links a:hover {
    color: #ff15a2;
}

.footer-contact p {
    margin-bottom:10px;
    color:#ffffff;
}

.footer-contact i {
    color:var(--primary);
    margin-right:8px;
}

.footer-contact a {
    color:#ffffff;
    text-decoration:none;
    transition:color .3s ease;
}

.footer-contact a:hover {
    color: #ff15a2;
}

.footer-copy {
    color:#ffffff;
    font-size:.9rem;
}

.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    justify-content: flex-start;
    align-items: center;
}

.footer-certifications a img {
    width: 60px;
    height: auto;
}

/* === DIRECTORIOMEDICO.HTML === */
#searchInput, #especialidadFiltro {
    border-radius: 18px;
    border: none;
    padding: 12px;
    color: #1c1c1c;
    background-color: #ffffff;
}

.btn-outline-secondary {
    color: #1c1c1c;
    background-color: #ffffff;
    border-radius: 18px;
    border: none;
}

.doctor-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #ff15a2;
}

.medico-item h5 {
    font-weight: 600;
}

.cedula {
    font-size: 0.9rem;
    color: #1c1c1c;
}

.medico-item p a[href*="wa.me"] {
    color: #1c1c1c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.medico-item p a[href*="wa.me"]:hover {
    color: #ff15a2;
}

.premium-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 15px;
}

.medico-card.clickable .premium-card {
    transition: all 0.3s ease;
}

.medico-card.clickable .premium-card:hover {
    box-shadow: 0 10px 20px #ff15a2;
    transform: translateY(-5px);
    border-radius: 18px;
}

#directorioMedicos .medico-card {
    display: none;
}

/* === HISTORIA.HTML === */

/* === CERTIFICACIONES.HTML === */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: start;
    text-align: center;
    margin-top: 2rem;
}

.certification-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    border-radius: 18px;
    transition: color 0.5s ease, background-position 0.5s ease;
    background: linear-gradient(to top, #ffffff 50%, #f2f2f2 50%);
    background-size: 100% 200%;
    background-position: bottom;
}

.certification-item:hover img {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px #ff15a2;
    filter: saturate(1.2);
    background-position: top;
}

.certification-item a p {
    text-decoration: none;
    color: #1c1c1c;
}

.certification-item a {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1c1c1c;
    text-decoration: none;
}

.certifications-text p {
    margin-bottom: 20px;
    font-weight: 500;
    color: #1c1c1c;
    line-height: 1.6;
    text-align: justify;
}