/* assets/css/style.css */

/* ===== VARIABLES Y CONFIGURACIÓN GENERAL ===== */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e40af;
    --accent-orange: #f97316;
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ===== NAVBAR MEJORADA ===== */
.navbar {
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--gradient-primary) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
header#inicio {
    background: var(--gradient-primary);
    padding-top: 100px !important;
    padding-bottom: 80px !important;
    position: relative;
    overflow: hidden;
}

header#inicio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,192C672,181,768,139,864,138.7C960,139,1056,181,1152,192C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center bottom;
}

header#inicio h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header#inicio .lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

header#inicio .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

header#inicio .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 80px 0;
}

h2 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* ===== CARACTERÍSTICAS ===== */
#caracteristicas .row > div {
    transition: all 0.3s ease;
}

#caracteristicas .p-4 {
    border: none !important;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

#caracteristicas .p-4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-blue);
}

#caracteristicas .p-4:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

#caracteristicas h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== GALERÍA ===== */
#galeria {
    background-color: var(--light-gray);
}

.carousel-item {
    height: 450px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    border-radius: var(--border-radius);
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

/* ===== DESCARGAS ===== */
#descargas .btn {
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

#descargas .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== MANUALES ===== */
#manuales {
    background-color: var(--light-gray);
}

#manuales .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
}

#manuales .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== FORMULARIO DE SOPORTE ===== */
#soporte form {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
}

.form-control {
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#soporte .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#soporte .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-gray) !important;
    padding: 30px 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header#inicio {
        padding: 80px 0 60px !important;
    }
    
    header#inicio h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    #descargas .btn, #manuales .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== BOTÓN FLOTANTE DE VOLVER ARRIBA ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}