/* ============================================
   VARIABLES Y COLORES
   ============================================ */
:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --border-radius: 0.75rem;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition-base: all 0.3s ease-in-out;
}

/* ============================================
   TIPOGRAFÍA Y RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ============================================
   UTILIDADES DE TRANSICIÓN
   ============================================ */
.transition-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-scale:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

.transition-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.navbar-brand i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.scroll-link {
  position: relative;
  transition: color 0.3s ease;
}

.scroll-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.scroll-link:hover::after {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  animation: fadeInUp 0.8s ease-out;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff !important;
}

.hero-section h1 span.text-light {
  color: #e8f0ff !important;
}

.hero-section .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.hero-section .btn-outline-primary {
  color: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
}

.hero-section .btn-outline-primary:hover {
  background-color: #ffffff;
  color: #5b7cff;
}

.hero-section p {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.1rem;
}

.hero-section .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  transition: all 0.3s ease;
}

.hero-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
  animation: float 3s ease-in-out infinite;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   SECCIÓN DE REGISTRO
   ============================================ */
.registro-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.registro-section .card {
  border-radius: var(--border-radius);
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-floating > label {
  color: #6c757d;
}

.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  transform: translateY(-2px);
}

.form-control.input-invalido,
.form-select.input-invalido {
  border-color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.05);
}

#label-termsCheckbox.input-invalido {
  border: 2px solid var(--danger-color);
  border-radius: 0.375rem;
  padding: 0.75rem 2rem;
  background-color: rgba(220, 53, 69, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#label-termsCheckbox.input-invalido .form-check-input {
  border-color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
}

.g-recaptcha {
  transform: scale(0.95);
  transform-origin: 0 0;
  margin-bottom: 1rem;
}

#btnRegistrar {
  font-size: 1.1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#btnRegistrar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

#btnRegistrar:active {
  transform: translateY(0);
}

/* ============================================
   SECCIÓN DE PLANES
   ============================================ */
.planes-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

.card .badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-header {
  border-radius: 1rem 1rem 0 0;
}

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

.card-title {
  color: #212529;
  margin-bottom: 1rem;
}

.card-body ul li {
  transition: all 0.3s ease;
  padding-left: 0.5rem;
}

.card-body ul li:hover {
  padding-left: 1rem;
  color: var(--primary-color);
}

.card-footer button {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.card-footer button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SECCIÓN DE CARACTERÍSTICAS
   ============================================ */
.features-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.feature-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-8px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  transform: scale(1.1) rotate(10deg);
}

.feature-card h5 {
  color: #212529;
  line-height: 1.4;
}

.feature-card p {
  color: #6c757d;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ============================================
   SECCIÓN DE CAPTURAS
   ============================================ */
.screenshots-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.screenshot-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 300px;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */
.contacto-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.contacto-section .p-4 {
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contacto-section .p-4:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.contacto-section .btn-outline-light {
  transition: all 0.3s ease;
}

.contacto-section .btn-outline-light:hover {
  background: white;
  color: #1a1a2e;
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  background: #f8f9fa;
}

.footer-section a {
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color) !important;
}

.footer-section hr {
  opacity: 0.3;
}

/* ============================================
   MODALES
   ============================================ */
.modal-content {
  border-radius: 1rem;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  border-radius: 1rem 1rem 0 0;
}

.modal-body {
  padding: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-body ul li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
}

.modal-footer .btn {
  min-width: 120px;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ANIMACIÓN DE ALERTAS
   ============================================ */
.alert {
  border-radius: 0.75rem;
  animation: slideInDown 0.5s ease-out;
  border: none;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-close {
  transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem !important;
  }

  .container-xxl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }

  .screenshot-card {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .card {
    border-radius: 0.75rem;
  }

  .display-5 {
    font-size: 1.75rem !important;
  }

  .modal-body {
    padding: 1.5rem;
    font-size: 0.9rem;
  }

  .screenshot-card {
    height: 200px;
  }

  .registro-section .card {
    border-radius: 0.75rem;
  }

  .registro-section .card-body {
    padding: 1.5rem;
  }

  .form-floating > label {
    font-size: 0.9rem;
  }

  #btnRegistrar {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .display-4 {
    font-size: 1.75rem !important;
  }

  .display-5 {
    font-size: 1.5rem !important;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .feature-icon i {
    font-size: 1.5rem !important;
  }

  .screenshot-card {
    height: 180px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .card-body {
    padding: 1.5rem 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .contacto-section .row {
    gap: 2rem !important;
  }

  .d-flex.flex-column.flex-sm-row {
    flex-direction: column !important;
  }

  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* ============================================
   UTILIDADES ADICIONALES
   ============================================ */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-white-50 {
  background-color: rgba(255, 255, 255, 0.5);
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   EFECTOS ESPECIALES
   ============================================ */
.btn {
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:focus {
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6b3d8f 100%);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.text-muted {
  color: #6c757d !important;
}

/* Scroll animations */
.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Estilos para bordes y decoraciones */
.border-start.border-danger {
  border-width: 4px !important;
}

/* ============================================
   SECCIÓN FAQ
   ============================================ */
.faq-section {
  background: #ffffff;
}

.accordion-button {
  padding: 1.25rem;
  font-size: 1.05rem;
  color: #212529;
  background-color: #fff;
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #f0f4ff;
  color: #0d6efd;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

.accordion-body {
  padding: 1.25rem;
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
}

.accordion-item {
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.accordion-button i {
  font-size: 1.2rem;
}

.accordion-body ul {
  padding-left: 1.5rem;
}

.accordion-body ul li {
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.accordion-body ul li:hover {
  transform: translateX(5px);
  color: #0d6efd;
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #212529;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.social-icon[href*="x.com"]:hover {
  background-color: #000;
}

.social-icon[href*="github"]:hover {
  background-color: #333;
}

.social-icon[href*="facebook"]:hover {
  background-color: #1877f2;
}
