
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --tl-azul-principal: #002749;
  --tl-naranja-acento: #ff6b35; 
  --tl-naranja-opaco: #FF8C00;
  --tl-gris-neutro: #6c757d; 
  --tl-blanco-puro: #ffffff; 
}
html {
    height: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
}


input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-password-toggle {
  display: none;
}


/* ===========================================
   NAVBAR
   =========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand img {
    height: 38px;
    width: auto;
}

.navbar-brand span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #002749;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.navbar-links a:hover {
    color: #002749;
    background: #f1f5f9;
}

.navbar-links .btn-nav {
    background: #002749;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    margin-left: 10px;
    font-weight: 600;
}

.navbar-links .btn-nav:hover {
    background: #001a33;
    color: white;
}

/* ===========================================
   CONTENIDO PRINCIPAL
   =========================================== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
}

.card {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 760px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 39, 73, 0.12);
    overflow: visible;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

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

/* ===========================================
   PANEL IZQUIERDO
   =========================================== */
.panel-left {
    flex: 0 0 38%;
    background: var(--tl-azul-principal);
    border-radius: 20px 0 0 20px;
    padding: 40px 30px 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(0, 39, 73, 0.0) 0%,
        rgba(0, 39, 73, 0.4) 50%,
        rgba(0, 39, 73, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Textura de puntos sutil */
.panel-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

/* Contenedor de la ilustración */
.panel-illustration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    overflow: hidden;
}

.panel-illustration img {
    width: 90%;
    height: auto;
    max-height: 75%;
    opacity: 0.12;
    object-fit: contain;
}

/* Redes sociales */
.panel-social {
    position: relative;
    z-index: 5;
}

.panel-social-title {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: white;
    transform: translateX(4px);
}

.social-link i {
    font-size: 1.1rem;
    width: 22px;
}

/* Tabs */
.panel-tabs {
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.panel-tab {
    display: block;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 18px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
}

.panel-tab:hover:not(.active) {
    color: white;
}

.panel-tab.active {
    background: white;
    color: #ff6b35;
    font-weight: 600;
    border-radius: 14px 0 0 14px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    padding-right: 40px;
    margin-right: -1px;
}

.panel-footer {
    position: relative;
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
}

/* ===========================================
   PANEL DERECHO
   =========================================== */
.panel-right {
    flex: 1;
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 0 20px 20px 0;
    overflow-y: auto;
    max-height: 760px;
}

.panel-right::-webkit-scrollbar {
    width: 5px;
}

.panel-right::-webkit-scrollbar-track {
    background: transparent;
}

.panel-right::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* ===========================================
   HEADER DEL FORMULARIO
   =========================================== */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
}

.form-header-text h2 {
    color: #002749;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-header-text p {
    color: #94a3b8;
    font-size: 0.88rem;
}

.step-dots {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

.step-dot {
    width: 35px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: linear-gradient(90deg, #ff6b35, #ff8c5a);
    width: 45px;
}

.step-dot.completed {
    background: #002749;
}

/* ===========================================
   SECCIONES DEL FORMULARIO
   =========================================== */
.form-section {
    display: none;
    flex: 1;
}

.form-section.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.35s ease;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #002749;
    margin-bottom: 28px;
}

.section-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ===========================================
   CAMPOS DEL FORMULARIO
   =========================================== */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #1a202c;
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.form-input:focus {
    outline: none;
    border-color: #002749;
    box-shadow: 0 0 0 4px rgba(0, 39, 73, 0.06);
}

.form-input::placeholder {
    color: #a0aec0;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.input-icon.toggle-password {
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.2s ease;
}

.input-icon.toggle-password:hover {
    color: #002749;
}

/* Rows de columnas */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

/* Select */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

/* ===========================================
   BOTONES
   =========================================== */
.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
    max-width: 200px;
   
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #002749;
}

.buttons-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.buttons-row .btn-primary,
.buttons-row .btn-secondary {
    flex: 0 0 auto;
    max-width: 160px;
}

/* Link de login */
.form-link {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.form-link a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.form-link a:hover {
    text-decoration: underline;
}

/* ===========================================
   PANTALLA DE VERIFICACIÓN
   =========================================== */
.verification-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    flex: 1;
}

.verification-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
}

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

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

.verification-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #002749;
    margin-bottom: 12px;
}

.verification-message {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 380px;
}

.email-highlight {
    color: #ff6b35;
    font-weight: 600;
}

.info-box {
    background: #fffbf7;
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-left: 4px solid #ff6b35;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 0 auto 28px;
    text-align: left;
    max-width: 400px;
}

.info-box p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box i {
    color: #ff6b35;
    margin-top: 3px;
    font-size: 0.9rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
    color: white;
}

/* ===========================================
   PANTALLA DE CONFIRMACIÓN (ÉXITO)
   =========================================== */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    flex: 1;
}

.checkmark-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
    position: relative;
}

.circle-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.circle-background {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 4;
}

.circle-progress {
    fill: none;
    stroke: #ff6b35;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    animation: drawCircle 1.5s ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

.circle-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #34d399);
    transform: scale(0);
    animation: fillCircle 0.6s ease-out 1.5s forwards;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
}

@keyframes fillCircle {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: checkAppear 0.6s ease-out 2s forwards;
}

.checkmark i {
    font-size: 3.5rem;
    color: white;
}

@keyframes checkAppear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    60% { transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002749;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 2.3s forwards;
}

.success-message {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 380px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 2.5s forwards;
}

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

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
    opacity: 0;
    animation: fadeInUp 0.6s ease 2.7s forwards;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
    color: white;
}

/* Confeti */
.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    opacity: 0.8;
    z-index: 9999;
    animation: fall 4s linear forwards;
    border-radius: 2px;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===========================================
   SWEETALERT2
   =========================================== */
.swal2-popup {
    border-radius: 16px !important;
    font-family: 'Poppins', sans-serif !important;
}

.swal2-title {
    color: #002749 !important;
    font-weight: 600 !important;
}

.swal2-html-container {
    color: #64748b !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25) !important;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 14px 24px;
    }
    
    .main-content {
        padding: 25px 24px;
    }
    
    .card {
        max-width: 100%;
        min-height: 580px;
    }
    
    .panel-left {
        flex: 0 0 32%;
        padding: 40px 25px 40px 32px;
    }
    
    .panel-right {
        padding: 40px 40px;
        max-height: 580px;
    }
    
    .form-row, .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        background: white;
    }
    
    .navbar {
        display: none;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .navbar-links a:not(.btn-nav) {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .card {
        flex-direction: column;
        min-height: auto;
        border-radius: 16px;
        box-shadow: none;
    }
    
    .panel-left {
        display: none;
    }
    
    .panel-right {
        border-radius: 16px;
        padding: 35px 24px;
        max-height: none;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .buttons-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .buttons-row .btn-primary,
    .buttons-row .btn-secondary {
        max-width: 100%;
        width: 100%;
    }
    
    .btn-secondary {
        order: 2;
    }
    
    .btn-primary {
        max-width: 100%;
        width: 100%;
    }
    
    .verification-container,
    .success-container {
        padding: 10px;
    }
    
    .checkmark-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .circle-svg,
    .circle-fill {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .navbar {
        display: none;
    }
    
    .panel-right {
        padding: 28px 20px;
    }
    
    .form-header-text h2 {
        font-size: 1.4rem;
    }
    
    .form-input {
        padding: 12px 42px 12px 14px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .verification-title,
    .success-title {
        font-size: 1.5rem;
    }
    
    .verification-message,
    .success-message {
        font-size: 0.9rem;
    }
}