/* ==========================================================================
   Variables y ConfiguraciÃ³n General
   ========================================================================== */
:root {
    --primary-color: #0056b3;
    /* Azul profundo y profesional */
    --secondary-color: #0096c7;
    /* Azul mÃ¡s claro */
    --accent-color: #48cae4;
    /* Cyan vibrante */
    --text-dark: #1a202c;
    --text-muted: #4a5568;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light-blue {
    background-color: #f0f7ff !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Utilidades y Componentes
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: block;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Botones Custom */
.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: var(--transition);
}

.btn-custom-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
    color: white;
}

.btn-custom-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}

.btn-custom-outline:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted) !important;
    margin: 0 12px;
    position: relative;
    font-size: 1.05rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/20-DSC_5709 (1).jpg') center/cover no-repeat;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 32, 96, 0.9) 0%, rgba(0, 86, 179, 0.7) 100%);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==========================================================================
   Nosotros / MisiÃ³n y VisiÃ³n
   ========================================================================== */
.mission-vision-box {
    transition: var(--transition);
}

.mission-vision-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md) !important;
}

/* ==========================================================================
   Servicios (Destacados y Ãreas)
   ========================================================================== */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light-blue);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Custom Accordion */
.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.custom-accordion .accordion-button {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    padding: 20px 25px;
    color: var(--text-dark);
    background-color: white;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--bg-light-blue);
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.custom-accordion .accordion-body {
    background-color: white;
    padding: 20px 25px;
    line-height: 1.8;
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-info-wrapper {
    background: transparent;
    border-radius: 20px;
}

.contact-detail-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-text p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form-elegant {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-color);
}

.form-floating>.form-control {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.form-floating>.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.1);
    background-color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #0a1428;
    color: #cbd5e0;
    padding: 80px 0 20px;
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    color: #cbd5e0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   BotÃ³n WhatsApp Flotante
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Responsive Ajustes
   ========================================================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .contact-form-elegant {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Paquetes de Análisis
   ========================================================================== */
.package-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.package-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 5px;
}

.package-body {
    padding: 30px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    flex-grow: 1;
}

.package-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.package-list li:last-child {
    border-bottom: none;
}

.package-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ==========================================================================
   Equipo Médico
   ========================================================================== */
.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: var(--shadow-lg);
}

.team-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: top center;
}

.team-info {
    padding: 40px;
}