/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f8f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #9aa1a8;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #4b98d3;
}

.language-switcher {
  display: flex;
  gap: 1rem;
}

.lang-item {
  color: #9aa1a8;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-item.active,
.lang-item:hover {
  color: #4b98d3;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f7f8f8 0%, #e8eaeb 100%);
  min-height: 1000px;
  padding: 150px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 400;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: 0.2rem;
}

.hero-subtitle {
  font-family: 'NovaQuinta', cursive;
  font-size: 2.5rem;
  color: white;
  font-weight: 400;
  line-height: 1.3;
  font-style: italic;
  text-align: center;
  max-width: 100%;
}

/* Horarios Info Section */
.horarios-info {
  background-color: white;
  padding: 3rem 0;
  text-align: center;
}

.horarios-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.horarios-text p {
  font-size: 1.4rem;
  color: #4b98d3;
  font-weight: 600;
  margin: 0;
  background-color: #f5f5f5;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.horarios-text .rosario-horario {
  color: #333;
  font-size: 1.3rem;
  background-color: #f8f8f8;
  border-left: 4px solid #4b98d3;
  border-right: 4px solid #4b98d3;
}

/* Noticias Section */
.noticias {
  background-color: white;
  padding: 4rem 0;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.noticia-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.noticia-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h4 {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

/* Quotes Section */
.quotes {
  background-color: white;
  text-align: center;
  padding: 6rem 0;
}

.quote-large {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #333;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.quote-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.location {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* Categorías Section */
.categorias {
  background-color: white;
  padding: 4rem 0;
}

.categorias-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  justify-content: flex-start;
}

.categorias-grid .categoria-card {
  flex: 0 0 calc((100% - 2rem) / 2);
  max-width: calc((100% - 2rem) / 2);
}

.categorias-grid .categoria-card:nth-child(3),
.categorias-grid .categoria-card:nth-child(4),
.categorias-grid .categoria-card:nth-child(5) {
  flex: 0 0 calc((100% - 4rem) / 3);
  max-width: calc((100% - 4rem) / 3);
}

.categoria-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: block;
}

.categoria-card:hover {
  transform: scale(1.05);
}

.categoria-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.categoria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.categoria-overlay h4 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 0 1rem;
}

/* Action Buttons */
.action-buttons {
  background-color: white;
  padding: 3rem 0;
}

.buttons-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.action-btn {
  background-color: #4b98d3;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.action-btn:hover {
  background-color: #3a7bb8;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: #363635;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #cccfd1;
}

.contact-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-details p {
  margin-bottom: 0.5rem;
  color: #cccfd1;
}

.quick-links {
  list-style: none;
}

.quick-links li {
  margin-bottom: 0.75rem;
}

.quick-links a {
  color: #cccfd1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.quick-links a:hover {
  color: #4b98d3;
}

.app-downloads {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-store,
.google-play {
  width: 150px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.app-store:hover,
.google-play:hover {
  transform: scale(1.05);
}

/* Images without hover effects */
.footer-image-no-hover {
  width: 150px;
  height: auto;
  cursor: default;
}

/* Messages page styles - matching React component structure */
.col-12 {
  width: 100%;
  margin-bottom: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mt-4 {
  margin-top: 2.5rem;
}

.mt-3 {
  margin-top: 2rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.mt-1 {
  margin-top: 1rem;
}

.text-center {
  text-align: center !important;
}

.inicio-mensajes {
  text-align: center !important;
  margin-top: 100px !important;
}

.inicio-mensajes h3, .inicio-mensajes h5 {
  color: #333 !important;
}

/* Ensure text-center works on all elements */
.col-12.text-center,
div.text-center,
h3.text-center,
h5.text-center,
h6.text-center,
p.text-center {
  text-align: center !important;
}

h5 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #4b98d3;
  margin: 1rem 0;
  line-height: 1.4;
}

h5.text-center {
  text-align: center !important;
}

h6 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4b98d3;
  line-height: 1.3;
}

h6.text-center {
  text-align: center !important;
}

/* Message content styling */
.col-12 p {
  color: #333;
  line-height: 1.8;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.col-12 p:last-child {
  margin-bottom: 0;
}

/* Message container */
.messages-container .col-12 {
  /* border-bottom: 1px solid black; */
  /* margin-bottom: 0.5rem; */
  margin-top: 1rem;
}

/* Message cards */
.message-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  border-left: 5px solid #4b98d3;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Year navigation */
.year-navigation {
  position: sticky;
  top: 80px; /* Adjust based on your header height */
  z-index: 100;
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 200px;
}

.dropdown-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 2px solid #4b98d3;
  border-radius: 8px;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  min-height: 50px;
}

.dropdown-button:hover {
  border-color: #3a7bb8;
  box-shadow: 0 2px 8px rgba(75, 152, 211, 0.2);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: #4b98d3;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #4b98d3;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-option {
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
  color: #4b98d3;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.year-navigation select:hover {
  border-color: #3a7bb8;
  box-shadow: 0 2px 8px rgba(75, 152, 211, 0.2);
}

.year-navigation select:focus {
  outline: none;
  border-color: #3a7bb8;
  box-shadow: 0 0 0 3px rgba(75, 152, 211, 0.1);
}

/* Container and row classes for year sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.px-md-4 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

/* h3 styling for year headers */
h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

h3.text-center {
  text-align: center !important;
}

/* Special styling for mensajes class */
.mensajes {
  font-style: italic;
  color: #666;
}

iframe {
  max-width: 100% !important;
  min-width: 80%;
  border-radius: 10px;
}

a, p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

footer a {
  color: #cccfd1;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #4b98d3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-12 {
    margin-bottom: 1.5rem;
  }
  
  .mt-5 {
    margin-top: 2rem;
  }
  
  .message-card {
    padding: 1.5rem;
  }
  
  h5 {
    font-size: 1.2rem;
  }
  
  h6 {
    font-size: 1.1rem;
  }
}

/* Page Hero for internal pages */
.page-hero {
  background: linear-gradient(135deg, #4b98d3 0%, #3a7bb8 100%);
  padding: 120px 0 80px;
  text-align: center;
  color: white;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    min-height: 100vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .horarios-text p {
    font-size: 1.3rem;
    padding: 1.3rem 1.8rem;
  }

  .horarios-text .rosario-horario {
    font-size: 1.2rem;
  }

  .quote-large {
    font-size: 1.8rem;
  }

  .buttons-row {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .categorias-grid {
    gap: 1.5rem;
    max-width: 100%;
  }

  .categorias-grid .categoria-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    max-width: calc((100% - 1.5rem) / 2);
  }

  .categorias-grid .categoria-card:nth-child(3),
  .categorias-grid .categoria-card:nth-child(4),
  .categorias-grid .categoria-card:nth-child(5) {
    flex: 0 0 calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section h4 {
    text-align: center;
  }

  .footer-image-no-hover {
    display: block;
    margin: 0 auto 1rem auto;
  }

  .contact-info {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .contact-details {
    text-align: center;
  }

  .contact-details p {
    text-align: center;
  }

  .quick-links {
    text-align: center;
    padding: 0;
    list-style: none;
  }

  .quick-links li {
    text-align: center;
  }

  .app-downloads {
    align-items: center;
  }

  .app-store,
  .google-play {
    display: block;
    margin: 0.5rem auto;
  }

  .noticias-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    min-height: 100vh;
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .custom-dropdown {
    width: 250px;
  }

  .dropdown-button {
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    min-height: 60px;
  }

  .dropdown-option {
    font-size: 1.2rem;
    padding: 1.25rem;
    min-height: 60px;
  }

  .year-navigation label {
    font-size: 1.1rem;
  }

  .horarios-text p {
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
  }

  .horarios-text .rosario-horario {
    font-size: 1.1rem;
  }

  .categorias-grid {
    gap: 1rem;
    max-width: 100%;
  }

  .categorias-grid .categoria-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .categorias-grid .categoria-card:nth-child(3),
  .categorias-grid .categoria-card:nth-child(4),
  .categorias-grid .categoria-card:nth-child(5) {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .categoria-card h4 {
    font-size: 1.2rem;
  }

  .custom-dropdown {
    width: 100%;
    max-width: 300px;
  }

  .dropdown-button {
    font-size: 1.3rem;
    padding: 1.25rem 1.5rem;
    min-height: 70px;
  }

  .dropdown-option {
    font-size: 1.3rem;
    padding: 1.5rem;
    min-height: 70px;
  }

  .year-navigation label {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: block;
  }

  .year-navigation {
    padding: 1.25rem;
    margin: 1.5rem 0;
  }
}
