/* ============================================
   ESTILOS GENERALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.section-title {
    font-weight: 700;
    font-size: 2.8rem;
    text-align: center;
    color: #125299;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #125299;
    margin: 12px auto 0;
    border-radius: 4px;
}

.text-bold {
    font-weight: 500;
    font-size: 1.1rem;
    color: #1a1a1a;
    line-height: 1.8;
}


.bg-light {
    background-color: #ffffff !important;
}


/* ============================================
   BOTONES
   ============================================ */
.btn-primary-custom {
    display: inline-block;
    background: #125299;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(18, 82, 153, 0.2);
}

.btn-primary-custom:hover {
    background: #0e3f7a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(18, 82, 153, 0.35);
}

.btn-primary-custom i {
    margin-right: 8px;
}

/* ============================================
   NAVBAR 
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-brand .logo-d {
    color: #125299;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #1e293b !important;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: #125299 !important;
    background: rgba(18, 82, 153, 0.06);
}

.navbar-nav .phone-btn {
    background: #125299;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .phone-btn:hover {
    background: #0e3f7a;
    color: #fff !important;
    transform: scale(1.02);
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background-color: #125299 !important;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO 
   ============================================ */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a2a4a 0%, #125299 50%, #1a6bb5 100%);
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.03) 0%, transparent 60%);
    animation: pulseBg 20s infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-content h3 {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.hero-content p:last-of-type {
    margin-bottom: 20px;
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


.img-hero {
    max-width: 70%;           /* Tamaño reducido */
    height: auto;             
    margin-top: 20px;         /* Bajada para centrar */
   
}


/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(18, 82, 153, 0.10);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.8rem;
}

.card-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.card-text {
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Iconos Circulares */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 2rem;
    color: #fff;
}

.bg-primary-custom {
    background: #125299;
}

/* ============================================
   SERVICIOS ITEMS
   ============================================ */
.servicio-item {
    padding: 20px 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.servicio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(18, 82, 153, 0.08);
    border-color: #125299;
}

.servicio-item i {
    font-size: 3rem !important;
    color: #125299 !important;
    display: block !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    text-align: center !important;
}

.servicio-item h5 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #1a1a1a;
}

/* ============================================
   CARDS DE DIAGNÓSTICO Y CIRUGÍAS
   ============================================ */
.servicio-card-diagnostico {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.servicio-card-diagnostico:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(18, 82, 153, 0.08);
    border-color: #125299;
}

.servicio-card-diagnostico .card-body {
    padding: 1rem 1.2rem;
    min-height: 60px;
}

.servicio-card-diagnostico span {
    font-weight: 500;
    font-size: 0.95rem;
    color: #1a1a1a;
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #0a2a4a 0%, #125299 100%);
    color: #fff;
}

.stat-box i {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.7;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* ============================================
   CONTACTO
   ============================================ */

.contact-section {
    background: #ffffff;
    padding: 70px 0;
}

.contact-info-box {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.contact-info-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item h5 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: #1a1a1a;
    margin-bottom: 0;
    padding-left: 28px;
}

.contact-message {
    margin-top: 16px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.contact-form-box {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-form-box .form-control {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.contact-form-box .form-control:focus {
    border-color: #125299;
    box-shadow: 0 0 0 4px rgba(18, 82, 153, 0.08);
}

.contact-form-box label {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* ============================================
   FOOTER 
   ============================================ */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 25px;
    text-align: center;
}

.footer p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

/* Facebook - Siempre en su color */
.social-icon.facebook {
    background: #1877f2;
    color: #ffffff;
}

.social-icon.facebook:hover {
    background: #0d6ad0;
    transform: translateY(-4px);
    color: #ffffff;
}

/* Instagram - Siempre en su color */
.social-icon.instagram {
    background: #e4405f;
    color: #ffffff;
}

.social-icon.instagram:hover {
    background: #d12b4b;
    transform: translateY(-4px);
    color: #ffffff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .stat-box h3 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .contact-info-box,
    .contact-form-box {
        padding: 1.5rem;
    }
    
    .map-container {
        min-height: 250px;
    }
    
    .map-container iframe {
        min-height: 250px;
    }
    
    .servicio-card-diagnostico .card-body {
        padding: 0.8rem 1rem;
        min-height: 50px;
    }
    
    .servicio-card-diagnostico span {
        font-size: 0.85rem;
    }
    
    .servicio-item i {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .stat-box h3 {
        font-size: 1.8rem;
    }
    
    .stat-box i {
        font-size: 2rem;
    }
    
    .servicio-item i {
        font-size: 2rem !important;
    }
}

/* ============================================
   TEXTOS DE LAS TARJETAS SEAN NEGROS INTENSOS
   ============================================ */
.card .card-body,
.card .card-body p,
.card .card-body h4,
.card .card-body h5,
.card .card-body li,
.card .card-body span,
.servicio-item h5,
.servicio-item p,
.servicio-card-diagnostico span,
.contact-info-item p,
.contact-info-item h5,
.contact-message,
.contact-form-box label,
.contact-form-box .form-control {
    color: #1a1a1a !important;
}

.section-title {
    color: #125299 !important;
}


h3.text-center.mb-4[style*="color: #125299"] {
    color: #125299 !important;
}

h4.text-center.mb-4[style*="color: #125299"] {
    color: #125299 !important;
}