/* ============================================================
   CALCULADORA DE RENTING - SISTEMA NAVY + GOLD
   ============================================================ */
/* Quitar flechas en Chrome, Safari, Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ===== SISTEMA DE DISEÑO MODERNO NAVY + GOLD ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Radio de bordes */
    --radius: 0.875rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    
    /* Colores base */
    --background: oklch(0.99 0.005 90);
    --foreground: oklch(0.18 0.04 260);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.18 0.04 260);
    
    /* Paleta Navy */
    --navy: oklch(0.22 0.06 265);
    --navy-deep: oklch(0.14 0.05 265);
    --navy-light: oklch(0.35 0.08 265);
    --primary: oklch(0.22 0.06 265);
    --primary-foreground: oklch(0.98 0.005 90);
    
    /* Paleta Gold */
    --gold: oklch(0.82 0.16 85);
    --gold-dark: oklch(0.70 0.14 85);
    --gold-light: oklch(0.88 0.14 88);
    --gold-foreground: oklch(0.18 0.04 260);
    
    /* Colores semánticos */
    --muted: oklch(0.96 0.01 250);
    --muted-foreground: oklch(0.45 0.03 260);
    --accent: oklch(0.82 0.16 85);
    --border: oklch(0.9 0.012 260);
    --input: oklch(0.95 0.005 90);
    --ring: oklch(0.82 0.16 85);
    
    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, oklch(0.14 0.05 265) 0%, oklch(0.22 0.06 265) 55%, oklch(0.32 0.09 270) 100%);
    --gradient-gold: linear-gradient(135deg, oklch(0.88 0.14 88) 0%, oklch(0.78 0.17 75) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    
    /* Sombras */
    --shadow-elegant: 0 25px 60px -25px color-mix(in oklab, var(--navy-deep) 45%, transparent);
    --shadow-gold: 0 20px 50px -20px color-mix(in oklab, var(--gold) 55%, transparent);
    --shadow-card: 0 10px 30px -15px color-mix(in oklab, var(--navy-deep) 25%, transparent);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    /* Tipografías */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'DM Mono', monospace;
    
    /* Colores específicos (semánticos) */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.12);
}

/* ===== ESTILOS BASE ===== */
body {
    background: radial-gradient(circle at 10% 20%, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 72px;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* ===== HERO ===== */
.renting-hero {
    background: var(--gradient-hero);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.renting-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.06"><path d="M20 40 L40 20 L60 20 L80 40 L80 60 L60 80 L40 80 L20 60 Z" fill="none" stroke="white" stroke-width="1.5"/><circle cx="50" cy="50" r="8" fill="white" opacity="0.3"/></svg>');
    background-size: 60px;
    background-repeat: repeat;
    opacity: 0.1;
    pointer-events: none;
}

.renting-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.renting-hero-content h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.renting-hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.renting-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ===== TARJETA PRINCIPAL ===== */
.renting-card {
    background: var(--gradient-card);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.renting-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.renting-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.renting-card-header i {
    font-size: 1.5rem;
    color: var(--gold);
    background: var(--muted);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.renting-card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.renting-card-header p {
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

/* ===== FORMULARIOS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 700px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gold);
}

.field label i {
    margin-right: 0.25rem;
}

.field input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(210, 158, 0, 0.15);
    background: white;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.8rem;
    z-index: 1;
}

.input-icon input {
    padding-left: 2rem;
}

/* ===== DIVIDER ===== */
.divider {
    margin: 1rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== BOTÓN CALCULAR ===== */
.btn-calcular {
    width: 100%;
    padding: 0.9rem;
    background: var(--gradient-gold);
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gold-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-gold);
}

.btn-calcular:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ===== RESULTADOS ===== */
.resultado-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    color: white;
    animation: fadeIn 0.5s ease;
}

.resultado-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.resultado-valor {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.resultado-detalle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detalle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detalle-item:last-child {
    border-bottom: none;
}

.detalle-item .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.detalle-item .value {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.nota-legal {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 1rem;
}

/* ===== BOTONES FLOTANTES ===== */
.btn-back-floating {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
    z-index: 40;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-back-floating:hover {
    transform: scale(1.1);
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
    background: var(--gradient-hero);
    color: white;
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

footer a:hover {
    color: white;
    transform: translateY(-2px);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.renting-card {
    animation: fadeIn 0.4s ease;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    body {
        padding-top: 64px;
    }
    
    .renting-hero {
        padding: 2rem 1rem;
    }
    
    .renting-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .renting-container {
        padding: 0 1rem 2rem;
    }
    
    .renting-card {
        padding: 1.25rem;
    }
    
    .resultado-valor {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .renting-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .renting-hero-content p {
        font-size: 0.8rem;
    }
    
    .btn-calcular {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .resultado-section {
        padding: 1rem;
    }
    
    .resultado-valor {
        font-size: 1.3rem;
    }
    
    .detalle-item .label {
        font-size: 0.65rem;
    }
    
    .detalle-item .value {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .renting-hero-content h1 {
        font-size: 1.3rem;
    }
    
    .renting-card-header h2 {
        font-size: 0.9rem;
    }
    
    .field label {
        font-size: 0.65rem;
    }
    
    .field input {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .input-icon i {
        font-size: 0.7rem;
    }
    
    .input-icon input {
        padding-left: 1.8rem;
    }
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}