@font-face {
  font-family: "Futura";
  src:
    local("Futura"),
    url("../../fonts/futura.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
 
@font-face {
  font-family: "FuturaMedium";
  src:
    local("FuturaMedium"),
    url("../../fonts/futura-second.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}



/* Variables CSS */

:root {
    --primary-color: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary-color: #1f2937;
    --secondary-light: #374151;
    --text-color: #374151;
    --text-light: #6b7280;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* ===================================
   2. Reset y Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Futura','Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===================================
   3. Tipografía
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}

/* ===================================
   4. Navbar Personalizado
   =================================== */
.navbar {
    transition: var(--transition);
    z-index: 1000;
     background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
    white-space: nowrap;
}

.navbar-search {
    flex: 1;
    max-width: 500px;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.search-input-group {
    position: relative;
    width: 100%;
}

.search-input-group .form-control {
    border-radius: 50px;
    padding: 0.6rem 3.5rem 0.6rem 1.2rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 500px;
}


.search-input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.15);
    outline: none;
}

.search-input-group .btn-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    background: var(--primary-color);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.search-input-group .btn-search i {
    font-size: 0.9rem;
}

.search-input-group .btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}



/* Hacer que el navbar sea más compacto pero funcional */
@media (min-width: 992px) {
    .navbar .container {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* En móvil, stack todo verticalmente */
@media (max-width: 991px) {

    .search-input-group .form-control {
        padding: 0.75rem 3.5rem 0.75rem 1.2rem;
        margin: 0 auto;
    }

    /* Animación del buscador */
    .search-input-group .form-control {
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {

        from {

            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }

    }


    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

/* ===================================
   5. Botones
   =================================== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-light);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   6. Cards de Maquinaria
   =================================== */
.card-maquinaria {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    background: white;
    height: 100%;
}

.card-maquinaria:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-maquinaria .card-img-top {
    height: 250px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card-maquinaria:hover .card-img-top {
    transform: scale(1.1);
}



.card-maquinaria .card-body {
    padding: 1.5rem;
}

.card-maquinaria .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}


.main-image-container img{
    transition: transform 0.5s ease;
}
.main-image-container img:hover{
    transform: scale(1.1);
}

.badge-estado {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

/* ===================================
   7. Categorías
   =================================== */
.categoria-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.categoria-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
}

.categoria-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.categoria-card:hover i {
    color: white;
    transform: scale(1.1);
}

.categoria-card img {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.categoria-card:hover img {
    color: white;
    transform: scale(1.1);
}


.categoria-card h5 {
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.categoria-card:hover h5 {
    color: white;
}

/* ===================================
   8. Hero Section
   =================================== */
/*.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 150px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 50%, 0 100%);
}

.hero-section h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section .lead {
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}*/


.hero-section {
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

.heroSwiper {
    width: 100%;
    height: 70vh;
    min-height: 400px;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,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>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.min-vh-70 {
    min-height: 70vh;
}

.hero-image {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Swiper Navigation */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper Pagination */
.heroSwiper .swiper-pagination {
    bottom: 80px !important;
}

.heroSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    background: white;
}

/* Progress Bar */
.swiper-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.swiper-progress-bar {
    height: 100%;
    background: white;
    width: 0;
    transition: width 0.1s linear;
}

/* Badges */
.hero-slide .badge {
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeInDown 0.8s ease-out;
}

/* Responsive */
@media (max-width: 991px) {
    .heroSwiper {
        height: auto;
        min-height: 500px;
    }
    
    .hero-slide {
        padding: 60px 0;
    }
    
    .min-vh-70 {
        min-height: auto;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        max-width: 80%;
        margin: 2rem auto;
        display: block;
    }
    
    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev {
        display: none;
    }
    
    .heroSwiper .swiper-pagination {
        bottom: 40px !important;
    }
}

@media (max-width: 576px) {
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .hero-slide .lead {
        font-size: 1rem;
    }
    
    .hero-slide .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}



/* ===================================
   9. Buscador
   =================================== */
.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-box .form-control {
    border-radius: 50px;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.15);
}

.search-box .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

/* ===================================
   10. Galería de Imágenes
   =================================== */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.thumbnail-img {
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
    border-radius: var(--radius-md);
    border: 3px solid transparent;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ===================================
   11. Sección de Precios
   =================================== */
.price-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

/* ===================================
   12. Tabs
   =================================== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 1rem 1.5rem;
    position: relative;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* ===================================
   13. Modal Personalizado
   =================================== */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-header .modal-title i {
    margin-right: 0.5rem;
}

/* ===================================
   14. Formularios
   =================================== */
.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.15);
}

/* ===================================
   15. Badges
   =================================== */
.badge {
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
}

/* ===================================
   16. Footer
   =================================== */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

footer .fab,
footer .fas {
    margin-right: 0.5rem;
}

/* ===================================
   17. Utilidades
   =================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-4 {
    border-radius: var(--radius-xl) !important;
}

/* ===================================
   18. Animaciones
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* ===================================
   19. Loading State
   =================================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================================
   20. Responsive
   =================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .hero-section {
        padding: 60px 0 100px;
    }
    
    .card-maquinaria .card-img-top {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
    }
    
    .categoria-card {
        padding: 1.5rem;
    }
    
    .categoria-card i {
        font-size: 2.5rem;
    }
}

/* ===================================
   21. Print Styles
   =================================== */
@media print {
    .navbar,
    .btn,
    footer,
    .badge-estado {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}







.tooltip {
    font-family: 'Futura' !important;
}



.bi-whatsapp::before {
   line-height: 60px;

 }

.whatsapp-float {
    
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success-color);
    color: #fff;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform .3s ease, box-shadow .3s ease;
}


.whatsapp-float:hover {

    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* ===== BOTÓN DE IR ARRIBA ===== */
.btn-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    border-radius: 50%;
    color: #fff;
    border: none;
    display: none; /* oculto hasta que se haga scroll */
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform .3s ease;
}
.btn-top:hover {
    transform: scale(1.1);
}