/* =========================================================
   Grupo Vitae – Custom theme built on Bootstrap 5.3
   Brand primary: #ee7c00 (orange)
   ========================================================= */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
    --vitae-orange:       #ee7c00;
    --vitae-orange-dark:  #c96a00;
    --vitae-orange-light: #fff3e0;
    --vitae-dark:         #1c1c2e;
    --vitae-gray:         #636363;
    --vitae-light:        #f8f9fa;
    --vitae-border:       #e9ecef;

    /* Bootstrap 5 primary override */
    --bs-primary:         #ee7c00;
    --bs-primary-rgb:     238, 124, 0;
    --bs-link-color:      #ee7c00;
    --bs-link-hover-color:#c96a00;
}

/* ── 2. Base ───────────────────────────────────────────────── */
html, body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: #444;
    scroll-behavior: smooth;
}

a { color: var(--vitae-orange); }
a:hover { color: var(--vitae-orange-dark); }

img { max-width: 100%; height: auto; }

/* ── 3. Buttons ───────────────────────────────────────────── */
.btn-vitae,
.btn-primary {
    background-color: var(--vitae-orange);
    border-color:     var(--vitae-orange);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: .4px;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.btn-vitae:hover,
.btn-primary:hover {
    background-color: var(--vitae-orange-dark);
    border-color:     var(--vitae-orange-dark);
    color: #fff;
}
.btn-vitae:focus,
.btn-primary:focus {
    box-shadow: 0 0 0 .2rem rgba(238,124,0,.35);
}

/* Legacy class kept for backward compat */
.site-btn, .primary-btn {
    display: inline-block;
    padding: .55rem 1.5rem;
    background: var(--vitae-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}
.site-btn:hover, .primary-btn:hover {
    background: var(--vitae-orange-dark);
    color: #fff;
}

/* ── 4. Top-bar ────────────────────────────────────────────── */
.topbar {
    background: var(--vitae-dark);
    color: #ccc;
    font-size: .82rem;
    padding: .4rem 0;
}
.topbar a { color: #ccc; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    margin-left: 4px;
    font-size: .8rem;
    transition: background .2s;
}
.topbar .social-icons a:hover { background: var(--vitae-orange); color: #fff; }

/* ── 5. Navbar ─────────────────────────────────────────────── */
.vitae-navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: .6rem 0;
}
.vitae-navbar .navbar-brand img {
    height: 48px;
    width: auto;
}
.vitae-navbar .nav-link {
    font-weight: 600;
    color: #333;
    padding: .45rem .85rem;
    font-size: .93rem;
    border-radius: 5px;
    transition: color .2s, background .2s;
}
.vitae-navbar .nav-link:hover,
.vitae-navbar .nav-link.active {
    color: var(--vitae-orange);
    background: var(--vitae-orange-light);
}
.vitae-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    border-radius: 10px;
    min-width: 200px;
    padding: .5rem;
}
.vitae-navbar .dropdown-item {
    border-radius: 6px;
    font-weight: 500;
    font-size: .9rem;
    padding: .45rem .9rem;
    transition: background .15s, color .15s;
}
.vitae-navbar .dropdown-item:hover {
    background: var(--vitae-orange-light);
    color: var(--vitae-orange);
}
.vitae-navbar .navbar-toggler {
    border: none;
    padding: .4rem .6rem;
}
.vitae-navbar .navbar-toggler:focus { box-shadow: none; }
.vitae-navbar .btn-login {
    background: var(--vitae-orange);
    color: #fff;
    border-radius: 20px;
    padding: .35rem 1.1rem;
    font-size: .88rem;
    font-weight: 700;
    border: none;
    transition: background .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.vitae-navbar .btn-login:hover { background: var(--vitae-orange-dark); color: #fff; }

/* ── 6. Hero ───────────────────────────────────────────────── */
.hero-section { position: relative; }
.hero-section .carousel-item {
    height: 72vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
}
.hero-section .carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
}
.hero-section .hero-text {
    max-width: 520px;
    background: rgba(28,28,46,.55);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 2.2rem 2.4rem;
    color: #fff;
}
.hero-section .hero-text span {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--vitae-orange);
}
.hero-section .hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: .4rem 0 .8rem;
}
.hero-section .hero-text p { color: rgba(255,255,255,.9); }
.hero-section .carousel-indicators [data-bs-target] {
    background-color: var(--vitae-orange);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    opacity: .5;
}
.hero-section .carousel-indicators .active { opacity: 1; }
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon { filter: none; }
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 48px;
    height: 48px;
    background: var(--vitae-orange);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: .85;
}

/* ── 7. Banner Grid ────────────────────────────────────────── */
.banner-grid { padding: 2rem 0; background: var(--vitae-light); }
.banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    cursor: pointer;
}
.banner-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}
.banner-card:hover img { transform: scale(1.06); }
.banner-card .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    padding: 1rem .8rem .6rem;
    font-size: .85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s;
}
.banner-card:hover .banner-overlay { opacity: 1; }

/* ── 8. Area logos strip ──────────────────────────────────── */
.area-logos { padding: 2.5rem 0; background: #fff; border-top: 1px solid var(--vitae-border); }
.area-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem;
    transition: transform .2s;
}
.area-logo-item:hover { transform: scale(1.06); }
.area-logo-item img { max-height: 70px; width: auto; filter: grayscale(.2); transition: filter .2s; }
.area-logo-item:hover img { filter: grayscale(0); }

/* ── 9. Section spacing ───────────────────────────────────── */
.spad { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-title { font-weight: 800; color: var(--vitae-dark); margin-bottom: 1.5rem; }
.section-title span { color: var(--vitae-orange); }

/* ── 10. Blog / Content Pages ─────────────────────────────── */
.content-page { padding: 3rem 0 4rem; }
.content-page h2 { font-weight: 800; color: var(--vitae-dark); margin-bottom: 1.2rem; }
.content-page .lead-img { border-radius: 14px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.content-page .lead-img img { width: 100%; object-fit: cover; max-height: 420px; }

/* ── 11. Forms (Auth pages) ───────────────────────────────── */
.auth-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--vitae-orange-light) 0%, #fff 60%);
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.1);
    padding: 2.5rem 2rem;
}
.auth-card h2 {
    font-weight: 800;
    color: var(--vitae-dark);
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
}
.auth-card .form-label { font-weight: 600; font-size: .88rem; color: #444; }
.auth-card .form-control,
.auth-card .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--vitae-border);
    padding: .55rem .9rem;
    font-size: .93rem;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--vitae-orange);
    box-shadow: 0 0 0 .2rem rgba(238,124,0,.18);
}
.auth-card .btn-auth {
    background: var(--vitae-orange);
    border: none;
    color: #fff;
    padding: .65rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    margin-top: .5rem;
    letter-spacing: .3px;
    transition: background .2s;
}
.auth-card .btn-auth:hover { background: var(--vitae-orange-dark); }
.auth-card .auth-links { margin-top: 1.2rem; }
.auth-card .auth-links a {
    display: block;
    text-align: center;
    color: var(--vitae-orange);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    padding: .3rem 0;
    border-radius: 6px;
    transition: background .15s;
}
.auth-card .auth-links a:hover { background: var(--vitae-orange-light); }

/* ── 12. Registration Steps ───────────────────────────────── */
.step-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}
.step-bar .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
    position: relative;
}
.step-bar .step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -50%;
    right: 50%;
    height: 2px;
    background: var(--vitae-border);
    z-index: 0;
}
.step-bar .step:first-child::before { display: none; }
.step-bar .step.completed::before,
.step-bar .step.active::before { background: var(--vitae-orange); }
.step-bar .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vitae-border);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: background .3s, color .3s;
}
.step-bar .step.active .step-circle { background: var(--vitae-orange); color: #fff; }
.step-bar .step.completed .step-circle { background: #28a745; color: #fff; }
.step-bar .step-label {
    font-size: .78rem;
    font-weight: 700;
    color: #888;
    margin-top: .4rem;
    text-align: center;
}
.step-bar .step.active .step-label,
.step-bar .step.completed .step-label { color: var(--vitae-dark); }

/* ── 13. Accordion (paso1) ────────────────────────────────── */
.accordion-vitae .accordion-item {
    border: 1.5px solid var(--vitae-border);
    border-radius: 10px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}
.accordion-vitae .accordion-button {
    font-weight: 700;
    font-size: 1rem;
    color: var(--vitae-dark);
    background: var(--vitae-light);
    border-radius: 10px !important;
}
.accordion-vitae .accordion-button:not(.collapsed) {
    background: var(--vitae-orange-light);
    color: var(--vitae-orange);
    box-shadow: none;
}
.accordion-vitae .accordion-button::after {
    filter: none;
}
.accordion-vitae .accordion-button:focus { box-shadow: none; }

/* ── 14. Data Tables ──────────────────────────────────────── */
.table-vitae th { background: var(--vitae-orange-light); color: var(--vitae-dark); font-weight: 700; }
.table-vitae td, .table-vitae th { vertical-align: middle; }
.table-vitae tbody tr:hover { background: rgba(238,124,0,.04); }

/* ── 15. Camp Config Card (paso2) ─────────────────────────── */
.camp-config-card {
    background: #fff;
    border: 1.5px solid var(--vitae-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.camp-config-card h5 { font-weight: 800; color: var(--vitae-dark); margin-bottom: 1rem; }

/* ── 16. Order Summary (paso3) ────────────────────────────── */
.order-summary {
    background: var(--vitae-light);
    border-radius: 14px;
    padding: 1.5rem;
}
.order-summary .order-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--vitae-orange);
    border-top: 2px solid var(--vitae-border);
    padding-top: .75rem;
    margin-top: .75rem;
}

/* ── 17. Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--vitae-dark);
    color: rgba(255,255,255,.8);
    padding: 3.5rem 0 0;
}
.site-footer .footer-brand img { max-width: 150px; margin-bottom: 1rem; }
.site-footer .footer-contact li { list-style: none; margin-bottom: .5rem; font-size: .9rem; }
.site-footer .footer-contact li a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer .footer-contact li a:hover { color: var(--vitae-orange); }
.site-footer .footer-heading {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.site-footer .footer-links { list-style: none; padding: 0; }
.site-footer .footer-links li { margin-bottom: .45rem; }
.site-footer .footer-links a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}
.site-footer .footer-links a:hover { color: var(--vitae-orange); }
.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    margin-right: 6px;
    font-size: .9rem;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.site-footer .footer-social a:hover { background: var(--vitae-orange); color: #fff; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1rem 0;
    margin-top: 2.5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    text-align: center;
}
.site-footer .logos-subvencion { margin: 1.5rem 0 0; }
.site-footer .logos-subvencion img { max-height: 70px; filter: brightness(0) invert(.8); }

/* ── 18. Area logos strip (footer version) ────────────────── */
.areas-strip {
    background: var(--vitae-orange);
    padding: 1.5rem 0;
}
.areas-strip .area-logo-item img { filter: brightness(0) invert(1); max-height: 60px; }
.areas-strip .area-logo-item:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,.6)); }

/* ── 19. Alert info boxes ─────────────────────────────────── */
.alert-vitae {
    background: var(--vitae-orange-light);
    border-left: 4px solid var(--vitae-orange);
    border-radius: 8px;
    color: var(--vitae-dark);
    font-size: .92rem;
}

/* ── 20. Page loader ──────────────────────────────────────── */
#preloder {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader {
    width: 44px;
    height: 44px;
    border: 4px solid var(--vitae-orange-light);
    border-top-color: var(--vitae-orange);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 21. Responsive tweaks ────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-section .carousel-item { height: 55vh; }
    .hero-section .hero-text { padding: 1.4rem 1.2rem; }
    .topbar .d-md-flex { display: none !important; }
    .step-bar .step-label { font-size: .7rem; }
}
@media (max-width: 575.98px) {
    .auth-card { padding: 1.5rem 1rem; }
    .hero-section .hero-text h1 { font-size: 1.5rem; }
    .hero-section .carousel-item { height: 48vh; }
    .step-bar { gap: 0; }
    .step-bar .step-label { display: none; }
}

/* ── 22. Utilities ────────────────────────────────────────── */
.text-vitae    { color: var(--vitae-orange) !important; }
.bg-vitae      { background-color: var(--vitae-orange) !important; }
.bg-vitae-light{ background-color: var(--vitae-orange-light) !important; }
.border-vitae  { border-color: var(--vitae-orange) !important; }
.fw-600        { font-weight: 600 !important; }
.fw-700        { font-weight: 700 !important; }
.fw-800        { font-weight: 800 !important; }
