/* Estilos modernos inspirados en index.html */

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --card: rgba(255,255,255,.05);
    --muted: #a0a0a0;
    --text: #ffffff;
    --brand: #0066ff;
    --accent: #00b3ff;
    --gradient: linear-gradient(135deg, #0066ff 0%, #00b3ff 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --glass: blur(8px) saturate(120%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    padding-top: 0;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 10% -10%, #0a1a3a 0%, transparent 60%),
        radial-gradient(900px 500px at 90% 10%, #1a2a4a 0%, transparent 60%),
        linear-gradient(180deg, var(--bg), #050505 60%);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    backdrop-filter: var(--glass);
    background: rgba(10, 10, 10, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.3px;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand::before {
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gradient);
    box-shadow: var(--shadow);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white !important;
}

/* HERO SECTION */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section * {
    position: relative;
    z-index: 2;
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand);
    color: var(--brand);
}

.btn-light {
    background: white;
    color: #0066ff;
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* CARDS */
.card {
    background: var(--card) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius) !important;
    backdrop-filter: var(--glass);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 102, 255, 0.3) !important;
}

.card-body {
    color: var(--text);
}

.card-title {
    font-weight: 700;
    color: var(--text);
}

.card-text {
    color: var(--muted);
}

/* PRICE BOX */
.price-box {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover .price-box {
    background: rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.4);
}

/* Énfasis en "DESDE" en precios */
.price-box span[style*="DESDE"],
.price-box .fw-bold span[style*="DESDE"] {
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.15rem !important;
    margin-right: 4px;
}

/* SECTIONS */
section {
    padding: 80px 0;
}

.servicios-section {
    padding-top: 120px !important;
    padding-bottom: 80px !important;
}

.sec-head {
    margin-bottom: 40px;
}

/* AVATAR CIRCLE */
.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--brand);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    background: var(--gradient);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

/* FOOTER */
footer {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.8)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    color: var(--muted);
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--brand);
}

/* CHIPS/TAGS */
.chip, .badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: var(--brand);
}

.badge.bg-primary {
    background: rgba(0, 102, 255, 0.15) !important;
    color: var(--brand) !important;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.badge.bg-success {
    background: rgba(109, 247, 167, 0.15) !important;
    color: #6df7a7 !important;
    border: 1px solid rgba(109, 247, 167, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .hero-section {
        padding: 80px 0 40px !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .servicios-section {
        padding-top: 200px !important;
        padding-bottom: 60px !important;
        margin-top: 40px !important;
    }
}

/* Mobile pequeño */
@media (max-width: 576px) {
    .servicios-section {
        padding-top: 250px !important;
        margin-top: 60px !important;
    }
    
    .hero-section {
        padding: 70px 0 30px !important;
    }
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* TEXT GRADIENT */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ALERT */
.alert {
    border-radius: 12px;
    backdrop-filter: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FORM INPUTS */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 10px;
    padding: 12px;
}

/* Custom dropdown styling */
select.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

select.form-select option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand);
    color: var(--text);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

.form-label {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}

/* HERO CARD */
.hero-card {
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: var(--glass);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CATEGORY SECTION */
.category-section {
    padding: 2rem 0;
}

/* UTILITIES */
.bg-primary {
    background: var(--brand) !important;
}

.bg-light {
    background: var(--card) !important;
    color: var(--text);
}

.text-muted {
    color: var(--muted) !important;
}

.text-primary {
    color: var(--brand) !important;
}

.text-success {
    color: #6df7a7 !important;
}

/* DISPLAY UTILITIES */
.display-1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.display-5 {
    font-size: 2rem;
    font-weight: 700;
}

/* LEAD TEXT */
.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* HR STYLES */
hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* GLASS MORPHISM EFFECT */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* BLACK FRIDAY STYLES */
.badge.bg-danger {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    color: white !important;
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
}

.text-danger {
    color: #ff4444 !important;
}
