/**
 * Inflaecuador - Estilos del sitio público
 * Catálogo de productos inflables
 */

/* ========================================
   1. Variables CSS
   ======================================== */
:root {
    --primary: #1a4b8c;
    --primary-dark: #133a6d;
    --secondary: #dc3545;
    --secondary-dark: #bb2d3b;
    --accent: #25d366;
    --accent-dark: #1da851;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

/* ========================================
   2. Estilos generales
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* ========================================
   3. Barra superior
   ======================================== */
.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: var(--white);
}

.top-bar a:hover {
    opacity: 0.8;
}

.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-left: 5px;
    font-size: 0.9rem;
}

.top-bar .social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   4. Header principal
   ======================================== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.main-header .logo img {
    max-height: 60px;
    transition: var(--transition);
}

.main-header.scrolled .logo img {
    max-height: 50px;
}

.main-header .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   5. Navegación
   ======================================== */
.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.75rem 1rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.6rem 1.25rem;
    font-weight: 400;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--light);
    color: var(--primary);
    padding-left: 1.5rem;
}

.dropdown-item i {
    margin-right: 8px;
    color: var(--gray);
}

/* Mega menú para muchas categorías */
.dropdown-mega {
    min-width: 500px;
    padding: 1rem;
}

.dropdown-mega .dropdown-column {
    padding: 0 1rem;
}

.dropdown-mega .dropdown-column h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

/* ========================================
   6. Botón WhatsApp header
   ======================================== */
.btn-whatsapp {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp i {
    font-size: 1.1rem;
}

/* ========================================
   7. Cards de productos/categorías
   ======================================== */
.product-card,
.category-card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.category-card .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-top,
.category-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-img-wrapper,
.category-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.product-card .card-body,
.category-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-card .card-text {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.product-card .badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-card .badge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-card .btn-cotizar {
    width: 100%;
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.product-card .btn-cotizar:hover {
    background: var(--accent-dark);
}

/* Category card específico */
.category-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.category-card .card-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.category-card .product-count {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* ========================================
   8. Slider/Hero
   ======================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

/* ========================================
   9. Sección clientes
   ======================================== */
.clients-section {
    background: var(--light);
    padding: 60px 0;
}

.client-logo {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.client-logo img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   10. Footer
   ======================================== */
.footer {
    background-color: var(--dark);
    color: var(--gray-light);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-logo {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--secondary);
    margin-right: 12px;
    margin-top: 3px;
    font-size: 1rem;
}

.footer-contact a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 0.85rem;
}

/* ========================================
   11. Botón flotante WhatsApp
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================
   12. Páginas internas
   ======================================== */
/* Breadcrumb */
.breadcrumb-section {
    background: var(--light);
    padding: 1.5rem 0;
}

.breadcrumb {
    margin: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--gray);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 500;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Producto detalle */
.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
    border-color: var(--primary);
}

.product-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-info .category-badge {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-info .description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Videos section */
.video-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-card .video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.video-card .video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

/* ========================================
   13. Responsive
   ======================================== */
@media (max-width: 991px) {
    .top-bar {
        display: none !important;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .btn-whatsapp-header {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero-slider .carousel-item {
        height: 400px;
    }

    .hero-slider .carousel-caption h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .dropdown-mega {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-slider .carousel-item {
        height: 300px;
    }

    .hero-slider .carousel-caption {
        padding: 2rem 1rem 1rem;
    }

    .hero-slider .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .hero-slider .carousel-caption p {
        font-size: 0.95rem;
        display: none;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-title {
        margin-top: 1.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .product-card .card-img-top,
    .category-card .card-img-top {
        height: 180px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .product-gallery .main-image img {
        height: 300px;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .product-card .card-img-top,
    .category-card .card-img-top {
        height: 200px;
    }

    .client-logo {
        height: 80px;
    }

    .client-logo img {
        max-height: 50px;
    }
}

/* ========================================
   14. Utilidades adicionales
   ======================================== */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.mb-section {
    margin-bottom: 60px;
}

.py-section {
    padding: 60px 0;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Secciones Home - Servicios
   ======================================== */
.section-servicios {
    background: #fff;
}
.servicio-card {
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
}
.servicio-icon i {
    font-size: 3rem;
    color: #c8a84e;
}
.servicio-titulo {
    color: #212529;
    font-size: 1rem;
}
.servicio-desc {
    font-size: 0.85rem;
}

/* ========================================
   Secciones Home - Envíos
   ======================================== */
.section-envios h2 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* ========================================
   Secciones Home - Cifras
   ======================================== */
.cifra-card {
    transition: all 0.3s ease;
}
.cifra-card:hover {
    transform: translateY(-3px);
}
.cifra-icon i {
    font-size: 2.5rem;
    color: #1a4b8c;
}
.cifra-valor {
    font-size: 2.5rem;
    color: #c8a84e;
}
.cifra-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Secciones Home - Pagos
   ======================================== */
.pago-icon i {
    font-size: 2rem;
    color: #1a4b8c;
}
.pago-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}
.pago-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
