/* Estilos Personalizados - CRINAR (Centro de Entrenamiento y Formación) */

:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --accent-gold: #f59e0b;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 20px 30px -10px rgba(220, 38, 38, 0.15);
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: #334155;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar & Header */
.top-bar {
    background-color: var(--primary-color);
    color: #cbd5e1;
    font-size: 0.875rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: #ffffff;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

/* Navbar */
.navbar-crinar {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

.nav-link-custom {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--primary-color) !important;
    padding: 0.6rem 1.1rem !important;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav-link-custom:hover {
    color: var(--accent-red) !important;
    background-color: rgba(220, 38, 38, 0.05);
}

.nav-link-custom.active {
    color: #ffffff !important;
    background-color: var(--accent-red);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Hero Section */
.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    background: var(--primary-color);
}

.hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    filter: brightness(0.88);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(15, 23, 42, 0) 100%);
    color: #ffffff;
}

.hero-title {
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    font-weight: 300;
}

/* Titles */
.section-title {
    position: relative;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

/* Galeria de Fotos */
.gallery-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.gallery-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background-color: #f1f5f9;
}

.gallery-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

.gallery-hover-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-size: 1.8rem;
}

.gallery-card:hover .gallery-hover-icon {
    opacity: 1;
}

/* Call to Action CTA Banner Escuelitas */
.cta-escuelitas-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-left: 5px solid var(--accent-red);
    border-radius: 14px;
    padding: 1.75rem;
    color: #ffffff;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-escuelitas-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(220, 38, 38, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-weight: 800;
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cta-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.btn-cta {
    background-color: var(--accent-red);
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: var(--accent-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
}

/* Columna Escuelitas (Sidebar) */
.escuela-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #ffffff;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.escuela-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.12);
}

.escuela-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.escuela-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.escuela-card:hover .escuela-img-wrapper img {
    transform: scale(1.06);
}

.escuela-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Página En Construcción */
.construction-container {
    padding: 5rem 1rem;
    text-align: center;
}

.construction-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    box-shadow: var(--card-shadow);
    max-width: 680px;
    margin: 0 auto;
    border-top: 6px solid var(--accent-red);
}

.construction-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.construction-title {
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contacto */
.contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
}
