/*******************************
GENERAL SET
 *******************************/
:root {
    --brand-red: rgb(204, 49, 48);
    --brand-purple: #342B60;
    --soft-purple: #ccc6e1;
    
    /* Fonts */
    --font-heading: 'Alegreya SC', sans-serif;;
    --font-menu: 'Alegreya Sans', sans-serif;
    --font-body: 'Alegreya Sans', sans-serif;
}

body, html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: #444;
    background-color: #fff;
}

p{font-size: 17px;}

/* 2. NAVIGATION BAR */
.navbar {
    background-color: #fff;
    /* Reduced vertical padding because line-height handles spacing now */
    padding-top: 10px; 
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.navbar-brand img {
    max-height: 75px; 
}

/* Menu Links - Matching Computed Style Exactly */
.navbar-nav .nav-link {
    font-family: var(--font-menu); 
    font-weight: 400;              /* Normal weight */
    font-size: 17px;               /* Exact size from computed style */
    line-height: 50px;             /* Exact line height from computed style */
    color: var(--brand-purple) !important; 
    padding: 0 15px !important;    /* Left/Right padding only */
    text-transform: none;          /* Original didn't look capitalized */
    transition: color 0.4s ease;   
}

/* Hover and Active State */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-red) !important; 
}

/* Dropdown Arrow Fix */
.dropdown-toggle::after {
    color: var(--brand-purple);
    vertical-align: middle;
    margin-left: 5px;
}
.nav-link:hover.dropdown-toggle::after,
.nav-link.active.dropdown-toggle::after {
    color: var(--brand-red);
}

/* 3. CONTACT BUTTON */
.btn-contact {
    background-color: var(--brand-red);
    color: white !important;
    border: none;
    border-radius: 0px; 
    padding: 10px 30px;
    font-weight: 400; 
    font-family: var(--font-menu);
    font-size: 17px;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #a82423; 
    color: white;
}


.dropdown-item.active, .dropdown-item:active {
            background-color: var(--brand-purple);
            color: #fff;
        }


/****************************
 FOOTER STYLES
 ****************************/

footer{border-top: 1px solid var(--soft-purple);}
footer h2{color: var(--brand-purple);font-size: 30px;font-weight: 400;}

.icon-box {
    background-color: var(--brand-purple);
    color: white;
    width: 45px;       /* Fixed square size */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 0;  /* Sharp corners */
    flex-shrink: 0;    /* Prevents squishing */
}


.contact-text {
    font-family: var(--font-body);
    font-size: 17px;
    color: #333;
    line-height: 1.2;
}

.footer-input {
    background-color: #EFEFEF !important; /* Matches original gray */
    border: none !important;
    border-radius: 0 !important;
    height: 50px;
    color: #333;
    font-size: 16px;
    padding-left: 20px;
}

.footer-input::placeholder {
    color: #777;
    font-weight: 400;
}

.btn-footer {
    background-color: var(--brand-red);
    color: white !important;
    border: none;
    border-radius: 0 !important;
    height: 50px;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.3s;
}

.btn-footer:hover {
    background-color: #a82423;
}


/****************************
 HOME STYLES
 ****************************/
.hero-container {
    position: relative;
    height: 600px; /* Fixed height for the hero */
    overflow: hidden;
    background-color: #000; /* Fallback color */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth Fade */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide.active {
    opacity: 1; /* Show active slide */
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darkens image for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 900px;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.slider-arrow:hover {
    color: white;
}

.arrow-left { left: 20px; }
.arrow-right { right: 20px; }




/* --- SECTION TITLES --- */
.section-title {
    font-family: var(--font-heading);
    color: var(--brand-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

/* --- INFO GRID (Zoom Effect) --- */
.info-card {
    background: #fff;
    overflow: hidden; /* Keeps zoom inside */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 90%;
    margin: auto;
}

.info-card a {
    text-decoration: none;
}

.img-holder {
    overflow: hidden;
}

.info-card img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.card-footer-custom {
    padding: 20px;
    text-align: center;
    background: #fff;
    color: var(--brand-purple);
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 300;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

/* HOVER STATES */
.info-card:hover img {
    transform: scale(1.1); /* Zoom in */
}

.info-card:hover .card-footer-custom {
    background-color: var(--brand-purple);
    color: white;
}

/* --- BIG BANNER (Experiencia) --- */
.experience-banner {
    /* Use 'slider-bg.jpg' or a different image for this strip */
    background: url('img/slider-bg.jpg') center/cover no-repeat;
    height: 400px;
    position: relative;
    margin-top: 60px;
    margin-bottom: 60px;
}

.experience-banner .overlay {
    background-color: rgba(52, 43, 96, 0.85); /* Heavy Purple Overlay */
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.exp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.exp-slide.active {
    opacity: 1;
}

.fake-arrow {
    cursor: pointer; /* Ensure it looks clickable */
}


.fake-arrow {
    color: white;
    font-size: 2rem;
    position: absolute;
    opacity: 0.5;
    cursor: pointer;
}
.fake-arrow:hover { opacity: 1; }
.fake-arrow.left { left: 30px; }
.fake-arrow.right { right: 30px; }

/* --- ICONS ROW --- */
.icon-feature {
    text-align: center;
    color: var(--brand-purple);
}

.icon-feature img {
    width: 90px;
    margin-bottom: 15px;
}

.icon-feature p {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--brand-purple);
}

/* --- PURPLE BLOCK BUTTONS --- */
.btn-purple-block {
    background-color: var(--brand-purple);
    color: white;
    padding: 15px 40px;
    text-transform: capitalize;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn-purple-block:hover {
    background-color: #261f47; /* Darker purple */
    color: white;
}


.video-list .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    padding: 15px;
    font-family: var(--font-body);
    color: #666;
    transition: background 0.2s;
}

.video-list .list-group-item:hover {
    background-color: #f9f9f9;
}

.video-list .list-group-item.active {
    background-color: #f0f0f0;
    color: var(--brand-purple);
    border-color: transparent;
    font-weight: bold;
}

.text-purple {
    color: var(--brand-purple);
}

.video-thumb-img {
    width: 100px;
    height: 56px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

/****************************
 CERTIFICACION STYLES
 ****************************/
 /* --- SUB-PAGE HEADER --- */
.page-header {
    /* Replace with a generic background or specific image for certification */
    background: url('img/slider-bg.jpg') center/cover no-repeat; 
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 50px;
}

.page-header .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(52, 43, 96, 0.7); /* Brand Purple Overlay */
}

.page-header h1 {
    position: relative;
    z-index: 2;
    color: white;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
}

/* --- ACCORDION STYLING --- */
.custom-accordion .accordion-button {
    color: var(--brand-purple);
    font-weight: 500;
    font-size: 20px;
    font-style: normal;
    font-family: var(--font-heading);
    background-color: #fff;
    border: none;
    box-shadow: none; 
    padding: 1.25rem;
    text-transform: capitalize;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--brand-purple);
    background-color: rgba(201, 153, 235, 0.166);
    box-shadow: none; 
}

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

.custom-accordion .accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 0 !important;
}


.accordion-body p{font-size: 18px;}

/* --- CONTACT SIDEBAR --- */
.contact-sidebar h3 {
    font-family: var(--font-heading);
    color: var(--brand-purple);
    margin-bottom: 20px;
}

.contact-sidebar p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* --- CONTENT SECTIONS --- */
.content-section-title {
    font-family: var(--font-heading);
    color: var(--brand-purple);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/****************************
 DIPLOMADOS STYLES
 ****************************/


.tdaquote{
    color: #5A318C;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    text-transform: capitalize;
    font-style: normal;
    line-height: 34px;
    text-align: center;
}
 
.cursos-spacer {
    margin: 80px 0;
    font-size: 40px;
    color: purple; /* Controls icon and line color */
    
    /* Flexbox magic */
    display: flex;
    align-items: center; /* Vertically aligns line with icon */
    justify-content: center;
}

/* Create the lines */
.cursos-spacer::before,
.cursos-spacer::after {
    content: "";
    flex: 1; /* Makes the lines stretch to fill the space */
    border-bottom: 1px solid purple; /* The actual line */
    margin: 0 20px; /* Adds space between the icon and the lines */
}

/* --- MINI CAROUSEL (Tao del Amor) --- */
.mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade */
    z-index: 1;
}

.mini-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Custom styles just for the form inputs */
    .custom-input {
        background-color: #fff;
        border: none;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        padding: 12px;
        transition: border-color 0.3s;
    }
    .custom-input:focus {
        border-color: var(--brand-purple);
        box-shadow: none;
        background-color: #fff;
    }
    .contact-info-item p {
        font-family: var(--font-body);
    }
    
    .btn-red-square {
        border-radius: 0;
        letter-spacing: 1px;
    }
    /* Style for disabled button */
    .btn-red-square:disabled {
        background-color: #e57373;
        cursor: not-allowed;
        opacity: 0.8;
    }

/* MOBILE VERSIONS */