/* ============================================================
   CTVES - Centro Terapéutico de Vida en el Espíritu Santo
   Hoja de estilos corporativa y espiritual compartida
   ============================================================ */

/* ---------- Variables de diseño ---------- */
:root {
    --ctves-navy:       #1B2A4A;
    --ctves-navy-dark:  #0F1A30;
    --ctves-purple:     #3D1F5C;
    --ctves-gold:       #C9A84C;
    --ctves-gold-light: #E8C97A;
    --ctves-cream:      #FDF6EC;
    --ctves-light:      #F4F1FA;
    --ctves-white:      #FFFFFF;
    --ctves-text:       #2C2C3E;
    --ctves-muted:      #6C6C80;
    --ctves-gradient:   linear-gradient(135deg, #1B2A4A 0%, #3D1F5C 100%);
    --ctves-gradient-gold: linear-gradient(135deg, #C9A84C 0%, #E8C97A 100%);
    --ctves-shadow:     0 8px 32px rgba(27, 42, 74, 0.15);
    --ctves-shadow-lg:  0 16px 48px rgba(27, 42, 74, 0.25);
    --ctves-radius:     12px;
    --ctves-radius-sm:  8px;
}

/* ---------- Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Lato', 'Open Sans', sans-serif;
    color: var(--ctves-text);
    background-color: var(--ctves-cream);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
    font-weight: 700;
    color: var(--ctves-navy);
    letter-spacing: 0.03em;
}

a { color: var(--ctves-gold); transition: all 0.3s ease; }
a:hover { color: var(--ctves-gold-light); text-decoration: none; }

/* ---------- Navbar corporativa ---------- */
.ctves-navbar {
    background: var(--ctves-gradient) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0;
    min-height: 70px;
    border-bottom: 2px solid var(--ctves-gold);
}

.ctves-navbar .navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ctves-gold) !important;
    letter-spacing: 0.08em;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctves-navbar .navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--ctves-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.ctves-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 24px 14px !important;
    position: relative;
    transition: all 0.3s ease;
}

.ctves-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--ctves-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ctves-navbar .nav-link:hover {
    color: var(--ctves-gold) !important;
}
.ctves-navbar .nav-link:hover::after { width: 80%; }

/* ---------- Sección hero espiritual ---------- */
.ctves-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ctves-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,42,74,0.88) 0%, rgba(61,31,92,0.80) 60%, rgba(201,168,76,0.15) 100%);
    z-index: 1;
}

.ctves-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/login.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 8s ease;
}

.ctves-hero-content {
    position: relative;
    z-index: 2;
}

/* Efecto rayo de luz divina */
.ctves-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 60%;
    width: 300px;
    height: 120%;
    background: linear-gradient(180deg, rgba(201,168,76,0.12) 0%, transparent 100%);
    transform: rotate(-15deg);
    z-index: 1;
    pointer-events: none;
}

/* ---------- Cards corporativas ---------- */
.ctves-card {
    background: var(--ctves-white);
    border-radius: var(--ctves-radius);
    box-shadow: var(--ctves-shadow);
    border: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.ctves-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ctves-shadow-lg);
}

.ctves-card-header {
    background: var(--ctves-gradient);
    padding: 20px 25px;
    color: white;
}

.ctves-card-header h3, .ctves-card-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.ctves-card .gold-line {
    height: 3px;
    background: var(--ctves-gradient-gold);
    border: none;
    margin: 0;
}

/* ---------- Login card ---------- */
.ctves-login-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--ctves-radius);
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(27,42,74,0.4);
    border-top: 4px solid var(--ctves-gold);
}

.ctves-login-card .login-title {
    font-family: 'Cinzel', serif;
    color: var(--ctves-navy);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 8px;
}

.ctves-login-card .login-subtitle {
    color: var(--ctves-muted);
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.ctves-login-card .form-control {
    border: 1.5px solid #ddd;
    border-radius: var(--ctves-radius-sm);
    padding: 12px 40px 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background-color: #FAFAFA;
}

.ctves-login-card .form-control:focus {
    border-color: var(--ctves-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
    background-color: white;
}

.ctves-login-card .input-icon-wrap {
    position: relative;
}

.ctves-login-card .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ctves-muted);
    font-size: 0.9rem;
}

/* ---------- Botones ---------- */
.btn-ctves-primary {
    background: var(--ctves-gradient);
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(27,42,74,0.3);
}

.btn-ctves-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27,42,74,0.45);
    background: linear-gradient(135deg, #243560 0%, #4d2775 100%);
}

.btn-ctves-gold {
    background: var(--ctves-gradient-gold);
    color: var(--ctves-navy) !important;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.btn-ctves-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.55);
}

.btn-ctves-outline {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-ctves-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--ctves-gold);
    color: var(--ctves-gold) !important;
}

.btn-ctves-back {
    background: rgba(255,255,255,0.15);
    color: white !important;
    border: 2px solid var(--ctves-gold);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ctves-back:hover {
    background: var(--ctves-gold);
    color: var(--ctves-navy) !important;
}

/* ---------- Secciones ---------- */
.ctves-section {
    padding: 80px 0;
}

.ctves-section-light {
    background-color: var(--ctves-light);
}

.ctves-section-cream {
    background-color: var(--ctves-cream);
}

.ctves-section-dark {
    background: var(--ctves-gradient);
    color: white;
}

.ctves-section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--ctves-navy);
    margin-bottom: 12px;
    text-align: center;
}

.ctves-section-subtitle {
    color: var(--ctves-muted);
    text-align: center;
    max-width: 550px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

.ctves-gold-divider {
    width: 70px;
    height: 3px;
    background: var(--ctves-gradient-gold);
    border: none;
    margin: 16px auto 30px;
    border-radius: 3px;
}

/* ---------- Feature / Servicio cards ---------- */
.ctves-service-card {
    background: white;
    border-radius: var(--ctves-radius);
    overflow: hidden;
    box-shadow: var(--ctves-shadow);
    transition: all 0.35s ease;
    cursor: pointer;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.ctves-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ctves-shadow-lg);
    border-bottom-color: var(--ctves-gold);
}

.ctves-service-card .service-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ctves-service-card .service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ctves-service-card:hover .service-img-wrap img {
    transform: scale(1.08);
}

.ctves-service-card .service-icon-overlay {
    position: absolute;
    top: 12px; right: 12px;
    width: 40px; height: 40px;
    background: var(--ctves-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ctves-navy);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ctves-service-card .card-body {
    padding: 22px;
}

.ctves-service-card .card-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--ctves-navy);
    margin-bottom: 8px;
}

.ctves-service-card .card-text {
    color: var(--ctves-muted);
    font-size: 0.9rem;
}

/* ---------- Versículo / Cita espiritual ---------- */
.ctves-verse {
    background: var(--ctves-gradient);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ctves-verse::before {
    content: '\201C';
    font-family: 'Cinzel', serif;
    font-size: 200px;
    color: rgba(201,168,76,0.1);
    position: absolute;
    top: -30px; left: 20px;
    line-height: 1;
}

.ctves-verse blockquote {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: white;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.ctves-verse .verse-ref {
    color: var(--ctves-gold);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 20px;
}

/* ---------- Stat / Info boxes ---------- */
.ctves-stat-box {
    text-align: center;
    padding: 30px 20px;
}

.ctves-stat-box .stat-icon {
    width: 64px; height: 64px;
    background: var(--ctves-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--ctves-navy);
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.ctves-stat-box .stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ctves-gold);
    line-height: 1;
    margin-bottom: 6px;
}

.ctves-stat-box .stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- Footer ---------- */
.ctves-footer {
    background: var(--ctves-navy-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 30px;
    border-top: 3px solid var(--ctves-gold);
}

.ctves-footer h5 {
    color: var(--ctves-gold);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.ctves-footer a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.ctves-footer a:hover { color: var(--ctves-gold); }

.ctves-footer .footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--ctves-gold);
    margin-bottom: 12px;
}

.ctves-footer .footer-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.ctves-footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    margin-right: 8px;
    color: white !important;
    font-size: 1rem;
    transition: all 0.3s;
}

.ctves-footer .social-icon:hover {
    background: var(--ctves-gold);
    color: var(--ctves-navy) !important;
    transform: translateY(-3px);
}

.ctves-footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

.ctves-footer .footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* ---------- Info section contact boxes ---------- */
.ctves-info-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--ctves-radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.ctves-info-box:hover {
    background: rgba(201,168,76,0.1);
    transform: translateY(-5px);
    border-color: var(--ctves-gold);
}

.ctves-info-box .info-icon {
    width: 56px; height: 56px;
    background: var(--ctves-gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: var(--ctves-navy);
}

.ctves-info-box h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
}

.ctves-info-box p {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- Document list items ---------- */
.ctves-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: var(--ctves-radius-sm);
    color: var(--ctves-text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: 4px;
    background: white;
    text-decoration: none !important;
}

.ctves-doc-item:hover {
    background: var(--ctves-light);
    border-color: var(--ctves-gold);
    color: var(--ctves-navy);
    transform: translateX(6px);
    box-shadow: 0 2px 12px rgba(27,42,74,0.1);
}

.ctves-doc-item .doc-num {
    width: 28px; height: 28px;
    background: var(--ctves-gradient);
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ctves-doc-item .doc-icon {
    color: var(--ctves-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---------- Section header band ---------- */
.ctves-section-header {
    background: var(--ctves-gradient);
    color: white;
    padding: 14px 22px;
    border-radius: var(--ctves-radius-sm) var(--ctves-radius-sm) 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--ctves-gold);
}

.ctves-section-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.05em;
}

/* day-num standalone (Home.aspx calendar) */
.day-num {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ctves-navy);
    margin-bottom: 5px;
}

/* ---------- Calendario Home ---------- */
.ctves-calendar-header {
    background: var(--ctves-gradient);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ctves-calendar-grid .day {
    min-height: 120px;
    background: white;
    border: 1px solid rgba(27,42,74,0.08);
    padding: 10px;
    transition: background 0.2s;
}

.ctves-calendar-grid .day:hover {
    background: var(--ctves-light);
}

.ctves-calendar-grid .day.empty-day {
    background: var(--ctves-cream);
    opacity: 0.5;
}

.ctves-calendar-grid .day-num {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ctves-navy);
    margin-bottom: 6px;
}

.ctves-event {
    display: block;
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ctves-event-green  { background: #d4edda; color: #155724; }
.ctves-event-gold   { background: #fff3cd; color: #856404; }
.ctves-event-blue   { background: #cce5ff; color: #004085; }
.ctves-event-purple { background: #e9d8fd; color: #553c9a; }

/* ---------- Misc utiles ---------- */
.ctves-page-hero {
    background: var(--ctves-gradient);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ctves-page-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.ctves-page-hero h1 {
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.ctves-page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.ctves-page-hero .gold-line { margin: 16px auto 0; }

/* ---------- Alert spiritual ---------- */
.ctves-alert-danger {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    border-left: 4px solid #e74c3c;
    border-radius: var(--ctves-radius-sm);
    color: #7b1e1e;
    padding: 14px 18px;
}

.ctves-alert-success {
    background: #f0fff4;
    border: 1px solid #b3ffd1;
    border-left: 4px solid var(--ctves-gold);
    border-radius: var(--ctves-radius-sm);
    color: #155724;
    padding: 14px 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ctves-hero { min-height: auto; padding: 80px 0 60px; }
    .ctves-section { padding: 55px 0; }
    .ctves-navbar .nav-link { padding: 12px 14px !important; }
}

@media (max-width: 767px) {
    .ctves-section-title { font-size: 1.5rem; }
    .ctves-verse blockquote { font-size: 1.1rem; }
    .ctves-login-card { padding: 28px 20px; }
    .ctves-page-hero h1 { font-size: 1.7rem; }
    .ctves-calendar-grid .day { min-height: 80px; }
}
