/*
Theme Name: Colegio Thomas Jefferson
Theme URI: http://colegiothomasjefferson.cl
Author: Agravity
Author URI: http://colegiothomasjefferson.cl
Description: Tema institucional y responsivo para el Colegio Thomas Jefferson.
Version: 1.1
Text Domain: ctj
*/
/* 
====================================================================
CSS PROPUESTO PARA EL CENTRO EDUCACIONAL
==================================================================== 
*/

/* VARIABLES DE COLOR Y TEMA */
:root {
  --primary-color: #004b87;
  --primary-hover: #003366;
  --secondary-color: #f2a900;
  --secondary-hover: #cc8e00;
  --accent-color: #e3000f;
  --bg-light: #f8f9fa;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --transition-speed: 0.3s;
  
  /* Fuentes */
  --font-base: 'Inter', sans-serif;
  --font-headings: 'Inter', sans-serif;
}

/* 
====================================================================
RESET Y CONFIGURACIÓN BÁSICA
==================================================================== 
*/
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

/* CUSTOM CURSOR */
body {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23004b87"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM11 19.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>') 10 10, auto;
}

a:hover, button:hover, .btn:hover {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23f2a900"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>') 12 12, pointer;
}

/* TITULARES (H1-H6) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-color);
}

/* ENLACES */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover {
  color: var(--accent-color);
}

/* 
====================================================================
HEADER & NAVBAR
==================================================================== 
*/
.navbar {
  background-color: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all var(--transition-speed) ease;
}
.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand i {
  color: var(--secondary-color);
  font-size: 2rem;
}
.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-speed);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

/* 
====================================================================
HERO SECTION
==================================================================== 
*/
.hero-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
  padding: 150px 0 100px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,75,135,0.85) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInDown 1s ease;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: #fff;
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ANIMACIONES */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 
====================================================================
BOTONES GLOBALES
==================================================================== 
*/
.btn-primary-custom {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(242, 169, 0, 0.4);
}
.btn-primary-custom:hover {
  background-color: var(--secondary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 169, 0, 0.6);
}

.btn-outline-custom {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
}
.btn-outline-custom:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* 
====================================================================
TARJETAS (CARDS)
==================================================================== 
*/
.card-custom {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background-color: #fff;
  height: 100%;
}
.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-img-wrapper {
  overflow: hidden;
  height: 200px;
}
.card-custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-custom:hover img {
  transform: scale(1.1);
}
.card-body {
  padding: 25px;
}
.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.badge-custom {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: inline-block;
}

/* 
====================================================================
ACCESOS RÁPIDOS (QUICK LINKS)
==================================================================== 
*/
.quick-access-section {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}
.quick-access-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: block;
  color: var(--text-dark);
}
.quick-access-box:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
}
.quick-access-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.quick-access-box:hover .quick-access-icon {
  color: var(--secondary-color);
  transform: scale(1.1);
}
.quick-access-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: inherit;
}

/* 
====================================================================
SECCIÓN COMPARTIR (VALORES, ETC)
==================================================================== 
*/
.section-padding {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.value-item {
  text-align: center;
  padding: 30px;
}
.value-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 75, 135, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.value-item:hover .value-icon {
  background-color: var(--primary-color);
  color: #fff;
}

/* 
====================================================================
FOOTER
==================================================================== 
*/
.footer-area {
  background-color: var(--primary-color);
  color: #ecf0f1;
  padding: 60px 0 20px;
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: block;
}
.footer-logo i {
  color: var(--secondary-color);
}
.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.footer-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}
.footer-contact li {
  display: flex;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 3px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* 
====================================================================
PAGINACIÓN
==================================================================== 
*/
.pagination-custom .page-link {
  color: var(--primary-color);
  border: none;
  margin: 0 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s;
}
.pagination-custom .page-item.active .page-link {
  background-color: var(--primary-color);
  color: #fff;
}
.pagination-custom .page-link:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* 
====================================================================
CONTÁCTANOS (MAPA Y FORM)
==================================================================== 
*/
.form-control {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.3s;
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 75, 135, 0.25);
}
.contact-info-card {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px;
  border-radius: 15px;
  height: 100%;
}
.contact-info-card i {
  color: var(--secondary-color);
}
.contact-info-item h4 {
  color: #fff;
  margin-bottom: 5px;
}

/* UTILIDADES Y RESPONSIVE */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }

@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
  }
}

/* 
====================================================================
AÑO 2026 PAGE SPECIFICS
==================================================================== 
*/
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(30, 58, 138, 0.8) 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 80px;
    text-align: center;
}
.course-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}
.course-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}
.course-title {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.05rem;
}
.pdf-btn {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}
.pdf-btn:hover {
    background-color: #dc3545;
    color: white;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(30, 58, 138, 0.05);
    color: #1e3a8a;
    font-weight: 600;
}
.accordion-button {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
}

/* BACK TO TOP BUTTON */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  cursor: pointer;
}
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
  color: #fff;
}

/* FIX CURSOR ON FOOTER */
.footer-area {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23f2a900"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM11 19.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>') 10 10, auto;
}
.footer-area a, .footer-area button, .footer-area .social-links a {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>') 12 12, pointer;
}
/* Mejora de contraste para el Carrusel de Noticias */
.carousel-caption h3 {
    color: #ffffff !important; /* Forzamos blanco puro */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); /* Sombra para mayor legibilidad */
    font-size: 2.2rem; /* Un poco más grande para que destaque */
    margin-bottom: 15px;
}

.carousel-caption p {
    color: #f8f9fa; /* Un gris casi blanco para el extracto */
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}