/* ============================================
   BILMED - Estilos Personalizados
   Color Principal: #1E90FF (Azul)
   ============================================ */

:root {
    --primary-color: #1E90FF;
    --primary-dark: #0066CC;
    --secondary-color: #00A8E8;
    --success-color: #46c35f;
    --danger-color: #f96868;
    --warning-color: #f2a654;
    --info-color: #57c7d4;
    --dark-color: #0f1531;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
}

/* ============================================
   GENERAL
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #000 !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 0.5rem;
    height: 60px;
    width: auto;
}

.navbar-toggler {
    border: 2px solid var(--primary-color) !important;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

.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='%231E90FF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ============================================
   SECCIÓN HERO / BANNER
   ============================================ */

.hero-section {
    margin-top: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.banner-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 21, 49, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100vh;
}

.hero-logo {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(30, 144, 255, 0.4));
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   BOTONES
   ============================================ */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.5);
}

.btn-light {
    background-color: white;
    color: var(--primary-color) !important;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white !important;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.5);
}

/* ============================================
   SECCIÓN CÓMO FUNCIONA
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.card-feature {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.card-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.25);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.card-feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-feature h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1rem;
}

.card-feature p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Flujo Visual */

.flow-step {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: moveArrow 1s ease-in-out infinite;
}

@keyframes moveArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* ============================================
   SECCIÓN BENEFICIOS
   ============================================ */

.benefit-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    border-left: 4px solid transparent;
}

.benefit-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.25);
    border-left-color: var(--primary-color);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.benefit-box:hover .benefit-icon {
    transform: scale(1.1) rotate(-10deg);
}

.benefit-box h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
}

.form-label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #666;
    margin-bottom: 0.3rem;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-dark);
}

/* Social Links */

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.5);
    background: linear-gradient(135deg, var(--secondary-color), #0066CC);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--dark-color) !important;
    margin-top: 3rem;
}

footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer .list-unstyled li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer .list-unstyled li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

footer .small {
    color: rgba(255, 255, 255, 0.8);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animación de entrada */
.card, .card-feature, .benefit-box {
    animation: slideInUp 0.5s ease-out;
}

/* ============================================
   ALERTAS
   ============================================ */

.alert-success {
    background: linear-gradient(135deg, var(--success-color), #3aa847);
    color: white;
    border: none;
    border-radius: 8px;
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-color), #e85555);
    color: white;
    border: none;
    border-radius: 8px;
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-color), #e8933d);
    color: white;
    border: none;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .navbar-brand img {
        height: 45px;
    }

    .navbar-toggler {
        border: 2px solid var(--primary-color) !important;
        padding: 0.35rem 0.5rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .hero-content {
        height: auto;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 800;
        line-height: 1.2;
        color: white;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-stats {
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .display-4 {
        font-size: 1.8rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    .btn-lg {
        padding: 0.55rem 1.2rem !important;
        font-size: 0.85rem !important;
        width: 100%;
    }

    .btn-light,
    .btn-outline-light {
        padding: 0.55rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .d-flex.gap-3 {
        flex-direction: row;
        gap: 0.75rem !important;
        width: 100%;
    }

    .d-flex.gap-3 .btn {
        width: auto;
        flex: 1;
        padding: 0.45rem 1.2rem !important;
        font-size: 0.95rem !important;
        white-space: nowrap;
    }

    .hero-logo {
        max-width: 320px;
        margin: 1.5rem auto 0;
    }

    .col-lg-6:last-child {
        text-align: center;
    }

    .card-feature {
        margin-bottom: 1rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .d-flex.justify-content-between.align-items-center.flex-wrap {
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 1.5rem;
    }

    .ps-lg-4 {
        padding-left: 0 !important;
        margin-top: 2rem;
    }

    .benefit-box {
        padding: 1.5rem;
    }

    /* Experiencia Bilmed Responsive */
    .experience-card-left,
    .experience-card-right {
        padding: 1.5rem;
    }

    .experience-card-left h4,
    .experience-card-right h4 {
        font-size: 1.5rem;
    }

    .row.order-lg-2 {
        order: 0;
    }

    .row.order-lg-1 {
        order: 0;
    }

    /* Datos Responsive */
    .lead-subtitle {
        font-size: 0.95rem;
    }

    .data-showcase-card {
        padding: 1.5rem;
    }

    .process-card {
        padding: 1.5rem 1rem;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-top: -30px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-toggler {
        border: 2px solid var(--primary-color) !important;
        padding: 0.3rem 0.45rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        font-weight: 800;
        line-height: 1.2;
        color: white;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-stats {
        gap: 1rem;
        margin-bottom: 0.75rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 0.85rem !important;
    }

    .navbar-brand {
        font-size: 0.95rem !important;
    }

    .btn-lg {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.75rem !important;
    }

    .btn-light,
    .btn-outline-light {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.75rem !important;
    }

    .d-flex.gap-3 {
        gap: 0.5rem !important;
        flex-direction: row !important;
    }

    .d-flex.gap-3 .btn {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.8rem !important;
        width: auto;
        flex: 1;
        white-space: nowrap;
    }

    .hero-logo {
        max-width: 220px;
        margin: 1rem auto 0;
    }

    .col-lg-6:last-child {
        text-align: center;
    }

    .card-feature h5,
    .benefit-box h5 {
        font-size: 0.95rem;
    }

    .card-feature p,
    .benefit-box p {
        font-size: 0.85rem;
    }

    .card-feature {
        padding: 1.25rem !important;
    }

    .benefit-box {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    .benefit-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    .flow-step {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* Experiencia Bilmed Mobile */
    .experience-card-left,
    .experience-card-right {
        padding: 1rem;
    }

    .experience-card-left h4,
    .experience-card-right h4 {
        font-size: 1.25rem;
    }

    .experience-card-left p,
    .experience-card-right p {
        font-size: 0.9rem;
    }

    .checklist-items li {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }

    /* Datos Mobile */
    .lead-subtitle {
        font-size: 0.85rem;
    }

    .data-showcase-card {
        padding: 1rem;
    }

    .data-showcase-card h5 {
        font-size: 1.1rem;
    }

    .data-benefit-card {
        padding: 1.25rem;
    }

    .data-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    /* Procesos Mobile */
    .process-card {
        padding: 1.25rem 1rem;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-top: -25px;
    }

    .process-card h5 {
        font-size: 0.95rem;
    }

    .process-card p {
        font-size: 0.8rem;
    }
}

/* ============================================
   NUEVA SECCIÓN HERO - MEJORADA
   ============================================ */

@media (min-width: 769px) {
    .hero-title {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        color: white;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        color: rgba(255, 255, 255, 0.95);
    }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

/* ============================================
   SECCIÓN EXPERIENCIA BILMED
   ============================================ */

.experience-card-left,
.experience-card-right {
    padding: 2rem;
}

.experience-card-left h4,
.experience-card-right h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.experience-card-left p,
.experience-card-right p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.checklist-items li {
    margin: 0.75rem 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checklist-items i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ============================================
   SECCIÓN PROCESO (4 PASOS)
   ============================================ */

.process-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.25);
}

.process-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 1rem;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.process-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.process-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   SECCIÓN DECISIONES BASADAS EN DATOS
   ============================================ */

.lead-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.data-showcase-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.data-showcase-card h5 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.chart-placeholder {
    margin-top: 1.5rem;
}

.data-benefit-card {
    background: white;
    border-radius: 10px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.data-benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
}

.data-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.data-benefit-card:hover .data-icon {
    transform: scale(1.15) rotate(-10deg);
}

.data-benefit-card h6 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.data-benefit-card .small {
    color: #666;
    line-height: 1.5;
}

/* ============================================
   EFECTOS ESPECIALES
   ============================================ */

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Efecto de brillo en hover */
.card-feature:hover,
.benefit-box:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.05), rgba(0, 168, 232, 0.05));
}
