*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ===================== LAYOUT ===================== */
.sf-wrap { display: flex; min-height: 100vh; }

/* ===================== LADO IZQUIERDO ===================== */
.sf-left {
   flex: 1;
   padding: 40px 48px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   position: relative;
   overflow: hidden;
   background: linear-gradient(135deg, #0a1628 0%, #0d3a6e 45%, #007a74 100%);
   background-size: cover;
   background-position: center;
}

.sf-left-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(13,58,110,0.82) 45%, rgba(0,122,116,0.80) 100%);
   z-index: 0;
}

.sf-left-content { position: relative; z-index: 1; }
.sf-left-footer { position: relative; z-index: 1; }
.sf-left-footer p { color: rgba(255,255,255,0.3); font-size: 11px; }

/* Logo izquierdo */
.sf-logo { margin-bottom: 56px; }
.sf-logo-img { height: 36px; width: auto; filter: brightness(0) invert(1); }

/* Hero */
.sf-hero-title { font-size: 30px; font-weight: 500; color: #ffffff; line-height: 1.3; margin-bottom: 14px; }
.sf-hero-title span { color: #00d4c8; }
.sf-hero-sub { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.75; margin-bottom: 36px; max-width: 380px; }

/* Features list */
.sf-features-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.sf-features-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); font-size: 14px; }
.sf-feat-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #00d4c8; flex-shrink: 0; }

/* ===================== LADO DERECHO ===================== */
.sf-right {
   width: 440px; min-width: 440px; background: #ffffff;
   display: flex; flex-direction: column; align-items: center;
   padding: 36px 44px 40px; overflow-y: auto; max-height: 100vh;
}

/* Logo derecho */
.sf-right-logo { margin-bottom: 24px; }
.sf-right-logo-img { height: 32px; width: auto; }

/* Tabs */
.sf-tabs { display: flex; width: 100%; margin-bottom: 26px; border-bottom: 1.5px solid #e8eef5; }
.sf-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; cursor: pointer; color: #aaa; border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: color 0.2s, border-color 0.2s; user-select: none; }
.sf-tab.active { color: #0a1628; font-weight: 500; border-bottom-color: #00a89e; }

/* Panels */
.sf-panel { width: 100%; display: none; }
.sf-panel.show { display: block; }
.sf-panel-title { font-size: 20px; font-weight: 500; color: #0a1628; text-align: center; margin-bottom: 5px; }
.sf-panel-sub { font-size: 12px; color: #aaa; text-align: center; margin-bottom: 22px; }

/* Form elements */
.sf-form-group { margin-bottom: 13px; }
.sf-form-group label { display: block; font-size: 11px; color: #666; margin-bottom: 5px; }
.sf-form-group input, .sf-form-group select {
   width: 100%; padding: 10px 12px; border: 1px solid #dde4ed; border-radius: 7px;
   font-size: 13px; color: #0a1628; outline: none; background: #fff; transition: border-color 0.2s;
}
.sf-form-group input:focus, .sf-form-group select:focus { border-color: #00a89e; }
.sf-form-group input::placeholder { color: #bbb; }
.sf-form-row { display: flex; gap: 10px; }
.sf-form-row .sf-form-group { flex: 1; }
.sf-error { display: block; font-size: 11px; color: #e53e3e; margin-top: 4px; }

/* Remember */
.sf-remember { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.sf-remember input[type="checkbox"] { width: 14px; height: 14px; cursor: pointer; }
.sf-remember label { font-size: 12px; color: #888; cursor: pointer; }

/* Section label */
.sf-section-label { font-size: 11px; font-weight: 500; color: #00a89e; text-transform: uppercase; letter-spacing: 0.8px; margin: 18px 0 10px; }

/* Planes */
.sf-plans-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
   gap: 8px;
   margin-bottom: 18px;
}
.sf-plan-card {
   border: 1.5px solid #dde4ed; border-radius: 10px; padding: 10px 6px;
   text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s;
   position: relative; min-width: 0;
}
.sf-plan-card:hover { border-color: #00a89e; }
.sf-plan-card.selected { border-color: #00a89e; background: #f0faf9; }
.sf-plan-badge { background: #00a89e; color: #fff; font-size: 9px; font-weight: 500; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-bottom: 4px; }
.sf-plan-name { font-size: 10px; font-weight: 500; color: #555; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-plan-card.selected .sf-plan-name { color: #00a89e; }
.sf-plan-price { font-size: 13px; font-weight: 500; color: #0a1628; }
.sf-plan-price span { font-size: 9px; color: #aaa; font-weight: 400; }
.sf-plan-detail { font-size: 9px; color: #aaa; margin-top: 2px; }

/* Botón principal */
.sf-btn-primary {
   width: 100%; padding: 12px; border-radius: 8px; border: none; cursor: pointer;
   background: linear-gradient(135deg, #0d3a6e, #00a89e);
   color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 14px; transition: opacity 0.2s;
}
.sf-btn-primary:hover { opacity: 0.92; }

/* Bottom links */
.sf-form-bottom { text-align: center; font-size: 12px; color: #888; }
.sf-link { color: #00a89e; text-decoration: none; }
.sf-link:hover { text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
   .sf-wrap { flex-direction: column; }
   .sf-left { min-height: 320px; padding: 32px 24px; }
   .sf-right { width: 100%; min-width: unset; max-height: unset; padding: 32px 24px; }
   .sf-hero-title { font-size: 22px; }
}

/* ===================== MODAL DE PLAN ===================== */
.sf-plan-details-link {
   display: block;
   font-size: 11px;
   color: #00a89e;
   text-decoration: none;
   margin-top: 8px;
   text-align: center;
}

.sf-plan-details-link:hover {
   text-decoration: underline;
}

.sf-modal-overlay {
   display: none;
   position: fixed;
   inset: 0;
   background: rgba(0,0,0,0.5);
   z-index: 1000;
}

.sf-modal-overlay.show {
   display: block;
}

.sf-plan-modal {
   display: none;
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 320px;
   background: #fff;
   border-radius: 14px;
   z-index: 1001;
   box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.sf-plan-modal.show {
   display: block;
}

.sf-plan-modal-header {
   padding: 20px 20px 12px;
   border-bottom: 1px solid #e8eef5;
   position: relative;
}

.sf-plan-modal-header strong {
   display: block;
   font-size: 16px;
   color: #0a1628;
   margin-bottom: 4px;
}

.sf-plan-modal-price {
   font-size: 20px;
   font-weight: 500;
   color: #00a89e;
}

.sf-plan-modal-price small {
   font-size: 12px;
   color: #aaa;
   font-weight: 400;
}

.sf-plan-modal-close {
   position: absolute;
   top: 16px;
   right: 16px;
   background: none;
   border: none;
   font-size: 16px;
   color: #aaa;
   cursor: pointer;
   line-height: 1;
}

.sf-plan-modal-close:hover {
   color: #0a1628;
}

.sf-plan-modal-body {
   padding: 16px 20px;
}

.sf-plan-modal-item {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
   color: #444;
   padding: 6px 0;
   border-bottom: 1px solid #f5f5f5;
}

.sf-plan-modal-item:last-child {
   border-bottom: none;
}

.sf-check {
   font-size: 14px;
   flex-shrink: 0;
}

.sf-plan-modal-footer {
   padding: 12px 20px 20px;
}

.sf-plan-modal-footer .sf-btn-primary {
   margin-bottom: 0;
}
