/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Disable text selection globally */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  /* Disable image dragging */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Color Variables */
:root {
  --primary: #d19a3d;
  --primary-dark: #b5812f;
  --secondary: #0891b2;
  --secondary-dark: #0e7490;
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --background: #ffffff;
  --surface: #f8fafc;
  --muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #1a1a1a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

.full-width {
  width: 100%;
}

/* Utility Classes */
.hidden {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  font-weight: bold;
}

.logo-text h1 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-desktop a:hover {
  color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === MODIFICADO: Estilos para el botón del menú móvil === */
.mobile-menu-btn {
  display: none;
  background-color: var(--primary);
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.mobile-menu-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.mobile-menu-btn svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* === MODIFICADO: Estilos para el menú móvil === */
.nav-mobile {
  position: fixed;
  top: 5rem;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 900;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border);
  overflow-y: auto;
}

.nav-mobile.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* === MODIFICADO: Estilos para los enlaces del menú móvil === */
.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 1rem 1.5rem;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background-color: white;
}

.nav-mobile a:hover {
  color: var(--primary);
  background-color: var(--muted);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 5rem;
  margin-top: 4rem;
  color: white;
}

/* Nuevo: Aumenta el tamaño del contenedor en la sección hero */
.hero .container {
  max-width: 1400px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-text h1 span {
  display: block;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.live-stream {
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .live-stream {
    max-width: 100%;
  }
}

.stream-container {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stream-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--muted);
}

.stream-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stream-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
}

.play-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.live-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.stream-info {
  padding: 1.5rem;
}

.stream-info h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.stream-info p {
  margin-bottom: 1rem;
}

.stream-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stream-stats span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.share-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.share-btn:hover {
  color: var(--primary-dark);
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--background);
  scroll-margin-top: 12rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-icon.primary {
  background-color: var(--primary);
  color: white;
}

.service-icon.secondary {
  background-color: var(--secondary);
  color: white;
}

.service-icon.accent {
  background-color: var(--accent);
  color: white;
}

.service-card h3 {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-card p {
  margin-bottom: 1rem;
}

.service-details {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-details p {
  margin-bottom: 0.25rem;
}

/* Events Section */
.events {
  padding: 5rem 0;
  background-color: var(--muted);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.event-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.event-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.event-content {
  padding: 1.5rem;
}

.event-date {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.date-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.date-badge.primary {
  background-color: var(--primary);
}

.date-badge.secondary {
  background-color: var(--secondary);
}

.date-badge.accent {
  background-color: var(--accent);
}

.time {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.event-content h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.event-content p {
  margin-bottom: 1rem;
}

/* Community Section */
.community {
  padding: 5rem 0;
  background-color: var(--background);
  scroll-margin-top: 12rem;
}

.community .section-header {
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.testimony-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4 -6px -1px rgba(0, 0, 0, 0.1);
}

.testimony-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimony-header img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.testimony-header h4 {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.testimony-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.testimony-card > p {
  font-style: italic;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-number.primary {
  color: var(--primary);
}

.stat-number.secondary {
  color: var(--secondary);
}

.stat-number.accent {
  color: var(--accent);
}

.stat p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--muted);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h3 {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon.primary {
  background-color: var(--primary);
  color: white;
}

.contact-icon.secondary {
  background-color: var(--secondary);
  color: white;
}

.contact-icon.accent {
  background-color: var(--accent);
  color: white;
}

.contact-item h4 {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin-bottom: 0;
}

.contact-form-container {
  background-color: white;
  padding: 1rem; /* Ajuste: Reduced padding further */
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.5rem 0.75rem; /* Ajuste: Reduced padding further */
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: var(--text);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  background-color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-dark);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Added styles for newsletter input fields */
.newsletter-input {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.newsletter-form input {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
}

/* Page Specific Styles */
.mv-page-content {
  padding: 8rem 0 5rem;
}

.mission-section,
.vision-section {
  margin-bottom: 4rem;
}

.mv-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.mv-content.reverse-order {
  flex-direction: column-reverse;
}

.mv-image-card img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }

  .nav-mobile {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .nav-desktop {
    display: flex;
  }

  /* Cambiado: Aumenta el ancho y ajusta la distribución del contenido */
  .hero-content {
    grid-template-columns: 1fr 1.2fr; /* El video ahora es 1.5 veces más ancho que el texto */
  }

  .hero-text {
    text-align: left;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr 0.6fr; /* Ajuste: Adjusted column ratio again */
  }

  .mv-content {
    grid-template-columns: 1fr 1fr;
  }

  .mv-content.reverse-order {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .services-grid,
  .events-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mv-content.reverse-order {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .services,
  .events,
  .community,
  .contact {
    padding: 3rem 0;
  }

  .service-card,
  .event-card,
  .testimony-card,
  .contact-form-container {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* espacio entre logo e texto */
}

.logo-img {
  width: 50px; /* ajusta el tamaño del logo */
  height: 50px;
}

/* Indicador de En Vivo */
.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dc2626; /* Rojo */
  margin-left: 0.5rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Fixed unterminated comment and completed the CSS rule */
.nav-desktop a:hover .live-indicator,
.nav-mobile a:hover .live-indicator {
  animation: blink 1s infinite;
}
