/* Google Fonts - Outfit for modern tech look */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --sanaciom-blue: #00f2fe;
    --sanaciom-dark-blue: #0b0f19;
    --sanaciom-cyan: #00f2fe;
    --sanaciom-red: #bd00ff;
    --sanaciom-green: #00ff88;
    --sanaciom-dark: #0b0f19;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(0, 242, 255, 0.3);
}

body {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    background-color: #0b0f19;
    background-image: url('../../Fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(11, 15, 25, 0.7) 0%, rgba(7, 10, 17, 0.96) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navbar Premium */
.navbar-sanaciom {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar-brand span {
    background: linear-gradient(135deg, #ffffff 30%, var(--sanaciom-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    color: #94a3b8 !important;
    margin: 0 5px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--sanaciom-cyan);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-sanaciom-primary {
    background: linear-gradient(135deg, var(--sanaciom-cyan) 0%, #4facfe 100%) !important;
    color: #05070c !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 35px;
    border-radius: 5px;
    /* More techy, less pill-shaped */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.btn-sanaciom-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-sanaciom-primary:hover::before {
    left: 100%;
}

.btn-sanaciom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6) !important;
    background: linear-gradient(135deg, #4facfe 0%, var(--sanaciom-cyan) 100%) !important;
    color: #05070c !important;
    border-color: var(--sanaciom-cyan) !important;
}

/* Hero Section Premium */
.hero-section {
    background: url('../img/hero_bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 150px 0 100px;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.card-course, .card, .contact-form-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s ease;
    overflow: hidden;
    color: #ffffff !important;
}

.card-course img {
    height: 220px;
    object-fit: contain;
    background-color: rgba(15, 23, 42, 0.45);
    padding: 15px;
    transition: transform 0.5s;
}

.card-course:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-course:hover img {
    transform: scale(1.05);
}

.badge-level {
    background: rgba(10, 88, 202, 0.1);
    color: var(--sanaciom-blue);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
}

/* Section Title Style */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--sanaciom-blue);
}

/* Contact Form Premium */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.form-control:focus {
    background-color: white;
    box-shadow: 0 0 0 4px rgba(10, 88, 202, 0.1);
}

/* Footer Premium */
.footer-sanaciom {
    background: var(--sanaciom-dark);
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-sanaciom h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    color: white;
}

.social-icons a:hover {
    background: var(--sanaciom-blue);
    transform: translateY(-3px);
}

/* Mentor Cards (Premium Dark Style) */
.card-mentor {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-mentor:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.3) !important;
}

.card-mentor .card-img-wrapper {
    height: 380px;
    background-color: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid var(--sanaciom-blue);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-mentor .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s;
}

.card-mentor .card-body {
    background: transparent !important;
    color: white;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.mentor-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mentor-role {
    font-size: 1rem;
    color: var(--sanaciom-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.mentor-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.mentor-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

/* Global Dark Theme Overrides */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

p, .mentor-desc {
    color: #cbd5e1;
}

.text-muted {
    color: #94a3b8 !important;
}

/* Section Title styling */
.section-title {
    color: #ffffff !important;
}

.section-title span {
    background: linear-gradient(135deg, var(--sanaciom-cyan) 0%, #4facfe 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Bootstrap Table overrides */
.table {
    color: #cbd5e1 !important;
}

.table th {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: #cbd5e1 !important;
}

.table-hover tbody tr:hover td {
    color: #ffffff !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Forms overrides */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.7) !important;
    border-color: var(--sanaciom-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Dropdown menu overrides */
.dropdown-menu {
    background-color: #0b0f19 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dropdown-item {
    color: #cbd5e1 !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* Accordion overrides */
.accordion-item {
    background-color: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.accordion-button {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #ffffff !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 242, 255, 0.1) !important;
    color: var(--sanaciom-cyan) !important;
}

/* Custom Inscríbete button in navbar */
.btn-sanaciom-action {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
}

.btn-sanaciom-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%) !important;
}

/* Color updates to match Registrate */
.text-primary {
    color: var(--sanaciom-cyan) !important;
}

.bg-primary {
    background-color: var(--sanaciom-cyan) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sanaciom-cyan) 0%, #4facfe 100%) !important;
    border-color: transparent !important;
    color: #05070c !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5) !important;
    background: linear-gradient(135deg, #4facfe 0%, var(--sanaciom-cyan) 100%) !important;
    color: #05070c !important;
}

.btn-outline-primary {
    border-color: var(--sanaciom-cyan) !important;
    color: var(--sanaciom-cyan) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--sanaciom-cyan) !important;
    color: #05070c !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3) !important;
    border-color: transparent !important;
}

.btn-outline-light:hover {
    background-color: #ffffff !important;
    color: #0b0f19 !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important;
}

/* Badge level updates */
.badge-level, .badge.bg-info {
    background-color: rgba(0, 242, 254, 0.15) !important;
    color: var(--sanaciom-cyan) !important;
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
}

/* Button success overrides for WhatsApp buttons */
.btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border-color: transparent !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Header Banners Glassy Override */
.bg-primary.py-5.text-white {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Floating WhatsApp Widget Styling */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background-color: #25D366;
    color: white !important;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background-color: #25D366;
    z-index: -1;
    opacity: 0.6;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.whatsapp-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    padding: 12px 24px;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover .whatsapp-text {
    max-width: 150px;
    opacity: 1;
}

/* ==========================================
   FURTHER HIGH-TECH CYBERPUNK STYLING
   ========================================== */

/* 1. Digital Grid Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* 2. Cyber Glow Titles */
.hero-title, .section-title, h1.fw-bold, h2.fw-bold {
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

/* 3. Bootstrap Modal High-Tech Customization */
.modal-content {
    background: rgba(11, 17, 30, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.25) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.4) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.4) !important;
}

.btn-close {
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* 4. Refined High-Tech Cards */
.card-tech {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #ffffff !important;
}

.card-tech:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15) !important;
}

/* Specific text card details */
.card-tech i {
    text-shadow: 0 0 15px currentColor;
}

/* 5. Glassy Header Banner */
.bg-glassy-banner {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative;
    overflow: hidden;
}

.bg-glassy-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* 6. High-Tech Footer */
.footer-sanaciom {
    background: rgba(7, 10, 17, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: relative;
}

/* 7. Image gallery enhancement for Evidencias */
.gallery-tech-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.gallery-tech-wrapper img {
    transition: transform 0.5s ease;
}

.gallery-tech-wrapper:hover {
    border-color: var(--sanaciom-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.gallery-tech-wrapper:hover img {
    transform: scale(1.08);
}

/* Price tag neon glow */
.price-tag {
    color: var(--sanaciom-cyan) !important;
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* Custom slider images to prevent distortion and fit within boundaries */
.carousel-img-tech {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    object-fit: contain;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
    border-radius: 12px;
}
@media (max-width: 768px) {
    .carousel-img-tech {
        max-height: 260px;
    }
}