/* Color variables */
:root {
    --primary-orange: #ffac33;
    --primary-dark: #232427;
    --primary-bg: #868686;
    --text-light: #f5f5f7;
    --text-dark: #343a40;
    --card-bg: rgba(28, 28, 30, 0.9);
}

/* General Styles */
body {
    zoom: 0.9; /* 90% del tamaño original */
    background-color: var(--primary-bg); /* Fondo claro */
    font-family:  Verdana, sans-serif; /* Modern font */
    color: var(--text-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: var(--card-bg); /* Fondo oscuro con transparencia */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
    padding: 5px 20px;
}

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

.navbar-brand {
    color: white !important;
    font-weight: 500;
}

.nav-link {
    color: var(--text-light) !important;
    font-size: 16px;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a7a7a7 !important; /* Suave transición de color */
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-toggler {
    border-color: transparent;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke="rgba(255, 255, 255, 0.7)" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}

/* Content Container Styles */
.content-container {
    margin: 100px auto;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semi-transparente */
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

/* Heading Styles */
h1, h2, h3 {
    color: #ffac33; /* Color de texto oscuro */
}

p {
    font-size: 1.1rem; /* Ajustado */
    line-height: 1.8; /* Espaciado entre líneas */
    color: #2b2b2b; /* Gris suave */
}

/* Button Styles */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3; /* Azul más oscuro */
}

.btn-custom, .btn-outline-warning {
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-custom {
    background-color: #007aff; /* Azul moderno */
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-custom:hover {
    background-color: #005bb5; /* Azul más oscuro en hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-warning {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-outline-warning:hover {
    background-color: #ffac33;
    color: #fff;
}

/* Card Styles */
.card {
    background-color: var(--card-bg); /* Borde visible de color gris claro */
    border: none;
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación suave en hover */
    margin-bottom: 20px; /* Consistent margin */
    height: 100%; /* Ensure cards take up full height of their container */
}

.card:hover {
    transform: translateY(-5px); /* Efecto de elevación */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Aumentar la sombra al hacer hover */
}

.card-body {
    padding: 20px; /* Espaciado interno */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space evenly */
}

.card-title {
    color: var(--primary-orange);
    font-size: 1.2rem; /* Tamaño del título más grande */
    font-weight: 600; /* Negrita */
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-light); /* Color de texto gris */
    font-size: 1rem; /* Tamaño del texto ajustado */
    margin-bottom: 15px; /* Separación del botón */
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 1rem;
    color: #333;
}

.form-control:focus {
    border-color: #007aff;
    box-shadow: 0 0 6px rgba(0, 122, 255, 0.3);
}

/* Embed Responsive Styles */
.embed-responsive {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Sombra suave en video */
}

/* Carousel Caption Styles */
.carousel-caption h5 {
    font-size: 2.5rem; /* Tamaño grande */
    font-weight: bold; /* Negrita */
    color: rgb(255, 255, 255); /* Color blanco */
}

.carousel-caption p {
    font-size: 1.2rem; /* Tamaño más grande */
    font-weight: bold; /* Negrita */
    color: rgb(255, 214, 99); /* Color de texto especial */
    margin-top: 10px;
}

/* Background White */
.bg-white {
    background-color: white !important;
}

/* Card Deck for Video Overlay */
.card-deck {
    position: absolute;
    bottom: 20px; /* Ajusta la distancia desde el fondo del video */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Ancho de las tarjetas */
}

/* Video Background */
.video-background {
    zoom: 1.11;
    position: fixed; /* Fixed position */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    z-index: -2;
    overflow: hidden;
    transition: opacity 0.5s ease; /* Smooth fade transition */
    transform: scale(1.1); /* Scale up slightly to compensate for zoom */
    transform-origin: center; /* Ensure scaling is centered */
}

.video-background.faded {
    opacity: 0; /* Faded out state */
}

.video-background iframe {
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    object-fit: cover; /* Ensure the video covers the entire area */
    pointer-events: none; /* Prevent interaction with the video */
}

/* Darkened Background Overlay */
.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Initially transparent */
    z-index: -1;
    transition: background-color 0.5s ease; /* Transition for smooth darkening */
}

.dark-overlay.active {
    background-color: rgba(0, 0, 0, 0.8); /* Darkened state */
}

/* Additional Cards Section */
#card-section {
    margin-top: 100px;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Move down slightly */
    transition: opacity 0.5s, transform 0.5s;
}

#card-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dark background for the first four cards */
#card-section .col-md-3:nth-child(-n+4) .card {
    background-color: var(--card-bg);
    color: #fff;
}

#card-section .col-md-3:nth-child(-n+4) .card-title {
    color: #ffac33;
}

#card-section .col-md-3:nth-child(-n+4) .card-text {
    color: #f8f9fa;
}

/* Cards below the first four */
#card-section .col-md-3:nth-child(n+5) .card {
    background-color: var(--card-bg);
    color: #fff;
}

#card-section .col-md-3:nth-child(n+5) .card-title {
    color: #ffac33;
}

#card-section .col-md-3:nth-child(n+5) .card-text {
    color: #f8f9fa;
}

/* Contact & About Us Section */
.contact-section,
.about-us-section {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-section {
    background-color: var(--card-bg);
    color: #fff;
}

.about-us-section {
    background-color: rgba(255, 255, 255, 0.9);
    color: #343a40;
}

.contact-section h4,
.about-us-section h2 {
    color: #ffac33;
    text-align: center;
    margin-bottom: 20px;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: none;
    border-radius: 5px;
    color: #343a40 !important;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #ffac33 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 172, 51, 0.25) !important;
}





/* Services Chart */
.chart-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

canvas {
    max-width: 100%;
    height: 400px !important;
}

/* Five Cards Section */
.five-cards-section .card {
    min-width: 320px;
    height: 440px;
    margin-bottom: 0;
}

.five-cards-section .card-title {
    font-size: 1.2rem;
}

.five-cards-section .list-unstyled li {
    color: #f8f9fa;
    padding: 5px 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }

    .contact-section,
    .about-us-section {
        padding: 20px;
    }
}

.process-list li {
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    position: relative;
}

.process-list li::before {
    content: "\25CF"; /* Unicode character for a bullet point */
    color: orange;
    position: absolute;
    left: 0;
}

.card-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1em;
}

.p-3 {
    padding: 1.5em !important;
}

.mb-4 {
    margin-bottom: 1.5em !important;
}

.py-5 {
    padding-top: 3em !important;
    padding-bottom: 3em !important;
}



.text-white {
    color: #fff !important;
}

.card-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1.5em;
}

.bg-transparent {
    background-color: transparent !important;
}

.mb-5 {
    margin-bottom: 3em !important;
}

.row {
    margin: 0;
}

.col-md-4, .col-md-8 {
    padding: 0;
}

.ag-format-container {
    width: 1142px;
    margin: 0 auto;
}

@media only screen and (max-width: 979px) {
    .ag-courses_item {
        flex-basis: calc(50% - 30px);
    }

    .ag-courses-item_title {
        font-size: 24px;
    }
}

@media only screen and (max-width: 767px) {
    .ag-format-container {
        width: 96%;
    }
}

@media only screen and (max-width: 639px) {
    .ag-courses_item {
        flex-basis: 100%;
    }

    .ag-courses-item_title {
        min-height: 72px;
        line-height: 1;
        font-size: 24px;
    }

    .ag-courses-item_link {
        padding: 22px 40px;
    }

    .ag-courses-item_date-box {
        font-size: 16px;
    }
}

/* Custom colors */
.text-white {
    color: #fff !important;
}

.ag-courses-item_bg {
    background-color: #ffac33; /* Use your orange color */
}

.ag-courses-item_title,
.ag-courses-item_date-box {
    color: #fff; /* White text color */
}

.ag-courses-item_link {
    background-color: rgba(0, 0, 0, 0.8); /* Dark background with opacity */
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap");

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 100vh;
}

.five-cards-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px 0;
}

.five-cards-section .card {
    position: relative;
    min-width: 320px;
    height: 440px;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
    inset -5px -5px 15px rgba(255, 255, 255, 0.1),
    5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 30px;
    transition: 0.5s;
    background-color: #232427; /* Set a default background color */
}

.five-cards-section .card:nth-child(1) .box .content a {
    background: #ffac33; /* Use your orange color */
}

.five-cards-section .card:nth-child(2) .box .content a {
    background: #ffac33; /* Use your orange color */
}

.five-cards-section .card:nth-child(3) .box .content a {
    background: #ffac33; /* Use your orange color */
}

.five-cards-section .card:nth-child(4) .box .content a {
    background: #ffac33; /* Use your orange color */
}

.five-cards-section .card .box {
    position: absolute;
    inset: 20px;
    background: var(--primary-dark);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: 0.5s;
}

.five-cards-section .card .box:hover {
    transform: translateY(-50px);
}

.five-cards-section .card .box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
}

.five-cards-section .card .box .content {
    padding: 20px;
    text-align: center;
}

.five-cards-section .card .box .content h2 {
    position: absolute;
    top: -10px;
    right: 30px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
}

.five-cards-section .card .box .content h3 {
    font-size: 1.8rem;
    color: #fff;
    z-index: 1;
    transition: 0.5s;
    margin-bottom: 15px;
}

.five-cards-section .card .box .content p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: 0.5s;
    text-align: left; /* Align text to the left */
}

.five-cards-section .card .box .content a {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: black;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.five-cards-section .card .box .content a:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    background: #fff;
    color: #000;
}

/* Custom styles for text color */
.text-white {
    color: #fff !important;
}

.faded-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 172, 51, 0.1);
}

.five-cards-section {
    margin-top: -1;
}

.five-cards-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
}

.five-cards-section .card {
    position: relative;
    min-width: 320px;
    height: 440px;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
    inset -5px -5px 15px rgba(255, 255, 255, 0.1),
    5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 30px;
    transition: 0.5s;
    background-color: #232427;
}

.faded-card {
    background: rgba(0, 0, 0, 0.3); /* More faded background */
    border: 1px solid rgba(255, 172, 51, 0.1);
}

.five-cards-section .card:nth-child(1) .box .content a {
    background: #ffac33;
}

.five-cards-section .card:nth-child(2) .box .content a {
    background: #ffac33;
}

.five-cards-section .card:nth-child(3) .box .content a {
    background: #ffac33;
}

.five-cards-section .card:nth-child(4) .box .content a {
    background: #ffac33;
}

.five-cards-section .card .box {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #2a2b2f;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: 0.5s;
}

.five-cards-section .card .box:hover {
    transform: translateY(-50px);
}

.five-cards-section .card .box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
}

.five-cards-section .card .box .content {
    padding: 20px;
    text-align: center;
}

.five-cards-section .card .box .content h2 {
    position: absolute;
    top: -10px;
    right: 30px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
}

.five-cards-section .card .box .content h3 {
    font-size: 1.8rem;
    color: #fff;
    z-index: 1;
    transition: 0.5s;
    margin-bottom: 15px;
}

.five-cards-section .card .box .content p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: 0.5s;
    text-align: left;
}

.five-cards-section .card .box .content a {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: black;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.five-cards-section .card .box .content a:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    background: #fff;
    color: #000;
}

.text-white {
    color: #fff !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
