.body {
    font-family: 'Segoe UI', sans-serif;
    color: #2C3E50;
    background-color: #ffffff;
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: bold;
    color: #1F4E79;
}

.nav-link {
    color: #2C3E50;
    margin-right: 10px;
}

.nav-link:hover {
    color: #4A90E2;
}

.btn-primary-custom {
    background: #2EC4B6;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
}

.btn-primary-custom:hover {
    background: #26a69a;
}

/* Hero */
.hero {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    padding: 100px 0;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-top: 15px;
}

/* Servicios */
.servicios-detalle {
    background: #F4F8FB;
}

.service-detail-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 196, 182, 0.15);
    transition: all 0.35s ease;
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #2EC4B6;
}

.service-detail-card h3 {
    color: #1F4E79;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 15px;
}

.service-detail-card p {
    color: #555;
    line-height: 1.7;
}



.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 196, 182, 0.12);
    color: #1F4E79;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.service-badge i {
    color: #2EC4B6;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.service-list li {
    margin-bottom: 10px;
    color: #444;
    font-weight: 500;
}

.service-list i {
    color: #2EC4B6;
    margin-right: 8px;
}

.service-img-box {
    border-radius: 22px;
    overflow: hidden;
    height: 330px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-detail-card:hover .service-img-box img {
    transform: scale(1.06);
}

.info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;

    /* 👇 mismo estilo que tus cards */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 196, 182, 0.15);

    transition: all 0.35s ease;
}

/* ICONO */
.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(46, 196, 182, 0.1);
    transition: all 0.3s ease;
}

.icon-box i {
    font-size: 1.8rem;
    color: #2EC4B6;
    transition: all 0.3s ease;
}

.info-card {
    height: 100%; /* 👈 CLAVE */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* TITULO */
.info-card h4 {
    color: #1F4E79;
    font-weight: 700;
    margin-bottom: 10px;
}

/* TEXTO */
.info-card p {
    color: #555;
    font-size: 14px;
}

/* 🔥 HOVER PREMIUM */
.info-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #2EC4B6;
}

/* ANIMACIÓN ICONO */
.info-card:hover .icon-box {
    background: #2EC4B6;
}

.info-card:hover .icon-box i {
    color: #ffffff;
    transform: scale(1.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eaf8f6;
    color: #2EC4B6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.bg-soft {
    background-color: #F4F8FB;
}

.value-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 15px;
    text-align: center;

    /* 👇 estilo igual a tus cards */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;

    /* 👇 borde sutil corporativo */
    border: 1px solid rgba(46, 196, 182, 0.2);
}

/* ICONO */
.value-item i {
    font-size: 2rem;
    color: #2EC4B6;
    margin-bottom: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* TEXTO */
.value-item h6 {
    font-weight: 600;
    color: #1F4E79;
}

/* 🔥 HOVER (igual que tus flip-card) */
.value-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2EC4B6;
}

/* ICONO ANIMADO */
.value-item:hover i {
    transform: scale(1.2);
}

.cta-box {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
}

.btn-custom {
    background: #2EC4B6;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background: #24ad9f;
    color: white;
}

.page-header {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    padding: 90px 0 70px;
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    font-size: 42px;
    color: #2EC4B6;
    margin-bottom: 15px;
}

.bg-soft {
    background: #F4F8FB;
}

.cta-box {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.btn-custom {
    background: #2EC4B6;
    color: white;
    border-radius: 30px;
    padding: 12px 24px;
    text-decoration: none;
}

.btn-custom:hover {
    background: #25a99c;
    color: white;
}


.page-header {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    padding: 90px 0 70px;
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #1F4E79;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: #5f6b77;
    max-width: 720px;
    margin: 0 auto;
}

.specialty-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: 0.3s ease;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-8px);
}

.specialty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf8f6;
    color: #2EC4B6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.specialty-card h5 {
    color: #1F4E79;
    font-weight: 700;
    margin-bottom: 12px;
}

.bg-soft {
    background: #F4F8FB;
}

.info-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.info-list li {
    margin-bottom: 12px;
}

.info-list i {
    color: #2EC4B6;
    margin-right: 10px;
}

.cta-box {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
}

.btn-custom {
    background: #2EC4B6;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background: #24ad9f;
    color: white;
}

.page-header {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    padding: 90px 0 70px;
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #1F4E79;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: #5f6b77;
    max-width: 720px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    height: 100%;
}

.contact-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #eaf8f6;
    color: #2EC4B6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-card h5 {
    color: #1F4E79;
    font-weight: 700;
    margin-bottom: 12px;
}

.bg-soft {
    background: #F4F8FB;
}

.form-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.form-control {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #dce6ee;
}

.form-control:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

.btn-custom {
    background: #2EC4B6;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background: #24ad9f;
    color: white;
}

.map-frame {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.map-frame iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.cta-box {
    background: linear-gradient(to right, #1F4E79, #4A90E2);
    color: white;
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
}

.service-highlight {
    border: 2px solid #2EC4B6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.20);
    border-color: #2EC4B6;
}

.form-map-row {
    align-items: stretch;
}

.form-box {
    height: 100%;
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 991px) {

    .map-frame,
    .map-frame iframe {
        height: 380px;
        min-height: 380px;
    }
}

.flip-card {
    background: transparent;
    height: 280px;
    perspective: 1000px;
    border-radius: 18px;

    border: 2px solid #2EC4B6;
    box-shadow: 0 0 12px rgba(46, 196, 182, 0.6);

    /* 👇 transición suave */
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.3s ease;
}

/* 👇 hover: desaparece borde + glow */
.flip-card:hover {
    border-color: transparent;

    /* 🔥 elevación */
    transform: translateY(-12px) scale(1.03);

    /* 🔥 sombra más profunda */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* CONTENIDO INTERNO */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

/* 👇 giro */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* CARAS */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    backface-visibility: hidden;
    overflow: hidden;
}

.flip-card-front {
    background: #ffffff;
}

.flip-card-back {
    background: linear-gradient(135deg, #1F4E79, #4A90E2);
    color: white;
    transform: rotateY(180deg);
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Estado normal */
.navbar .nav-link {
    color: #333;
    transition: all 0.3s ease;
}

/* Hover elegante */
.navbar .nav-link:hover {
    color: #2EC4B6;
}

/* 🔥 ACTIVE (la página actual) */
.navbar .nav-link.active {
    color: #2EC4B6;
    font-weight: 600;
    position: relative;
}

/* 👇 Línea animada debajo (PRO) */
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #2EC4B6;
    border-radius: 2px;
}

.doctors-container {
    display: none;
    margin-top: 20px;
    gap: 15px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doctor-mini-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;

    border: 1px solid rgba(46, 196, 182, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: all 0.3s ease;
}

.doctor-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #2EC4B6;
}

.doctor-mini-card h6 {
    color: #1F4E79;
    font-weight: 700;
    margin-bottom: 5px;
}

.doctor-mini-card p {
    font-size: 14px;
    margin-bottom: 6px;
}

.doctor-mini-card span {
    font-size: 13px;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.doctor-mini-card a {
    color: #2EC4B6;
    font-weight: 600;
    text-decoration: none;
}

.doctor-flip-list {
    width: 100%;
    margin: 10px 0 15px;
}

.doctor-flip-list p {
    font-size: 13px;
    margin-bottom: 6px;
    color: #ffffff;
}

.doctor-flip-list i {
    margin-right: 5px;
}

.team-subtitle {
    color: #1F4E79;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

.doctor-card,
.specialty-group {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(46, 196, 182, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.doctor-card:hover,
.specialty-group:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: #2EC4B6;
}

.doctor-socio {
    border: 2px solid #2EC4B6;
    background: linear-gradient(180deg, #ffffff, #F4F8FB);
}

.doctor-badge,
.mini-badge {
    background: #2EC4B6;
    color: white;
    padding: 5px 11px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.mini-badge.specialist {
    background: #1F4E79;
}

.doctor-icon {
    width: 70px;
    height: 70px;
    margin: 15px auto;
    border-radius: 50%;
    background: rgba(46, 196, 182, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-icon i,
.specialty-group h5 i {
    color: #2EC4B6;
}

.doctor-card h5,
.specialty-group h5 {
    color: #1F4E79;
    font-weight: 700;
}

.specialty-group p {
    margin-bottom: 8px;
}

.doctor-specialty {
    color: #2EC4B6;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.doctor-specialty i {
    margin-right: 5px;
}

.doctor-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.doctor-meta {
    font-size: 13px;
    color: #555;
}

.btn-whatsapp-custom {
    background: #2EC4B6;
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.btn-whatsapp-custom:hover {
    background: #26a99c; /* un tono más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: #fff;
}