/* Variables CSS */
:root {
  --primary-navy: #1e3a5f;
  --secondary-gold: #d4af37;
  --accent-cream: #f8f6f0;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --white: #ffffff;
  --shadow-light: 0 2px 10px rgba(30, 58, 95, 0.1);
  --shadow-medium: 0 4px 20px rgba(30, 58, 95, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, #2c5282 100%);
}

/* Fuentes */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.hero-title,
.card-title,
.contact-title {
  font-family: "Crimson Text", serif;
}

/* Header */
.header-section {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.logo {
  max-height: 80px;
  width: auto;
}

.institute-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.institute-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
  font-style: italic;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--accent-cream) 0%, var(--white) 100%);
  padding: 80px 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.text-gold {
  color: var(--secondary-gold);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-features {
  margin-top: 4rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-gold);
  margin-bottom: 1rem;
}

.feature-item h4 {
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Registration Section */
.registration-section {
  padding: 80px 0;
  background: var(--white);
}

.registration-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.card-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem 2rem;
}

.card-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.registration-form {
  padding: 3rem 2rem;
}

.form-label {
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--secondary-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Estilos para checkboxes */
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--primary-navy);
  border-radius: 4px;
  background-color: var(--white);
  transition: all 0.3s ease;
  position: relative;
}

.form-check-input:focus {
  border-color: var(--secondary-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.form-check-input:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1;
}

.form-check-input:hover {
  border-color: var(--secondary-gold);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.form-check-label {
  color: var(--text-dark);
  font-weight: 500;
  margin-left: 0.5rem;
  cursor: pointer;
}

.section-title {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 1.5rem;
}

.btn-student-type {
  background: var(--white);
  border: 3px solid #e9ecef;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 180px;
}

.btn-student-type:hover {
  border-color: var(--secondary-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  color: inherit;
}

.btn-new-student:hover {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
}

.btn-returning-student:hover {
  background: linear-gradient(135deg, #fef7e8 0%, #fffbf0 100%);
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  justify-content: center;
}

.btn-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-gold);
}

.btn-text h5 {
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.btn-text p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  background: var(--accent-cream);
  padding: 60px 0;
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-light);
}

.contact-title {
  color: var(--primary-navy);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--accent-cream);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2rem;
  color: var(--secondary-gold);
  margin-right: 1rem;
  width: 60px;
  text-align: center;
}

.contact-info h5 {
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--secondary-gold);
}

/* Footer */
.footer-section {
  background: var(--primary-navy);
  color: var(--white);
  padding: 2rem 0;
}

.footer-text {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-verse {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .institute-name {
    font-size: 1.8rem;
  }

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

  .btn-student-type {
    min-height: 150px;
    padding: 1.5rem 1rem;
  }

  .btn-icon {
    font-size: 2.5rem;
  }

  .registration-form {
    padding: 2rem 1.5rem;
  }

  .card-header {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0;
  }

  .registration-section {
    padding: 60px 0;
  }

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

  .hero-description {
    font-size: 1.1rem;
  }

  .feature-item {
    padding: 1.5rem 1rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}

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

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.registration-card {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Estados de validación */
.form-select.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Loading state */
.btn-student-type.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-student-type.loading .btn-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
