/* ================================
   Ambermex Theme - Seguridad
   Color: #2d5a87 (Azul confianza)
   ================================ */

/* Theme Variables Override */
:root {
    --theme-primary: #2d5a87;
    --theme-primary-dark: #1e3d5c;
    --theme-primary-light: #4a7ba8;
    --theme-secondary: #c2703a;
    --theme-accent: #7DA177;
}

/* Header */
.header--ambermex {
    border-bottom: 3px solid var(--theme-primary);
}

.header--ambermex .logo-img {
    filter: none;
}

.header--ambermex .btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.header--ambermex .btn-primary:hover {
    background-color: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
}

/* Hero */
.hero--ambermex {
    background: linear-gradient(135deg, rgba(45, 90, 135, 0.8) 0%, rgba(30, 61, 92, 0.85) 100%), url('../images/screenshots/ingreso_reja_vehiculo.png') center/cover no-repeat;
}

.hero--ambermex::before {
    background: radial-gradient(circle, rgba(125, 161, 119, 0.15) 0%, transparent 70%);
}

.hero--ambermex::after {
    background: radial-gradient(circle, rgba(194, 112, 58, 0.1) 0%, transparent 70%);
}

/* Buttons */
.btn-primary--ambermex {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

.btn-primary--ambermex:hover {
    background-color: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
}

.btn-outline--ambermex {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.btn-outline--ambermex:hover {
    background-color: var(--theme-primary);
    color: white;
}

/* Cards */
.card--ambermex {
    border-left: 4px solid var(--theme-primary);
}

.card--ambermex:hover {
    box-shadow: 0 10px 30px rgba(45, 90, 135, 0.15);
}

/* Badges */
.badge--ambermex {
    background-color: var(--theme-primary);
    color: white;
}

/* Navigation active state */
.nav--ambermex .nav-menu a.active,
.nav--ambermex .nav-menu a:hover {
    color: var(--theme-primary);
}

/* Section titles */
.section-title--ambermex {
    color: var(--theme-primary);
}

/* Footer */
.footer--ambermex {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, #0f2a45 100%);
}

/* Feature icons */
.icon--ambermex {
    background-color: rgba(45, 90, 135, 0.1);
    color: var(--theme-primary);
}

/* Stats */
.stat-value--ambermex {
    color: var(--theme-primary);
}

/* Demo cards */
.demo-card--ambermex {
    border-color: var(--theme-primary);
}

.demo-card--ambermex:hover {
    border-color: var(--theme-primary-dark);
    box-shadow: 0 8px 25px rgba(45, 90, 135, 0.2);
}

/* Pricing cards */
.pricing-card--ambermex.featured {
    border-color: var(--theme-primary);
}

.pricing-card--ambermex .price-amount {
    color: var(--theme-primary);
}

/* CTA section */
.cta--ambermex {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
}

/* Forms */
.input--ambermex:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

/* Progress steps */
.progress-step--ambermex.active {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.progress-step--ambermex.completed {
    background-color: var(--theme-accent);
}

/* ================================
   ROI Widget
   ================================ */

.roi-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.roi-inputs {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.roi-inputs h3 {
    font-size: 1.1rem;
    color: var(--theme-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.roi-field {
    margin-bottom: 1.5rem;
}

.roi-field:last-child {
    margin-bottom: 0;
}

.roi-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.roi-field label span {
    background: var(--theme-primary);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: center;
}

/* Custom range slider */
.roi-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--theme-primary) 0%, var(--theme-primary) var(--fill, 50%), #e5e7eb var(--fill, 50%), #e5e7eb 100%);
    outline: none;
    cursor: pointer;
}

.roi-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--theme-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.roi-field input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.roi-field input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--theme-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}

.roi-field select,
.roi-field input[type="number"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    background: white;
    transition: border-color 0.2s;
}

.roi-field select:focus,
.roi-field input[type="number"]:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.roi-field .roi-salary-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Results panel */
.roi-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roi-cost-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.roi-cost-box h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.roi-cost-box--current h4 {
    color: #6b7280;
}

.roi-cost-box--amber h4 {
    color: var(--theme-primary);
}

.roi-cost-amount {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.roi-cost-box--current .roi-cost-amount {
    color: #374151;
}

.roi-cost-box--amber .roi-cost-amount {
    color: var(--theme-primary);
}

.roi-cost-detail {
    font-size: 0.85rem;
    color: #9ca3af;
}

.roi-vs-divider {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Savings highlight */
.roi-savings {
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}

.roi-savings--positive {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #6ee7b7;
}

.roi-savings--neutral {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #93c5fd;
}

.roi-savings-amount {
    font-size: 1.5rem;
    font-weight: 800;
}

.roi-savings--positive .roi-savings-amount {
    color: #059669;
}

.roi-savings--neutral .roi-savings-amount {
    color: var(--theme-primary);
}

.roi-savings-annual {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.roi-savings--positive .roi-savings-annual {
    color: #047857;
}

.roi-savings--neutral .roi-savings-annual {
    color: #1e40af;
}

.roi-savings-pct {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.roi-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.roi-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 1rem;
    font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
    .roi-widget {
        grid-template-columns: 1fr;
    }
}

/* ─── Trust Layer ─── */
.security-badges {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
}

.security-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.security-badge-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 90, 135, 0.1);
}

.security-badge-icon svg {
    width: 22px;
    height: 22px;
    stroke: #2d5a87;
    fill: none;
    stroke-width: 2;
}

.security-badge-text h4 {
    font-size: 0.9rem;
    color: #1a1a2e;
    margin: 0 0 0.15rem;
}

.security-badge-text p {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* CountUp animation */
.trust-number[data-countup] {
    transition: opacity 0.3s;
}

.trust-number.counting {
    opacity: 1;
}

/* Trust strip (compact version for precios/vs pages) */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.trust-strip-item {
    text-align: center;
}

.trust-strip-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d5a87;
    line-height: 1;
}

.trust-strip-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .security-badges-grid {
        grid-template-columns: 1fr;
    }
    .trust-strip {
        gap: 1.5rem;
    }
    .trust-strip-number {
        font-size: 1.5rem;
    }
}

/* ─── Guide Pages ─── */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.guide-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    position: sticky;
    top: 5rem;
}

@media (max-width: 900px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
    .guide-form {
        position: static;
    }
}
