/* === VARIABLES DE COLOR === */
:root {
  --primary-color: #dc2626;
  /* Red */
  --secondary-color: #7f1d1d;
  /* Dark red */
  --accent-color: #fbbf24;
  /* Yellow */
  --light-bg: #fef3c7;
  /* Light yellow */
  --white: #ffffff;
  --border-color: #fed7aa;
  /* Light orange */
  --success-color: #dc2626;
  /* Red */
  --warning-color: #fbbf24;
  /* Yellow */
  --text-dark: #7f1d1d;
  /* Dark red for text */
}

html {
  scroll-behavior: smooth;
}

/* === TIPOGRAFÍA === */
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Arial", sans-serif;
  font-weight: 700;
}

/* === FIRST HEADER SECTION === */
.header-team {
  /* background-color: var(--light-bg); */
  margin-top: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* === HEADER === */
/* .navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--primary-color);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-brand:hover {
  color: #f72f2f;
  transition: color 0.3s ease;
}

.web-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  font-size: 1.1rem; 
  transition: font-size 0.3s ease;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}
@media (max-width: 576px) {
  .web-title {
    font-size: 1rem !important;
  }
}

@media (max-width: 400px) {
  .web-title {
    font-size: 0.85rem !important;
  }
}
 */
/* Navbar Styles */
.navbar-custom {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* padding: 1.18rem 0; */
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

/* Nav Links */
.navbar-nav .nav-link {
  color: #7f1d1d;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #dc3545;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #7f1d1d;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.social-icon:hover {
  background-color: #dc3545;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    margin-top: 1rem;
  }

  .social-icons {
    margin-top: 1rem;
    justify-content: center;
  }
}

/* === HEADER TITLE SECTION === */
.header-section {
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.carousel-item {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 24, 24, 0.55);
  z-index: 1;
}

.carousel-item .container {
  position: relative;
  z-index: 2;
  height: 70vh;
  display: flex;
  align-items: center;
}

.carrousel-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: -35px;
  left: 0;
  z-index: 0;
}

.hero-content {
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 1%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary-custom {
  background-color: var(--accent-color);
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.btn-primary-custom:hover {
  background-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

/* === SECCIONES GENERALES === */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === CARDS === */
.info-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.info-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.178);
}

/* === CARDS === */
.info-card-h {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.info-card-h:hover {
  transform: translateY(-3px); /* scale(1.007); */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.178);
}

.info-card-h .icon {
  width: 70px;
  height: 70px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
}

.info-card-b {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.info-card-b:hover {
  /* transform: translateY(-3px); /* scale(1.007); */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.178);
}

.info-card-b .icon {
  width: 70px;
  height: 70px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
}

.info-card .icon {
  width: 70px;
  height: 70px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
}

.info-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.info-card p {
  color: var(--secondary-color);
  text-align: center;
  line-height: 1.7;
}

/* === SECCIÓN NOSOTROS === */
.about-section {
  /* background-color: var(--light-bg); */
}

/* === SECCIÓN NOTICIAS Y EVENTOS === */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-year {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

/* === SECCIÓN COMUNIDAD === */
.community-section {
  /* background-color: var(--light-bg); */
}

.stats-container {
  background: var(--white);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  color: var(--secondary-color);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* === SECCIÓN PÁRVULOS === */
.parvulos-section {
  /* background-color: var(--light-bg); */
}

/* === SECCIÓN PIE === */
.red-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.red-section .section-title,
.red-section .section-subtitle {
  color: white;
}

.red-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.red-card:hover {
  transform: translateY(-5px);
}

.red-card .icon {
  background: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

/* === FOOTER === */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}

.social-links a:hover {
  background: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid #7f1d1d;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #f8f8f8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
}

/* === LIST GROUP DOWNLOAD FILES === */
.list-group-item {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  transform: translateX(1px);
}
