:root {
  --oul-gold: #ffc451;
  --oul-gold-dark: #d99a00;
  --oul-dark: #151515;
  --oul-text: #343a40;
  --oul-muted: #6c757d;
  --oul-soft: #f7f4ed;
  --oul-white: #ffffff;
  --oul-radius: 22px;
  --oul-shadow: 0 16px 45px rgba(0, 0, 0, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--oul-text);
  background: #fff;
}
a { color: var(--oul-gold-dark); text-decoration: none; }
a:hover { color: #b37a00; }

.site-header {
  padding: 16px 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
  transition: all .25s ease;
  z-index: 999;
}
.site-header.scrolled { padding: 10px 0; background: rgba(0, 0, 0, .92); }
.brand { font-family: "Raleway", sans-serif; color: #fff; font-size: 25px; font-weight: 800; letter-spacing: .2px; }
.brand:hover { color: #fff; }
.brand b, .brand span b { color: var(--oul-gold); }
.brand-logo { width: 38px; height: 38px; object-fit: contain; }
.main-nav ul { margin: 0; padding: 0; display: flex; gap: 24px; list-style: none; align-items: center; }
.main-nav a { color: #fff; font-size: 14px; font-weight: 600; font-family: "Poppins", sans-serif; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--oul-gold); transition: width .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--oul-gold); }
.mobile-toggle { display: none; color: #fff; background: transparent; border: 0; font-size: 30px; line-height: 1; }

.hero-section { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hero-section .carousel { position: absolute; inset: 0; }
.hero-section .carousel-inner, .hero-section .carousel-item { height: 100%; }
.hero-bg { height: 100vh; background-size: cover; background-position: center; transform: scale(1.04); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.75), rgba(0,0,0,.50), rgba(0,0,0,.72)); }
.hero-content { position: relative; z-index: 3; color: #fff; padding-top: 90px; }
.eyebrow { display: inline-flex; padding: 8px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: var(--oul-gold); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1.4px; margin-bottom: 18px; }
.hero-content h1 { font-family: "Raleway", sans-serif; font-size: clamp(42px, 7vw, 82px); font-weight: 800; margin: 0 0 18px; }
.hero-content h1 span { color: var(--oul-gold); }
.hero-content p { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.88); font-size: clamp(17px, 2vw, 22px); line-height: 1.6; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn-warning { background: var(--oul-gold); border-color: var(--oul-gold); color: #151515; font-weight: 700; }
.btn-warning:hover { background: #e6a930; border-color: #e6a930; color: #151515; }
.quick-card { display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; padding: 24px 18px; color: #fff; background: rgba(0,0,0,.20); min-height: 135px; transition: all .2s ease; }
.quick-card i { font-size: 34px; color: var(--oul-gold); }
.quick-card span { font-weight: 700; }
.quick-card:hover { transform: translateY(-5px); background: rgba(255,196,81,.12); color: #fff; border-color: var(--oul-gold); }

.section { padding: 90px 0; }
.bg-light-soft { background: var(--oul-soft); }
.section-title { margin-bottom: 45px; }
.section-title h2 { font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 700; color: #777; text-transform: uppercase; letter-spacing: 2px; position: relative; display: inline-flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.section-title h2::after { content: ""; width: 72px; height: 1px; background: var(--oul-gold); display: inline-block; }
.section-title p { font-family: "Raleway", sans-serif; color: var(--oul-dark); font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin: 0; }
.section-title.clean { margin-bottom: 22px; }
.lead { color: #555; }

.image-stack { position: relative; }
.image-stack img { width: 100%; min-height: 420px; object-fit: cover; }
.floating-box { position: absolute; right: 24px; bottom: 24px; background: #fff; border-radius: 18px; box-shadow: var(--oul-shadow); padding: 18px 22px; display: grid; gap: 3px; border-left: 5px solid var(--oul-gold); }
.floating-box strong { color: #111; font-size: 18px; }
.floating-box span { color: var(--oul-muted); }
.feature-pill { height: 100%; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 14px 16px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.feature-pill i { color: var(--oul-gold-dark); margin-right: 8px; }

.service-card { height: 100%; background: #fff; border-radius: var(--oul-radius); padding: 28px 24px; box-shadow: 0 12px 32px rgba(0,0,0,.06); transition: all .2s ease; border: 1px solid rgba(0,0,0,.04); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--oul-shadow); }
.service-card i { font-size: 38px; color: var(--oul-gold-dark); }
.service-card h3 { font-size: 20px; font-weight: 800; margin: 16px 0 10px; color: #151515; }
.service-card p { color: var(--oul-muted); margin: 0; }

.content-card { background: #fff; border-radius: var(--oul-radius); overflow: hidden; box-shadow: 0 12px 35px rgba(0,0,0,.07); transition: all .2s ease; border: 1px solid rgba(0,0,0,.05); }
.content-card:hover { transform: translateY(-6px); box-shadow: var(--oul-shadow); }
.card-img-wrap { display: block; height: 255px; overflow: hidden; background: #eee; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .card-img-wrap img { transform: scale(1.06); }
.content-card-body { padding: 24px; }
.card-meta { font-size: 13px; color: var(--oul-muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-meta i { color: var(--oul-gold-dark); }
.content-card h3 { font-size: 21px; color: #151515; margin-bottom: 10px; font-weight: 800; }
.content-card p { color: #5d6570; margin: 0; line-height: 1.6; }
.empty-state { background: #fff; border: 1px dashed #ddd; border-radius: var(--oul-radius); padding: 36px; text-align: center; color: var(--oul-muted); }

.volunteer-cta { padding: 95px 0; color: #fff; background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)), url('../img/cta-bg.jpg') center/cover fixed; }
.volunteer-cta h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; font-family: "Raleway", sans-serif; }
.volunteer-cta p { max-width: 820px; margin: 16px auto 0; color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.7; }

.gallery-item { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.08); aspect-ratio: 1/1; background: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.location-card, .map-card, .contact-info-card, .contact-form, .team-card { background: #fff; border-radius: var(--oul-radius); box-shadow: 0 12px 35px rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.05); }
.location-card { padding: 30px; }
.location-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: #fff4d8; color: var(--oul-gold-dark); font-size: 28px; margin-bottom: 18px; }
.location-card h3 { font-size: 24px; font-weight: 800; color: #111; }
.location-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.location-card li { color: #4a4f55; display: flex; gap: 9px; align-items: flex-start; }
.location-card li i { color: var(--oul-gold-dark); margin-top: 3px; }
.map-card { overflow: hidden; height: 100%; min-height: 360px; }
.map-card iframe { border: 0; width: 100%; height: 100%; min-height: 360px; }

.team-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.team-card img { width: 100%; height: 310px; object-fit: cover; object-position: center top; background: #eee; }
.team-card div { padding: 22px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.team-card h3 { font-size: 19px; font-weight: 800; color: #111; margin-bottom: 5px; }
.team-card span { color: var(--oul-muted); font-weight: 600; }

.contact-info-card { padding: 28px; }
.info-item { display: flex; gap: 16px; padding: 17px 0; border-bottom: 1px solid #eee; }
.info-item:last-of-type { border-bottom: 0; }
.info-item > i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; background: #fff4d8; color: var(--oul-gold-dark); font-size: 20px; }
.info-item h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: #111; }
.info-item p { margin: 0; color: var(--oul-muted); }
.social-mini { display: flex; gap: 10px; margin-top: 24px; }
.social-mini a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; }
.social-mini a:hover { background: var(--oul-gold); color: #111; }
.contact-form { padding: 32px; }
.form-control { min-height: 48px; border-color: #e5e5e5; border-radius: 12px; }
.form-control:focus { border-color: var(--oul-gold); box-shadow: 0 0 0 .25rem rgba(255,196,81,.2); }
textarea.form-control { min-height: 150px; }

.site-footer { background: #111; color: #fff; padding: 60px 0 0; }
.site-footer h3 { font-family: "Raleway", sans-serif; font-size: 30px; font-weight: 800; }
.site-footer h3 span { color: var(--oul-gold); }
.site-footer p { color: rgba(255,255,255,.72); max-width: 520px; }
.site-footer h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--oul-gold); }
.footer-bottom { margin-top: 45px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.7); text-align: center; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; display: none; place-items: center; border-radius: 50%; background: var(--oul-gold); color: #111; z-index: 998; font-size: 26px; box-shadow: 0 8px 25px rgba(0,0,0,.18); }
.back-to-top.show { display: grid; }

@media (max-width: 991px) {
  .main-nav { position: fixed; inset: 70px 16px auto 16px; background: rgba(0,0,0,.95); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 11px 8px; }
  .mobile-toggle { display: inline-flex; }
  .section { padding: 70px 0; }
  .hero-content { padding-top: 110px; }
  .quick-card { min-height: auto; }
}

@media (max-width: 575px) {
  .brand span { font-size: 20px; }
  .hero-content p { font-size: 16px; }
  .section-title p { font-size: 30px; }
  .contact-form { padding: 22px; }
  .team-card img { height: 260px; }
}


/* ===== Páginas internas: login, reset y dashboard ===== */
.auth-page, .dashboard-page { background: var(--oul-soft); min-height: 100vh; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 70px; position: relative; overflow: hidden; }
.auth-shell::before, .dashboard-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.78), rgba(0,0,0,.45)), url('../img/img1.jpg') center/cover no-repeat; }
.auth-card { position: relative; z-index: 2; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.55); border-radius: 26px; box-shadow: var(--oul-shadow); padding: clamp(24px, 4vw, 42px); }
.auth-card .section-title { margin-bottom: 22px; }
.auth-card .form-control, .dashboard-card .form-control, .dashboard-card .form-select, .modal .form-control, .modal .form-select { border-radius: 14px; padding: 12px 14px; border-color: #e5e0d6; }
.auth-card .form-control:focus, .dashboard-card .form-control:focus, .modal .form-control:focus { border-color: var(--oul-gold); box-shadow: 0 0 0 .25rem rgba(255,196,81,.22); }
.auth-help { color: var(--oul-muted); font-size: 14px; }
.dashboard-hero { position: relative; min-height: 52vh; display: flex; align-items: center; padding-top: 90px; overflow: hidden; }
.dashboard-hero .container { position: relative; z-index: 2; color: #fff; }
.dashboard-hero h1 { font-family: Raleway, sans-serif; font-weight: 800; font-size: clamp(38px, 5vw, 68px); }
.dashboard-hero h1 span { color: var(--oul-gold); }
.dashboard-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 8px 14px; color: var(--oul-gold); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.dashboard-main { padding: 72px 0; }
.dashboard-card { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: 24px; box-shadow: 0 14px 40px rgba(0,0,0,.07); overflow: hidden; }
.dashboard-card .card-header { background: #fff; border-bottom: 1px solid #f0ece3; padding: 22px 24px; }
.dashboard-table th { color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; white-space: nowrap; }
.dashboard-table td { vertical-align: middle; }
.dashboard-thumb { width: 72px; height: 52px; object-fit: cover; border-radius: 12px; border: 1px solid #eee; background: #f8f8f8; }
.text-limit { max-width: 430px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .75rem; margin-top: .85rem; }
.image-chip { position: relative; border: 1px solid #e8e2d8; border-radius: 16px; padding: 7px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.image-chip img { width: 100%; height: 92px; object-fit: cover; border-radius: 12px; display: block; }
.image-chip button { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(0,0,0,.72); color: #fff; display: grid; place-items: center; }
.modal-content { border: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--oul-shadow); }
.modal-header { border-bottom: 1px solid #f0ece3; }
.modal-footer { border-top: 1px solid #f0ece3; }
.table-actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.dropdown-menu { border-radius: 16px; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
@media (max-width: 991px) { .dashboard-main { padding: 48px 0; } .dashboard-hero { min-height: 48vh; } }

.main-nav .nav-home-link { background: var(--oul-gold); color: #111 !important; border-radius: 999px; padding: 9px 16px; font-weight: 800; }
.main-nav .nav-home-link:hover { background: #fff; color: #111 !important; }
.stat-card { background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 14px 40px rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.05); }
.stat-card span { color: var(--oul-muted); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .7px; }
.stat-card strong { display: block; color: #151515; font-size: 40px; line-height: 1; margin-top: 10px; }
.image-chip-new::after { content: "Nueva"; position: absolute; left: 10px; bottom: 10px; background: var(--oul-gold); color: #111; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; }

.dashboard-user-email { color: #fff; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 13px; }
.compact-footer { padding-top: 42px; margin-top: 0; }
.compact-footer .footer-bottom { margin-top: 34px; }
.auth-page .site-footer { margin-top: 0; }
.dashboard-page .site-footer { margin-top: 12px; }
@media (max-width: 575px) { .dashboard-user-menu { gap: .5rem !important; } .dashboard-user-email { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
