* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #bc4b51;
  --secondary-color: #ef7d50;
  --tertiary-color: #b6684c;
  --light-color: #f3edd5;
  --accent-color: #e68171;
  --dark-color: #222222;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #170005 0%, #be0230 100%);
  --shadow: 0 10px 30px rgba(188, 75, 81, 0.1);
  --shadow-hover: 0 20px 40px rgba(188, 75, 81, 0.2);
  --primary-dark: #170005;
  --primary-red: #be0230;
  --logo-red: #c10230;
  --light-bg: #f5f1ed;
  --dark-text: #1a1a1a;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--gradient);
  overflow: hidden;
  padding: 1rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://sitios.udla.edu.ec/app/pardot/mun-udla/public/fondo-munudla.webp") center / cover;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(23, 0, 5, 0.75) 0%, rgba(190, 2, 48, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 100px;
  text-align: center;
}

.countdown-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  /* Cambiar de amarillo a blanco para mantener coherencia UDLA */
  color: var(--white);
}

.countdown-label {
  font-size: 0.9rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-cta,
.btn-pricing {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #be0230 0%, #ff3a52 100%);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(190, 2, 48, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(190, 2, 48, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Event Info Section */
.event-info {
  padding: 5rem 0;
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-red);
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-red);
}

.info-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.info-card p {
  color: #666;
  font-size: 1.1rem;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-red);
}

.about-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature i {
  color: var(--primary-red);
  font-size: 1.3rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Committees Section */
.committees {
  padding: 5rem 0;
  background: var(--light-bg);
}

.committees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
}

.committee-category {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-red);
  transition: all 0.3s ease;
}

.committee-category:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-red);
}

.category-header i {
  font-size: 2rem;
  color: var(--primary-red);
}

.category-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.committee-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.committee-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #fafaf8;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.committee-item:hover {
  background: #f3ede5;
  transform: translateX(5px);
}

.committee-item i {
  color: var(--primary-red);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Pricing Section */
.pricing {
  padding: 5rem 0;
  background: url("https://sitios.udla.edu.ec/app/pardot/mun-udla/public/fondo-munudla.webp") center / cover;
  background-attachment: fixed;
  position: relative;
}

.pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(23, 0, 5, 0.85) 0%, rgba(190, 2, 48, 0.85) 100%);
}

.pricing .container {
  position: relative;
  z-index: 2;
}

.pricing .section-header h2,
.pricing .section-header p {
  color: var(--white);
}

/* Actualizado para que el grid acomode 3 cards en una fila */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  /* Agregado max-width para mantener cards de tamaño consistente */
  max-width: 400px;
  width: 100%;
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff3a52 100%);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(190, 2, 48, 0.3);
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.pricing-header p {
  color: #666;
  margin-bottom: 2rem;
}

.pricing-price {
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
  color: var(--primary-red);
}

.amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-red);
}

.period {
  display: block;
  font-size: 0.95rem;
  color: #666;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #555;
}

.pricing-features .feature i {
  color: var(--primary-red);
}

.btn-pricing {
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff3a52 100%);
  color: var(--white);
  width: 100%;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(190, 2, 48, 0.3);
}

.btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(190, 2, 48, 0.4);
}

.agenda-link {
  text-align: center;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-cta {
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff3a52 100%);
  color: var(--white);
  font-size: 1.2rem;
  padding: 1.2rem 2.5rem;
  box-shadow: 0 5px 15px rgba(190, 2, 48, 0.4);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(190, 2, 48, 0.5);
}

/* Sponsors Section */
.sponsors {
  padding: 5rem 0;
  background: var(--light-bg);
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.sponsor-item {
  background: var(--white);
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 3px solid var(--primary-red);
}

.sponsor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sponsor-item img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sponsor-item:hover img {
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-red);
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.footer-section i {
  margin-right: 0.5rem;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #ff3a52;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(190, 2, 48, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  overflow: auto;
}

.modal-content {
  background-color: var(--white);
  margin: 2% auto;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-height: 95vh;
  overflow-y: auto;
  border-top: 5px solid var(--primary-red);
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #ccc;
  transition: all 0.3s ease;
  z-index: 1001;
}

.close:hover {
  color: var(--primary-red);
  transform: rotate(90deg);
}

.modal-content h2 {
  color: var(--primary-red);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(190, 2, 48, 0.1);
}

/* Estilos para validación de cédula */
.cedula-input-group {
  display: flex;
  gap: 0.5rem;
}

.cedula-input-group input {
  flex: 1;
}

.btn-validate {
  padding: 0.75rem 1rem;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-validate:hover {
  background: #1976d2;
  transform: translateY(-2px);
}

.btn-validate:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

#cedulaStatus {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .countdown-container {
    gap: 1rem;
  }

  .countdown-item {
    min-width: 80px;
    padding: 1rem;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .committees-grid {
    grid-template-columns: 1fr;
  }

  /* Ajustes responsive para 3 cards */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-content {
    margin: 1% auto;
    width: 95%;
    padding: 1.5rem;
    max-height: 98vh;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .countdown-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .sponsors-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1rem;
    border-radius: 15px;
  }

  .close {
    right: 0.5rem;
    top: 0.5rem;
    font-size: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-logo {
  animation-delay: 0.1s;
}
.hero-title {
  animation-delay: 0.2s;
}
.event-date {
  animation-delay: 0.4s;
}
.countdown-container {
  animation-delay: 0.5s;
}
.hero-cta {
  animation-delay: 0.6s;
}

html {
  scroll-behavior: smooth;
}

.countdown-number {
  transition: all 0.3s ease;
}

.countdown-number.updating {
  transform: scale(1.05);
}

/* Mejorar estilos del botón deshabilitado para que se vea claramente bloqueado */
#submitBtn:disabled,
.btn-primary:disabled,
.btn-pricing:disabled {
  background: linear-gradient(135deg, #999999 0%, #666666 100%) !important;
  color: #e0e0e0 !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  transform: none !important;
}

#submitBtn:disabled:hover,
.btn-primary:disabled:hover,
.btn-pricing:disabled:hover {
  transform: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}
