/* ============================================
   ESTILOS PARA MEDICITA - Sistema de Suscripción
   ============================================ */

/* Variables globales */
:root {
    --primary-blue: #0078D4;
    --secondary-blue: #50E6FF;
    --light-blue: #DEECF9;
    --dark-blue: #004578;
    --success-blue: #107C10;
    --info-blue: #0078D4;
    --azure-celeste: #E1F5FE;

    --ms-gray-background: #F3F2F1;
    --ms-gray-light: #EDEBE9;
    --ms-gray-medium: #A19F9D;
    --ms-gray-dark: #605E5C;

    --ms-success: #107C10;
    --ms-warning: #FFB900;
    --ms-danger: #D13438;

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ============================================
   LAYOUT GENERAL
   ============================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.container {
    max-width: 1200px;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar-medicita {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--azure-celeste) 50%, #ffffff 100%);
    box-shadow: 0 2px 15px rgba(0, 120, 212, 0.15);
    border-bottom: 2px solid var(--primary-blue);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
    text-shadow: 0 1px 3px rgba(0, 120, 212, 0.2);
}

.nav-link {
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
    color: var(--dark-blue) !important;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(0, 120, 212, 0.1);
    transform: translateY(-1px);
    color: var(--primary-blue) !important;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--azure-celeste) 50%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230078D4" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--ms-gray-dark);
    margin-bottom: 2rem;
}

/* ============================================
   CARDS Y CONTENEDORES
   ============================================ */

.card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    border: none;
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a9e 0%, var(--dark-blue) 100%);
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

/* ============================================
   FORMULARIOS
   ============================================ */

.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid #dee2e6;
    padding: 0.625rem 0.875rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    font-weight: 600;
}

/* ============================================
   ALERTAS
   ============================================ */

.alert {
    border-radius: var(--border-radius-md);
    border: none;
    padding: 1rem 1.25rem;
}

.alert i {
    font-size: 1.1em;
}

/* ============================================
   PÁGINA: PLANES
   ============================================ */

.plan-card {
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.plan-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-card.border-primary {
    border-color: #2563eb !important;
    border-width: 3px;
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    z-index: 10;
}

.ribbon span {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    display: block;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    border-radius: 4px 0 0 4px;
}

.precio-container {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.precio-mensual,
.precio-anual {
    text-align: center;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ============================================
   PÁGINA: CHECKOUT
   ============================================ */

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer a {
    color: var(--azure-celeste);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   UTILIDADES
   ============================================ */

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-md {
    border-radius: var(--border-radius-md) !important;
}

.rounded-sm {
    border-radius: var(--border-radius-sm) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.text-primary-custom {
    color: var(--primary-blue) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }

    .sticky-top {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    .card-footer {
        padding: 1rem;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.4s ease-in-out;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
