:root {
    --primary: #0d6efd;
    --primary-light: #e6f0ff;
    --primary-dark: #0056b3;
    --success: #198754;
    --success-light: #e8f6f0;
    --warning: #ffc107;
    --warning-light: #fff8e1;
    --danger: #dc3545;
    --danger-light: #fbeaec;
    --info: #0dcaf0;
    --info-light: #e6f9fd;
    --purple: #6f42c1;
    --purple-light: #f3effa;
    --gradient-primary: linear-gradient(135deg, #0d6efd, #0099ff);
    --gradient-success: linear-gradient(135deg, #198754, #28a745);
    --gradient-warning: linear-gradient(135deg, #ffc107, #ffae00);
    --gradient-danger: linear-gradient(135deg, #dc3545, #c82333);
    --gradient-purple: linear-gradient(135deg, #6f42c1, #8b5cf6);
}
/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Estilos principales sin cambios */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, #2196f3, #7FBCFB, #C3BDF5);
  animation: gradient 10s ease infinite;
  background-size: 400% 400%;
  height: 100vh; 
  justify-content: center;
  align-items: center;  
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow-x: hidden;                                                             
}

/* -------------------------------LOGIN------------------------ */
.main-container{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Card principal */
.login-card {
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  height: 530px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* Sección de bienvenida */
.welcome-section {
  background: var(--gradient-primary);
  color: white;
  padding: 35px;
  display: flex;
  width: 95%;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-content {
  position: relative;
  z-index: 2;
}

.welcome-section h2 {
  font-size: 2.1rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.welcome-section .logo {
  width: 390px;
  height: 260px;
}

.welcome-section p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Sección del formulario */
.form-section {
  padding: 45px 35px 60px 20px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header1 {
  text-align: center;
  margin-bottom: 40px;
}

.form-header1 h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
}

.form-header1 p {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: -10px;
}

/* Campos de entrada */
.input-group-custom {
  position: relative;
  margin-bottom: 20px;
}

.input-group-custom label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group-custom label i {
  color: var(--primary);
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  z-index: 10;
}

.form-control-custom {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 10px 18px 10px 48px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  width: 100%;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  background: white;
  outline: none;
}

/* Botón de mostrar/ocultar contraseña */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 1.4rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--primary);
}

/* Botón principal */
.btn-primary-custom {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  padding: 10px 35px;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  width: 100%;
  margin-bottom: 15px;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Modales */
.modal-custom .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.modal-custom .modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 25px;
}

.modal-custom .modal-body {
    padding: 30px;
}

.modal-custom .modal-footer {
    border: none;
    padding: 20px 30px;
}

.content-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--danger-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--danger);
    margin: 0 auto 20px auto;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        grid-template-columns: 1fr;
        height: auto;
        margin: 10px;
    }

    .welcome-section {
        width: 100%;
        padding: 10px;
        height: 120%;
    }

    .welcome-section .logo {
        width: 250px;
        height: auto;
    }

    .form-section {
        height: 110%;
    }

    /* 

    .welcome-section h2 {
        font-size: 2rem;
    }

    .welcome-section .logo {
        width: 150px;
        height: 120px;
    }

    .form-section {
        padding: 40px 20px;
    }

    .form-header1 h3 {
        font-size: 1.8rem;
    }

    .login-card {
        margin: 10px;
        border-radius: 16px;
    } */
}

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

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

.input-group-custom {
    animation: fadeInUp 0.6s ease-out;
}

.input-group-custom:nth-child(1) { animation-delay: 0.1s; }
.input-group-custom:nth-child(2) { animation-delay: 0.2s; }
.input-group-custom:nth-child(3) { animation-delay: 0.3s; }

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ------------------------------------REGISTRAR--------------------------------- */
/* Contenedor principal */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Card principal horizontal */
.registration-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    height: 600px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    position: relative;
}

/* Sección izquierda - Información */
.info-section {
    background: var(--gradient-primary);
    color: white;
    padding: 50px 45px 25px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    padding: 50px 45px 25px 45px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: infoFloat 8s ease-in-out infinite;
}

@keyframes infoFloat {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.info-content {
    position: relative;
    z-index: 2;
}

.info-section h1 {
    font-size: 2.2rem;
    text-align: center;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.info-section .subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 20px;
    line-height: 1.6;
}

.plan-card {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 18px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    gap: 10px;
}

.plan-features li i {
    color: #a3ffb2;
    font-size: 1rem;
}

.info-footer {
    margin-top: 25px;
    text-align: center;
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Sección derecha - Formulario */
.form-section1 {
    padding: 10px 40px 10px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.btn-submit-horizontal:disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;

}
.form-section1::-webkit-scrollbar {
    width: 6px;
}

.form-section1::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-section1::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.form-header p {
    color: #6c757d;
    font-size: 1rem;
}

/* Secciones del formulario con tabs */
.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-button:hover {
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: tabSlide 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

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

/* Campos de entrada compactos */
.input-group-compact {
    position: relative;
    margin-bottom: 20px;
}

.input-label-compact {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.input-label-compact i {
    color: var(--primary);
}

.form-control-compact {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    width: 100%;
}

.form-control-compact:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background: white;
    outline: none;
    transform: translateY(-1px);
}

.form-control-compact.has-icon {
    padding-left: 45px;
}

.input-icon-compact {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    z-index: 10;
}

/* Grid compacto */
.form-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid-triple {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

/* Botón de envío */
.btn-submit-horizontal {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    width: 100%;
    margin-top: 12px;
}

.btn-submit-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Área de pago compacta */
.payment-area-compact {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #dee2e6;
    margin-bottom: 15px;
}

.payment-header-compact {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.payment-header-compact i {
    color: var(--success);
    font-size: 1.2rem;
    margin-right: 8px;
}

#card-element {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: border-color 0.3s ease;
}

#card-element:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Enlaces del formulario */
.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-links .btn:hover{
  color: white;
}

/* Medidor de fuerza de contraseña */
.password-strength {
    margin-top: 8px;
}

.strength-meter {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-bar.weak { background: var(--danger); width: 25%; }
.strength-bar.fair { background: var(--warning); width: 50%; }
.strength-bar.good { background: var(--info); width: 75%; }
.strength-bar.strong { background: var(--success); width: 100%; }

.strength-text {
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 600;
}

.strength-text.weak { color: var(--danger); }
.strength-text.fair { color: var(--warning); }
.strength-text.good { color: var(--info); }
.strength-text.strong { color: var(--success); }

/* Validación de contraseñas */
.password-match {
    font-size: 0.8rem;
    font-weight: 600;
}

.password-match.match {
    color: var(--success);
}

.password-match.no-match {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 992px) {
    .registration-card {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .info-section {
        padding: 40px 30px;
        min-height: auto;
    }

    .info-section h1 {
        font-size: 2.5rem;
    }

    .form-section1 {
        padding: 30px;
        max-height: none;
        overflow-y: visible;
    }

    .form-grid-compact {
        grid-template-columns: 1fr;
    }

    .form-grid-triple {
        grid-template-columns: 1fr;
    }

    .form-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 10px;
    }

    .registration-card {
        border-radius: 20px;
        height: auto;
    }

    .info-section {
        padding: 30px 20px;
    }

    .form-section1 {
        padding: 20px;
    }

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

    .form-header h2 {
        font-size: 1.8rem;
    }
}

/* Estados de carga */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animaciones de entrada */
.registration-card {
    animation: cardSlideIn 0.8s ease-out;
}

/* Verificación de correo */
.verification-section {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border-radius: 15px;
    margin: 1.5rem 0;
    border: 1px solid rgba(13, 110, 253, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: -20px;
}

.verification-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #0099ff, #0d6efd);
}

.verification-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0056b3 0%, #0099ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

.verification-icon i {
    font-size: 2.0rem;
    color: white;
}

.verification-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0099ff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2196f3 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verification-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
}

.verification-text.highlight {
    color: #374151;
    font-weight: 600;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 3px;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
    margin: 1rem 0;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animaciones */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* Responsive para móviles y tablets */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    padding: 2rem 1.5rem;
    width: 90vw;
  }

  .welcome-section {
    order: -1;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .form-section1 input,
  .form-section1 button {
    font-size: 1rem;
  }

  .circle {
    opacity: 0.6;
    filter: blur(2px);
  }

  .column1,
  .column2 {
    width: 47%;
    margin-right: 25px;
    min-width: 300px;
  }
}

@media (max-width: 480px) {
  .welcome-section h2 {
    font-size: 1.4rem;
  }

  .welcome-section p {
    font-size: 0.95rem;
  }

  .form-section1 input,
  .form-section1 button {
    font-size: 0.95rem;
  }
}