/* ================= VARIABLES GLOBALES ================= */
    :root {
      --brand-dark: #1A2530;   
      --brand-cyan: #00B4D8;   
      --glass-bg: #FFFFFF; 
      --glass-border: rgba(26, 37, 48, 0.08); 
      --w: #ffffff;
      --n: #1d2d42;
      --f-text: #4a5568;        
      --f-border: #eaeaea;      
      --f-light: #f8fafc;
      --text-main: #1d2d42;
      --title-color: var(--brand-dark);
      --video-overlay: rgba(26, 37, 48, 0.85); 
    }

    body.dark-theme {
      --w: #0f172a; 
      --n: #f8fafc; 
      --glass-bg: #0f172a; 
      --glass-border: rgba(255, 255, 255, 0.1);
      --brand-dark: #f8fafc;
      --f-text: #94a3b8; 
      --f-border: rgba(255,255,255,0.08); 
      --f-light: #1e293b;
      --text-main: #f1f5f9;
      --title-color: #ffffff;
      --video-overlay: rgba(10, 15, 24, 0.92);
    }

    html, body { height: 100%; margin: 0; overflow: hidden; }
    #mainContentWrapper { height: 100vh; overflow-y: scroll; overflow-x: hidden; position: relative; display: flex; flex-direction: column; }
    #mainContentWrapper::-webkit-scrollbar { width: 12px; }
    #mainContentWrapper::-webkit-scrollbar-track { background: #ffffff; border-left: 1px solid rgba(0,0,0,0.05); }
    #mainContentWrapper::-webkit-scrollbar-thumb { background-color: #888888; border-radius: 10px; border: 3px solid #ffffff; }
    #mainContentWrapper::-webkit-scrollbar-thumb:hover { background-color: #555555; }
    
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: Inter, sans-serif; color: var(--text-main); background-color: var(--f-light); transition: background-color 0.4s ease, color 0.4s ease; line-height: 1.8; }
    .hidden { display: none !important; }

    /* ================= DISEÑO DE PANTALLAS DE CARGA ================= */
    #loadingOverlay { position: fixed; inset: 0; width: 100%; height: 100%; min-height: 100dvh; background: rgba(255,255,255,0.95); z-index: 99999; display: flex; justify-content: center; align-items: center; padding: 24px; display: none; }
    body.dark-theme #loadingOverlay { background: rgba(15, 23, 42, 0.95); }
    .loading-overlay-box { width: min(100%, 360px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 15px; margin: 0 auto; }
    .spinner { border: 4px solid rgba(0, 180, 216, 0.2); border-top: 4px solid var(--brand-cyan); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; flex-shrink: 0; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    .progress-text { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 800; color: var(--brand-cyan); margin: 0; text-align: center; width: 100%; }
    #loadingTitle, #loadingOverlay p { text-align: center !important; width: 100%; }
    
    #successOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 37, 48, 0.95); z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
    #successOverlay.active { opacity: 1; visibility: visible; }
    .success-box { background: #fff; padding: 50px 40px; border-radius: 24px; max-width: 600px; width: 100%; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.3); transform: translateY(30px); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    body.dark-theme .success-box { background: #1e293b; color: #f8fafc; }
    #successOverlay.active .success-box { transform: translateY(0); }
    .success-icon { font-size: 70px; color: #10b981; margin-bottom: 20px; animation: scaleIn 0.5s ease forwards; animation-delay: 0.2s; opacity: 0; }
    @keyframes scaleIn { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
    .success-title { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--title-color); margin-bottom: 15px; }
    .success-text { color: var(--f-text); font-size: 15.5px; margin-bottom: 25px; line-height: 1.6; }
    .btn-success-close { background: var(--brand-cyan); color: #fff; border: none; width: 100%; padding: 18px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; text-transform: uppercase; border-radius: 12px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
    .btn-success-close:hover { background: #0096b4; transform: translateY(-2px); }

    /* ================= FONDO Y HEADER ================= */
    .static-background-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; overflow: hidden; background-color: #1A2530;}
    .static-background { width: 100%; height: 100%; object-fit: cover; opacity: 0.9;}
    .video-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--video-overlay); z-index: -1; transition: background-color 0.4s ease; }
    
    .enterprise-header-wrapper { position: fixed; top: 45px; left: 0; width: 100%; max-width: 100vw; z-index: 9999; padding: 0 4%; display: flex; justify-content: center; pointer-events: none; font-family: 'Montserrat', sans-serif; }
    .enterprise-nav-bar { width: 100%; max-width: 1350px; height: 76px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: 0 15px 35px rgba(26, 37, 48, 0.08); display: flex; justify-content: flex-end; align-items: center; padding: 0 30px; position: relative; pointer-events: auto; transition: background 0.4s, border-color 0.4s; }
    .brand-logo { position: absolute; left: 40px; top: -15px; z-index: 100; text-decoration: none; }
    .brand-logo img { height: 110px; width: auto; filter: drop-shadow(0 10px 20px rgba(26, 37, 48, 0.15)); transition: transform 0.4s ease; }
    .brand-logo:hover img { transform: scale(1.05) translateY(-2px); }
    body.dark-theme .brand-logo img { filter: brightness(0) invert(1); }
    
    .nav-links { display: flex; gap: 12px; align-items: center; }
    .nav-link { color: var(--brand-dark); text-decoration: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 10px 18px; border-radius: 50px; transition: 0.3s; cursor: pointer; border: 1.5px solid transparent; }
    .nav-link:hover { color: var(--brand-cyan); background-color: rgba(0, 180, 216, 0.05); }
    .nav-link.active-section { color: var(--brand-cyan); border-color: rgba(0, 180, 216, 0.3); background-color: rgba(0, 180, 216, 0.05); }
    .btn-login { background: var(--brand-dark); color: #ffffff !important; border: 1.5px solid var(--brand-dark); display: flex; align-items: center; gap: 8px; cursor: default; opacity: 0.9; }
    .btn-login:hover { transform: none; }

    .mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; align-items: center; gap: 10px; }
    .menu-text { font-size: 13px; font-weight: 800; color: var(--brand-dark); }
    body.dark-theme .menu-text { color: #f8fafc; }
    .mobile-menu-btn i { font-size: 24px; color: var(--brand-cyan); }
    body.dark-theme .nav-link { color: #f8fafc; }

    @media (max-width: 1024px) {
      .enterprise-header-wrapper { top: 25px; padding: 0 15px; } .enterprise-nav-bar { height: 65px; padding: 0 20px; border-radius: 16px; justify-content: flex-end; } .brand-logo { left: 20px; top: -5px; } .brand-logo img { height: 75px; } .nav-links { display: none; } .mobile-menu-btn { display: flex; }
      .mobile-active .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--glass-bg); border: 1px solid var(--f-border); border-radius: 16px; margin-top: 12px; padding: 25px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); gap: 15px; z-index: 10000; }
      .mobile-active .nav-link { width: 100%; justify-content: center; padding: 14px; text-align: center; }
    }

    /* ================= HERO SECTION ================= */
    .hero-section { padding: 250px 20px 100px; text-align: center; position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; }
    .hero-subtitle { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 6px; font-size: 12px; font-weight: 800; color: var(--brand-cyan); margin-bottom: 20px; display: block;}
    .hero-title { font-family: 'Playfair Display', serif; font-size: clamp(35px, 5vw, 65px); line-height: 1.1; color: #ffffff; margin-bottom: 30px; text-shadow: 0 5px 15px rgba(0,0,0,0.4); }
    .hero-desc { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 50px; font-weight: 300; }
    
    .btn-main { padding: 18px 35px; background: var(--brand-cyan); color: #ffffff; text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; border-radius: 12px; transition: all 0.3s ease; border: 2px solid var(--brand-cyan); display: flex; align-items: center; gap: 10px; cursor: pointer; }
    .btn-main:hover { background: transparent; transform: translateY(-3px); color: var(--brand-cyan); }
    .btn-main:disabled { background: var(--f-text) !important; border-color: var(--f-text) !important; color: #ffffff !important; cursor: not-allowed; transform: none; }
    
    .hero-actions { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; max-width: 650px; margin: 0 auto; }
    .btn-elegant-primary { width: 100%; padding: 22px 40px; background: var(--brand-cyan); border: 2px solid var(--brand-cyan); border-radius: 12px; color: #ffffff; text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; display: flex; justify-content: center; align-items: center; gap: 15px; box-shadow: 0 10px 25px rgba(0, 180, 216, 0.4); transition: all 0.4s ease; }
    .btn-elegant-primary:hover { transform: translateY(-3px); background: transparent; color: var(--brand-cyan); }
    
    .hero-secondary-row { display: flex; gap: 20px; width: 100%; }
    .btn-elegant-glass { flex: 1; padding: 18px 25px; background: #ffffff; border: 2px solid #ffffff; color: #1A2530; border-radius: 12px; text-decoration: none; font-family: 'Montserrat', sans-serif; display: flex; align-items: center; justify-content: center; gap: 18px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: all 0.4s ease; }
    .btn-elegant-glass:hover { transform: translateY(-3px); background: #1A2530; border-color: #1A2530; color: #ffffff; }
    .glass-text { font-size: 13px; font-weight: 800; letter-spacing: 2px; line-height: 1.4; text-transform: uppercase; }
    .glass-text.left { text-align: left; }
    .glass-text.right { text-align: right; }
    .elegant-icon { font-size: 26px; color: var(--brand-cyan); transition: color 0.4s ease; }
    .btn-elegant-glass:hover .elegant-icon { color: #ffffff; }

    body.dark-theme .btn-elegant-glass { background: #1e293b; border-color: #334155; color: #f8fafc; }
    body.dark-theme .btn-elegant-glass:hover { background: var(--brand-cyan); border-color: var(--brand-cyan); color: #ffffff; }

    @media (max-width: 600px) {
      .hero-secondary-row { flex-direction: column; gap: 15px; }
      .btn-elegant-glass { gap: 15px; padding: 18px 20px; justify-content: center !important; }
      .btn-elegant-glass:nth-child(1) { flex-direction: row-reverse; }
      .btn-elegant-glass:nth-child(2) { flex-direction: row; }
      .glass-text.right, .glass-text.left { text-align: left; }
    }

    /* ================= ESTILOS DE FIRMAS ================= */
    .signature-wrapper { border: 2px dashed #cbd5e1; border-radius: 12px; background: #fff; padding: 10px; position: relative; margin-top: 10px; margin-bottom: 5px; touch-action: none; }
    .signature-wrapper.error { border-color: #e74c3c; background: rgba(231, 76, 60, 0.02); }
    canvas.signature-pad { width: 100%; height: 150px; border-radius: 8px; cursor: crosshair; touch-action: none; background-color: #f8fafc;}
    .btn-clear-signature { position: absolute; top: 15px; right: 15px; background: rgba(26, 37, 48, 0.1); color: var(--brand-dark); border: none; padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: 0.3s; z-index: 10;}
    .btn-clear-signature:hover { background: rgba(26, 37, 48, 0.2); }

    /* ================= SECCIONES INFORMATIVAS ================= */
    .content-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; position: relative; z-index: 10; }
    .glass-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px; padding: 50px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); transition: all 0.4s ease; margin-bottom: 40px; display: flex; gap: 40px; align-items: flex-start; scroll-margin-top: 130px; }
    .glass-card.reverse { flex-direction: row-reverse; }
    .card-icon { width: 80px; height: 80px; background: rgba(0, 180, 216, 0.1); border: 1px solid rgba(0, 180, 216, 0.2); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 35px; color: var(--brand-cyan); flex-shrink: 0; }
    .card-content { flex: 1; width: 100%; }
    .card-content h3 { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; color: var(--title-color); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;}
    
    .card-content p, .welcome-text-container p, .faq-answer, .protocol-step p, .info-notice div, .warning-notice div, .care-notice div { text-align: justify; line-height: 1.7; }
    .card-content ul li, .protocol-step ul li, .faq-answer ul li { text-align: justify; line-height: 1.6; }
    .card-content p { font-size: 16px; color: var(--f-text); margin-bottom: 20px; }
    .card-content ul { list-style: none; padding: 0; color: var(--f-text); }
    .card-content ul li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
    .card-content ul li i { color: var(--brand-cyan); margin-top: 5px; flex-shrink: 0; }

    /* ================= SECCIÓN BIENVENIDA ================= */
    .welcome-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: row; margin-bottom: 40px; scroll-margin-top: 130px; }
    .welcome-img-container { flex: 0 0 40%; background-color: #e2e8f0; position: relative; }
    .welcome-img-container img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .welcome-text-container { flex: 1; padding: 60px 50px; }
    .welcome-text-container h2 { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--title-color); margin-bottom: 25px; line-height: 1.2; }
    .welcome-text-container p { font-size: 15px; color: var(--f-text); margin-bottom: 15px; }
    
    body.dark-theme .welcome-text-container h2 { color: #ffffff; }
    body.dark-theme .welcome-text-container p { color: rgba(255,255,255,0.8); }

    /* ================= SECCIÓN FAQ ================= */
    .faq-container { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
    .faq-item { background: rgba(26, 37, 48, 0.03); border: 1px solid rgba(26, 37, 48, 0.08); border-radius: 12px; padding: 20px; transition: all 0.3s ease; }
    .faq-item:hover { background: var(--glass-bg); border-color: var(--brand-cyan); box-shadow: 0 5px 15px rgba(0,180,216,0.1); }
    .faq-question { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; color: var(--title-color); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
    .faq-question i { color: var(--brand-cyan); margin-top: 2px;}
    .faq-answer { font-size: 14px; color: var(--f-text); }
    .faq-answer ul { padding-left: 20px; margin-top: 10px; margin-bottom: 10px; }
    .faq-answer li { margin-bottom: 8px; }

    .faq-item.highlight { background: rgba(0, 180, 216, 0.05); border: 1.5px solid var(--brand-cyan); position: relative; overflow: hidden; }
    .faq-item.highlight::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-cyan); }
    .faq-item.highlight .faq-question { color: var(--brand-cyan); font-weight: 800; font-size: 15px; }
    
    .protocol-step { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 8px; padding: 15px; margin-top: 15px; }
    .protocol-step h5 { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800; color: var(--title-color); margin-bottom: 10px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
    .protocol-step h5 i { color: var(--brand-cyan); font-size: 16px; }
    .protocol-step p { font-size: 13.5px; margin-bottom: 5px; }
    .protocol-step ul { margin-top: 5px; margin-bottom: 0; }
    .protocol-step ul li { font-size: 13.5px; }

    body.dark-theme .faq-item { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.05); }
    body.dark-theme .faq-item:hover { background: rgba(0,0,0,0.4); border-color: var(--brand-cyan); }
    body.dark-theme .faq-item.highlight { background: rgba(0, 180, 216, 0.15); border-color: var(--brand-cyan); }
    body.dark-theme .faq-question, body.dark-theme .protocol-step h5 { color: #ffffff; }
    body.dark-theme .faq-answer { color: rgba(255,255,255,0.7); }
    body.dark-theme .protocol-step { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1); }

    /* Cajas de aviso */
    .info-notice { background: rgba(0, 180, 216, 0.08); border: 1px solid rgba(0, 180, 216, 0.2); border-radius: 12px; padding: 18px 25px; margin-bottom: 30px; display: flex; align-items: flex-start; gap: 15px; font-size: 14px; color: var(--text-main); }
    .info-notice i { color: var(--brand-cyan); font-size: 24px; margin-top: 2px; }
    .warning-notice { background: rgba(231, 76, 60, 0.05); border: 1px solid rgba(231, 76, 60, 0.2); border-radius: 12px; padding: 18px 25px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; font-size: 13px; color: var(--text-main); }
    .warning-notice i { color: #e74c3c; font-size: 24px; margin-top: 2px; }
    .care-notice { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 8px; padding: 15px 20px; margin-top: 15px; display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-main); }
    .care-notice i { color: #f59e0b; font-size: 20px; margin-top: 2px; }

    body.dark-theme .info-notice { background: rgba(0, 180, 216, 0.15); border-color: rgba(0, 180, 216, 0.3); color: rgba(255, 255, 255, 0.85); }
    body.dark-theme .warning-notice { background: rgba(231, 76, 60, 0.1); border-color: rgba(231, 76, 60, 0.3); color: rgba(255, 255, 255, 0.85); }
    body.dark-theme .care-notice { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: rgba(255, 255, 255, 0.85); }

    /* ================= ESTILOS DEL FORMULARIO ================= */
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-group { margin-bottom: 20px; position: relative; }
    .form-label { display: block; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 800; color: var(--title-color); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;}
    
    .flex-inputs { display: flex; gap: 15px; }
    .flex-inputs > div { display: flex; flex-direction: column; width: 100%; }

    .input-wrapper { position: relative; display: flex; align-items: center; }
    .form-control { width: 100%; padding: 16px 20px; border-radius: 12px; background: rgba(26, 37, 48, 0.03); border: 1px solid rgba(26, 37, 48, 0.1); color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 15px; transition: all 0.3s ease; box-sizing: border-box; outline: none; }
    .form-control::placeholder { color: rgba(26, 37, 48, 0.4); }
    .form-control:focus { background: var(--glass-bg); border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1); }
    
    .email-split { display: flex; align-items: center; gap: 8px; }
    .email-split input { flex: 1.5; }
    .email-split span { font-weight: 800; color: var(--brand-cyan); font-size: 18px; }
    .email-split select { flex: 1.2; padding: 16px 10px; }
    .email-split .custom-domain { flex: 1.5; }

    /* ═══ WHATSAPP DIGIT COUNTER ═══ */
    .wa-phone-row { display: flex; gap: 10px; position: relative; }
    .wa-country-select { width: 160px; padding: 16px 10px; flex-shrink: 0; }
    .wa-digit-counter { font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; width: fit-content; transition: all 0.3s; margin-top: 4px; }
    .wa-digit-counter.neutral { color: var(--f-text); background: rgba(26,37,48,0.04); }
    .wa-digit-counter.ok { color: #10b981; background: rgba(16,185,129,0.08); }
    .wa-digit-counter.error { color: #e74c3c; background: rgba(231,76,60,0.08); }
    .wa-digit-counter.warn { color: #f59e0b; background: rgba(245,158,11,0.08); }

    /* Prefijo "+" dentro del input cuando es "otro" */
    .wa-input-wrap { position: relative; flex: 1; }
    .wa-input-wrap .plus-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: 'Montserrat',sans-serif; font-weight: 900; font-size: 15px; color: var(--brand-cyan); pointer-events: none; display: none; }
    .wa-input-wrap.show-plus .plus-prefix { display: block; }
    .wa-input-wrap.show-plus input { padding-left: 32px; }

    /* ═══ OTP MODAL ═══ */
    #otpOverlay { position: fixed; inset: 0; background: rgba(26,37,48,0.95); z-index: 100000; display: none; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(8px); }
    #otpOverlay.active { display: flex; }
    .otp-card { background: var(--glass-bg); border-radius: 24px; max-width: 440px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,0.4); overflow: hidden; transform: translateY(30px) scale(0.95); opacity: 0; transition: transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.4s; max-height: 95vh; overflow-y: auto; }
    #otpOverlay.active .otp-card { transform: translateY(0) scale(1); opacity: 1; }
    .otp-header { background: linear-gradient(135deg,#1A2530,#2d3f52); padding: 25px 30px 20px; text-align: center; }
    .otp-header h2 { font-family: 'Playfair Display',serif; font-size: 20px; color: #fff; margin: 0 0 5px; }
    .otp-header p { font-size: 12px; color: rgba(255,255,255,0.7); margin: 0; }
    .otp-body { padding: 25px 30px; }
    .otp-email-display { background: rgba(0,180,216,0.06); border: 1px solid rgba(0,180,216,0.2); border-radius: 10px; padding: 12px 16px; text-align: center; margin-bottom: 22px; font-size: 13px; color: var(--text-main); }
    .otp-email-display strong { color: var(--brand-cyan); }
    .otp-inputs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
    .otp-inputs input { width: 48px; height: 56px; text-align: center; font-family: 'Montserrat',sans-serif; font-size: 24px; font-weight: 800; color: var(--text-main); background: rgba(26,37,48,0.03); border: 2px solid rgba(26,37,48,0.12); border-radius: 12px; outline: none; transition: all 0.2s; }
    .otp-inputs input:focus { border-color: var(--brand-cyan); background: var(--glass-bg); box-shadow: 0 0 0 4px rgba(0,180,216,0.15); transform: translateY(-2px); }
    .otp-inputs input.filled { border-color: var(--brand-cyan); background: rgba(0,180,216,0.04); }
    .otp-inputs input.error-shake { animation: otpShake 0.5s; border-color: #e74c3c; }
    @keyframes otpShake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
    body.dark-theme .otp-inputs input { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.12); color: #fff; }
    .otp-timer { text-align: center; margin-bottom: 18px; }
    .otp-timer-text { font-family: 'Montserrat',sans-serif; font-size: 13px; font-weight: 700; color: var(--f-text); }
    .otp-timer-text .time { font-size: 20px; color: var(--brand-cyan); font-weight: 900; }
    .otp-timer-text .time.expiring { color: #e74c3c; }
    .otp-remaining { text-align: center; font-size: 11px; color: var(--f-text); margin-bottom: 14px; font-weight: 600; }
    .otp-status-msg { text-align: center; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; display: none; }
    .otp-status-msg.visible { display: block; }
    .otp-status-msg.success { color: #10b981; background: rgba(16,185,129,0.08); }
    .otp-status-msg.error { color: #e74c3c; background: rgba(231,76,60,0.08); }
    .otp-btn-verify { width: 100%; padding: 15px; background: var(--brand-cyan); color: #fff; border: 2px solid var(--brand-cyan); border-radius: 12px; font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .otp-btn-verify:hover:not(:disabled) { background: transparent; color: var(--brand-cyan); }
    .otp-btn-verify:disabled { background: var(--f-text); border-color: var(--f-text); cursor: not-allowed; }
    .otp-btn-resend { width: 100%; padding: 11px; background: transparent; color: var(--f-text); border: 1.5px solid var(--f-border); border-radius: 10px; font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.3s; margin-top: 8px; }
    .otp-btn-resend:hover:not(:disabled) { border-color: var(--brand-cyan); color: var(--brand-cyan); }
    .otp-btn-resend:disabled { opacity: 0.4; cursor: not-allowed; }
    .otp-btn-cancel { width: 100%; padding: 10px; background: none; border: none; color: var(--f-text); font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: 5px; }
    .otp-footer { padding: 18px 30px 22px; border-top: 1px solid var(--f-border); }
    .otp-footer p { font-size: 10px; color: var(--f-text); text-align: center; line-height: 1.6; margin: 0; }
    @media (max-width: 640px) { .otp-inputs input { width: 42px; height: 50px; font-size: 20px; } .otp-body { padding: 22px 18px; } .otp-header { padding: 22px 18px 18px; } }

    /* ═══ FLATPICKR CUSTOM ═══ */
    .flatpickr-input { cursor: pointer !important; }
    .flatpickr-calendar { font-family: 'Inter', sans-serif !important; border-radius: 14px !important; box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important; }
    .flatpickr-wrapper { width: 100% !important; display: block !important; }
    input.flatpickr-input[readonly] { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; padding: 16px 20px; border-radius: 12px; background: rgba(26,37,48,0.03); border: 1px solid rgba(26,37,48,0.1); color: var(--text-main); font-family: 'Inter',sans-serif; font-size: 15px; transition: all 0.3s; outline: none; cursor: pointer; }
    input.flatpickr-input[readonly]:focus { background: var(--glass-bg); border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(0,180,216,0.1); }
    body.dark-theme input.flatpickr-input[readonly] { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1); color: #fff; }
    body.dark-theme input.flatpickr-input[readonly]:focus { background: rgba(0,0,0,0.6); border-color: var(--brand-cyan); }
    @media (max-width: 640px) {
      .flatpickr-calendar { max-width: 100% !important; }
      .flatpickr-calendar.static { position: relative !important; margin-top: 4px; }
      input.flatpickr-input[readonly] { font-size: 14px !important; }
    }

    /* ═══ FIRMA FULLSCREEN MÓVIL ═══ */
    #sigFullscreenOverlay { position: fixed; inset: 0; background: rgba(26,37,48,0.97); z-index: 100001; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
    #sigFullscreenOverlay.active { display: flex; }
    .sig-fs-card { background: #fff; border-radius: 20px; width: 100%; max-width: 500px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
    .sig-fs-header { background: var(--brand-dark); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
    .sig-fs-header h3 { font-family: 'Montserrat',sans-serif; font-size: 13px; font-weight: 800; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
    .sig-fs-canvas-wrap { padding: 12px; background: #f8fafc; }
    .sig-fs-canvas-wrap canvas { width: 100%; height: 220px; background: #fff; border-radius: 10px; border: 2px dashed #cbd5e1; touch-action: none; cursor: crosshair; }
    .sig-fs-actions { display: flex; gap: 10px; padding: 14px 16px; background: #fff; border-top: 1px solid #edf2f7; }
    .sig-fs-actions button { flex: 1; padding: 14px; border-radius: 10px; font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: none; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 6px; }
    .sig-fs-btn-clear { background: rgba(231,76,60,0.08); color: #e74c3c; }
    .sig-fs-btn-clear:hover { background: rgba(231,76,60,0.15); }
    .sig-fs-btn-save { background: var(--brand-cyan); color: #fff; }
    .sig-fs-btn-save:hover { background: #0096b4; }
    .sig-fs-btn-cancel { background: rgba(26,37,48,0.06); color: var(--f-text); }
    .sig-fs-hint { text-align: center; padding: 0 16px 12px; font-size: 11px; color: #94a3b8; }

    /* Indicador de firma guardada */
    .sig-saved-badge { display: none; align-items: center; gap: 6px; margin-top: 6px; font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700; color: #10b981; background: rgba(16,185,129,0.08); padding: 5px 12px; border-radius: 6px; width: fit-content; }
    .sig-saved-badge.visible { display: inline-flex; }

    /* Botón "Firmar" para móvil */
    .sig-mobile-trigger { display: none; width: 100%; padding: 14px; background: rgba(0,180,216,0.06); border: 1.5px dashed rgba(0,180,216,0.3); border-radius: 12px; color: var(--brand-cyan); font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; text-align: center; margin-top: 10px; transition: all 0.3s; }
    .sig-mobile-trigger:hover { background: rgba(0,180,216,0.1); }
    .sig-mobile-trigger i { margin-right: 6px; }
    @media (max-width: 768px) {
      .signature-wrapper { display: none; }
      .sig-mobile-trigger { display: block; }
    }

    .address-box { background: rgba(26, 37, 48, 0.02); border: 1px solid rgba(26, 37, 48, 0.08); border-radius: 16px; padding: 25px; margin-bottom: 25px; }
    body.dark-theme .address-box { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.05); }

    .status-icon { position: absolute; right: 15px; font-size: 18px; }
    .icon-valid { color: #10b981; }
    .icon-invalid { color: #e74c3c; }

    select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231A2530%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 12px auto; cursor: pointer; }
    textarea.form-control { resize: vertical; min-height: 120px; }

    .section-divider { border-top: 1px dashed rgba(0,180,216,0.3); padding-top: 30px; margin-top: 30px; }
    .section-subtitle { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800; color: var(--brand-cyan); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }

    body.dark-theme .form-label { color: #ffffff; }
    body.dark-theme .form-control { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1); color: #ffffff; }
    body.dark-theme .form-control::placeholder { color: rgba(255,255,255,0.3); }
    body.dark-theme .form-control:focus { background: rgba(0,0,0,0.6); border-color: var(--brand-cyan); }
    body.dark-theme select.form-control { background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); }

    /* ================= PIE DE PÁGINA ================= */
    .premium-footer { margin-top: auto; position: relative; background-color: var(--w); font-family: 'Montserrat', sans-serif; padding: 70px 5% 100px; color: var(--brand-dark); overflow: visible !important; border-top: 1px solid var(--f-border); }
    .premium-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-dark), var(--brand-cyan), var(--brand-dark)); background-size: 200% 100%; animation: gradientMove 5s ease infinite; }
    @keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

    .pf-container { max-width: 1280px; margin: 0 auto; }
    .pf-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.5fr 1.2fr 1.5fr; gap: 30px; margin-bottom: 40px; align-items: start; }
    .pf-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--n); margin-bottom: 20px; text-align: left; }
    .pf-col ul { list-style: none; padding: 0; margin: 0; text-align: left; }
    .pf-col ul li { margin-bottom: 12px; }
    .pf-link { font-size: 13px; font-weight: 500; color: var(--f-text); text-decoration: none; position: relative; transition: color 0.3s ease; display: inline-block; padding-bottom: 2px; }
    .pf-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: 0; left: 0; background-color: var(--brand-cyan); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .pf-link:hover { color: var(--n); }
    .pf-link:hover::after { width: 100%; }

    .pf-logo-col { text-align: left; }
    .pf-logo-col img { height: 55px; width: auto; margin-bottom: 25px; transition: transform 0.3s ease; }
    .pf-logo-col img:hover { transform: scale(1.02); }

    .pf-socials { display: flex; gap: 10px; justify-content: flex-start; }
    .pf-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--f-light); color: var(--n); text-decoration: none; font-size: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .pf-social-btn:hover { background: var(--brand-cyan); color: #ffffff; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2); }

    .pf-contact { text-align: right; }
    .pf-contact .pf-title { text-align: right; }
    .pf-contact p { font-size: 13px; font-weight: 500; color: var(--f-text); line-height: 1.6; margin-bottom: 20px; }
    .pf-contact strong { color: var(--n); display: block; margin-bottom: 5px; font-weight: 700; }
    .pf-contact-link { color: var(--n); font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
    .pf-contact-link:hover { color: var(--brand-cyan); }

    .pf-indicators-bar { background-color: #f8fafc; border-radius: 12px; padding: 15px 30px; display: flex; justify-content: center; align-items: center; gap: 25px; margin: 30px auto 40px; max-width: 1200px; font-size: 14px; color: #1d2d42; border: 1px solid #edf2f7; flex-wrap: wrap; }
    .pf-indicator-item { display: flex; align-items: center; gap: 8px; font-weight: 600; }
    .pf-indicator-item i { color: #00B4D8; font-size: 16px; }
    .mf-live-ticker { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #10b981; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 10px; }
    .live-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulseDot 2s infinite; }
    @keyframes pulseDot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
    .live-ticker { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; font-weight: 800; color: #10b981; letter-spacing: 1px; }

    .pf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid var(--f-border); font-size: 13px; color: var(--f-text); position: relative; z-index: 1000; }
    .pf-bottom > div { min-width: 0; }
    .pf-bottom a { color: var(--f-text); text-decoration: none; transition: color 0.3s ease; }
    .pf-bottom a:hover { color: var(--brand-cyan); }
    .pf-bottom-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px; text-align: right; }
    .pf-bottom-links a { overflow-wrap: anywhere; word-break: break-word; }
    .pf-separator { color: rgba(26, 37, 48, 0.35); }
    .final-page-margin { height: 80px; width: 100%; flex-shrink: 0; }

    @media (max-width: 1100px) { 
      .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } 
      .pf-contact, .pf-contact .pf-title { text-align: left; } 
    }
    
    @media (max-width: 900px) {
      .welcome-card { flex-direction: column; }
      .welcome-img-container { flex: auto; height: 300px; }
      .welcome-text-container { padding: 40px 25px; }
      .form-row { grid-template-columns: 1fr; gap: 0; }
      .flex-inputs { flex-direction: column; gap: 0; }
      .email-split { flex-wrap: wrap; gap: 10px; }
      .email-split span { display: block; flex-basis: 100%; text-align: center; }
      .email-split input { flex: 1 1 100% !important; }
      .email-split select { flex: 1 1 100% !important; }
      .email-split .custom-domain { flex: 1 1 100% !important; }

      /* WhatsApp: país campo completo arriba, número campo completo abajo */
      .wa-phone-row { flex-direction: column !important; gap: 8px !important; }
      .wa-country-select { width: 100% !important; }
      .wa-input-wrap { width: 100%; }

      /* Mismo override para bloques dinámicos (co-arrendatarios / avales) */
      .dyn-wa-prefix { width: 100% !important; }
      .form-group > div[style*="display: flex"][style*="gap: 10px"] { flex-direction: column !important; gap: 8px !important; }
      .form-group > div[style*="display: flex"][style*="gap: 10px"] > select { width: 100% !important; }
      .form-group > div[style*="display: flex"][style*="gap: 10px"] > input { width: 100% !important; }
    }

    @media (max-width: 768px) { 
      .glass-card, .glass-card.reverse { flex-direction: column; text-align: left; padding: 35px 25px; }
      .card-icon { margin: 0 auto 20px; } 
      h3, h4, .section-subtitle, .form-label { text-align: left !important; justify-content: flex-start; }
      .hero-desc, .welcome-text-container p, .card-content p, .faq-answer, .protocol-step p, .info-notice div, .warning-notice div, .care-notice div, .card-content ul li,
      .glass-card p, .recom-text, .glass-card div > p { text-align: justify !important; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }
      .glass-card.reverse h4 { text-align: left !important; }
      .form-group label span, .form-group small { text-align: justify !important; display: block; }
      .pf-grid { grid-template-columns: 1fr; gap: 40px; } 
      .premium-footer { padding: 50px 5% 60px; } 
      .pf-col, .pf-title, .pf-col ul, .pf-logo-col, .pf-contact, .pf-contact p, .pf-contact .pf-title { text-align: center !important; }
      .pf-socials { justify-content: center; }
      .pf-logo-col img { margin: 0 auto 20px auto; display: block; }
      .pf-bottom { flex-direction: column; gap: 15px; text-align: center; align-items: center; } 
      .pf-bottom > div { width: 100%; max-width: 100%; }
      .pf-bottom-links { width: 100%; justify-content: center; text-align: center; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; }
      .pf-separator { display: inline-block; }
      .pf-indicators-bar { flex-direction: column; gap: 10px; text-align: center; } 
      .success-box { padding: 40px 20px; margin: 0 15px;} 
      .success-title { font-size: 26px; } 
    }

    #ticket_categoria { background-color: rgba(0, 180, 216, 0.05); border: 2px solid rgba(0, 180, 216, 0.4); font-weight: 700; color: var(--brand-dark); box-shadow: 0 5px 15px rgba(0, 180, 216, 0.15); font-size: 15px; }
    #ticket_categoria:focus { background-color: var(--glass-bg); border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2); }
    body.dark-theme #ticket_categoria { color: #ffffff; }

    .file-slot { position: relative; }
    .file-size-info { display: none; margin-top: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
    .file-size-info.visible { display: inline-block; }
    .file-size-info.ok { color: #10b981; background: rgba(16, 185, 129, 0.08); }
    .file-size-info.warn { color: #f59e0b; background: rgba(245, 158, 11, 0.08); }
    .file-size-info.error { color: #e74c3c; background: rgba(231, 76, 60, 0.08); }
  

    /* ================= AJUSTES VISUALES SOLO MÓVIL ================= */
    @media (max-width: 640px) {
      #loadingOverlay {
        padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
      }

      .loading-overlay-box {
        width: min(100%, 320px);
        gap: 14px;
      }

      #loadingTitle {
        font-size: 17px !important;
        line-height: 1.35;
        margin: 0 !important;
      }

      #loadingOverlay p {
        max-width: 100% !important;
        margin: 0 auto;
        font-size: 13.5px !important;
        line-height: 1.55 !important;
      }

      .hero-section {
        padding: 185px 16px 72px;
        min-height: auto;
      }

      .hero-actions {
        width: 100%;
        max-width: 100%;
      }

      .btn-elegant-primary {
        width: 100%;
        padding: 20px 22px;
        border-radius: 16px;
        letter-spacing: 2px;
      }

      .hero-secondary-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
      }

      .btn-elegant-glass {
        width: 100%;
        min-height: 84px;
        padding: 16px 18px;
        border-radius: 16px;
        display: grid;
        grid-template-columns: 52px 1fr;
        align-items: center;
        justify-items: start;
        gap: 14px;
      }

      .btn-elegant-glass:nth-child(1),
      .btn-elegant-glass:nth-child(2) {
        flex-direction: unset;
      }

      .btn-elegant-glass .elegant-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        background: rgba(0, 180, 216, 0.08);
      }

      .btn-elegant-glass .glass-text {
        width: 100%;
        text-align: left !important;
        letter-spacing: 1.4px;
        line-height: 1.25;
      }

      .btn-elegant-glass:nth-child(1) .elegant-icon,
      .btn-elegant-glass:nth-child(2) .elegant-icon {
        grid-column: 1;
        grid-row: 1;
      }

      .btn-elegant-glass:nth-child(1) .glass-text,
      .btn-elegant-glass:nth-child(2) .glass-text {
        grid-column: 2;
        grid-row: 1;
      }

      .content-section {
        padding: 30px 16px 72px;
      }

      .welcome-card,
      .glass-card {
        border-radius: 24px;
      }

      .glass-card,
      .glass-card.reverse {
        padding: 30px 20px;
        gap: 22px;
      }

      .welcome-text-container {
        padding: 34px 22px;
      }

      .welcome-text-container h2 {
        font-size: 32px;
        margin-bottom: 18px;
      }

      .card-icon {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 28px;
      }

      .info-notice,
      .warning-notice,
      .care-notice {
        padding: 16px 18px;
        border-radius: 16px;
      }

      .form-control {
        padding: 15px 16px;
      }
    }

    @media (max-width: 480px) {
      #garantia [style*="minmax(300px, 1fr)"],
      #garantia [style*="minmax(250px, 1fr)"] {
        grid-template-columns: 1fr !important;
      }

      .welcome-img-container {
        height: 240px;
      }

      .hero-title {
        font-size: clamp(32px, 11vw, 42px);
      }

      .hero-desc {
        font-size: 16px;
        margin-bottom: 36px;
      }
    }

/* Ajuste visual aislado: tarjeta Garantia y Resguardo del portal arrendatario */
#garantia.portal-guarantee-card,
#garantia.portal-guarantee-card * {
  box-sizing: border-box;
}

#garantia.portal-guarantee-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(300px, 1.24fr) minmax(260px, 1.02fr) minmax(220px, 0.9fr);
  grid-template-areas: "notice recommendations info intro";
  gap: 28px;
  align-items: stretch;
}

#garantia.portal-guarantee-card > * {
  min-width: 0;
}

#garantia .portal-guarantee-intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  width: auto;
}

#garantia .portal-guarantee-intro .card-icon {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 18px;
  font-size: 31px;
}

#garantia .portal-guarantee-intro .card-content h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

#garantia .portal-guarantee-intro .card-content p,
#garantia .portal-guarantee-info-card p,
#garantia .portal-guarantee-recommendations p,
#garantia .portal-guarantee-recommendation-item,
#garantia .portal-guarantee-notice div {
  text-align: left !important;
  hyphens: none !important;
  word-spacing: normal;
}

#garantia .portal-guarantee-intro .card-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

#garantia .portal-guarantee-info {
  grid-area: info;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 0;
}

#garantia .portal-guarantee-info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  border-radius: 18px;
  padding: 24px;
}

#garantia .portal-guarantee-info-card h4 {
  line-height: 1.35;
  margin-bottom: 14px;
}

#garantia .portal-guarantee-info-card p {
  font-size: 13.5px;
  line-height: 1.72;
}

#garantia .portal-guarantee-recommendations {
  grid-area: recommendations;
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px dashed rgba(26, 37, 48, 0.12);
}

#garantia .portal-guarantee-recommendations h4 {
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 18px;
}

#garantia .portal-guarantee-recommendations > p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 22px;
}

#garantia .portal-guarantee-recommendations .csp-portal_arrendatarios-inline-23 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

#garantia .portal-guarantee-recommendation-item {
  align-items: flex-start;
}

#garantia .portal-guarantee-recommendation-item .recom-text {
  font-size: 13.2px;
  line-height: 1.72;
}

#garantia .portal-guarantee-notice {
  grid-area: notice;
  align-self: stretch;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 22px 24px;
  border-radius: 16px;
}

#garantia .portal-guarantee-notice i {
  margin-top: 0;
}

#garantia .portal-guarantee-notice div {
  font-size: 13.2px;
  line-height: 1.72;
}

#garantia .portal-guarantee-notice strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 1180px) {
  #garantia.portal-guarantee-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro intro"
      "recommendations info"
      "notice notice";
    gap: 24px;
  }

  #garantia .portal-guarantee-intro {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  #garantia.portal-guarantee-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "info"
      "recommendations"
      "notice";
    gap: 22px;
  }

  #garantia .portal-guarantee-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  #garantia .portal-guarantee-recommendations {
    padding-top: 24px;
  }

  #garantia .portal-guarantee-notice {
    padding: 18px 20px;
  }
}
/* Validacion manual de termino de contrato */
.term-contract-manual-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 180, 216, 0.22);
  border-radius: 14px;
  background: rgba(0, 180, 216, 0.06);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.65;
}

.term-contract-manual-note i {
  color: var(--brand-cyan);
  font-size: 20px;
  margin-top: 2px;
}

.term-contract-manual-note strong {
  display: block;
  margin-bottom: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.term-renewal-other {
  margin-top: 10px;
}

.term-field-help {
  display: block;
  margin-top: 8px;
  color: var(--f-text);
  font-size: 12px;
  line-height: 1.45;
}

.term-contract-review {
  margin: 4px 0 22px;
}

.term-contract-review div {
  text-align: left !important;
}

.term-contract-review span {
  display: block;
  line-height: 1.65;
  text-align: justify !important;
  text-align-last: left;
}

.term-contract-review.term-ok {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.term-contract-review.term-ok i,
.term-contract-review.term-ok strong {
  color: #059669;
}

.term-contract-review.term-warning {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.32);
}

.term-contract-review.term-warning i,
.term-contract-review.term-warning strong {
  color: #b45309;
}

body.dark-theme .term-contract-manual-note {
  background: rgba(0, 180, 216, 0.13);
  border-color: rgba(0, 180, 216, 0.28);
  color: rgba(255, 255, 255, 0.86);
}

body.dark-theme .term-field-help {
  color: rgba(255, 255, 255, 0.64);
}