/* Variables Globales con la Paleta de Colores Corporativa */
:root {
    --primary: #005187;
    /* Azul oscuro profundo */
    --primary-hover: #4d82bc;
    /* Azul medio acero */
    --secondary: #4d82bc;
    /* Azul medio acero */
    --secondary-hover: #005187;
    --accent: #84b6f4;
    /* Azul claro vibrante */
    --bg-light: #c4dafa;
    /* Azul pálido suave */

    --bg-primary: #fcffff;
    /* Blanco con matiz cian ultra-suave */
    --bg-secondary: #f3f8fe;
    /* Azul ultra-pálido para fondos secundarios */
    --text-main: #0f172a;
    /* Slate oscuro para textos principales */
    --text-muted: #475569;
    /* Slate medio para textos secundarios */
    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0, 81, 133, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 81, 133, 0.1), 0 2px 4px -2px rgba(0, 81, 133, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 81, 133, 0.1), 0 4px 6px -4px rgba(0, 81, 133, 0.1);
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Ajuste para el Footer */
    --drawer-width: 0px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height, 80px);
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 81, 135, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 81, 135, 0.35);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Secciones de Contenido */
.main-content {
    margin-top: var(--navbar-height, 80px);
}

.section-container {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-section-container {
    margin-bottom: 25px;
}

.bg-light {
    background-color: var(--bg-secondary);
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.bg-light>.features-cards-grid,
.bg-light>.section-header,
.bg-light>.products-grid,
.bg-light>.contact-socials-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Encabezados de Sección */
.section-header {
    margin-bottom: 10px;
}

.section-header-products {
    margin-bottom: 20px;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 0;
    margin-bottom: 10px;
    border-radius: 2px;
}

.section-divider.align-left {
    margin: 0 0 20px 0;
}

.section-description {
    color: var(--text-muted);
    max-width: 600px;
    /* margin: 0 auto; */
    font-size: 0.9rem;
}

/* ==========================================================================
   Componente: Carrusel de Imágenes
   ========================================================================== */
.carousel-section {
    position: relative;
    height: 580px;
    width: 100%;
    overflow: hidden;
    background-color: #0f172a;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.carousel-slide.active .slide-img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.2) 0%,
            rgba(0, 81, 135, 0.45) 50%,
            rgba(15, 23, 42, 0.85) 100%);
    z-index: 2;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 24px;
    z-index: 3;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s ease-out;
    transition-delay: 0.2s;
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 800px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: rgba(252, 255, 255, 0.9);
}

.story-experience-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 81, 135, 0.4);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(8px);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Controles de Navegación */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(252, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(252, 255, 255, 0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control:hover {
    background-color: rgba(252, 255, 255, 0.9);
    color: var(--primary);
    border-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.carousel-control.prev {
    left: 24px;
}

.carousel-control.next {
    right: 24px;
}

/* Indicadores de Puntos (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(252, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(252, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: var(--accent);
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 0 8px var(--accent);
}

/* ==========================================================================
   Sección: Características (3 Cartas como la imagen de referencia)
   ========================================================================== */
.section-header-card {
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0;
    padding-top: 20px;

}

.feature-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 10px;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-info-card:hover .feature-icon-wrapper {
    transform: scale(1.08) rotate(5deg);
}

.feature-icon {
    width: 36px;
    height: 36px;
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.feature-card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.center-divider {
    margin: auto;
    height: 4px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
}

/* ==========================================================================
   Sección: Categorías (Imágenes con texto superpuesto y hover)
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 218, 250, 0.5);
}

/* Carga de la imagen de fondo */
.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Encuadrar la imagen de estantes para que se vea más completo el mueble */
.estantes-card .category-bg {
    background-position: 15% center;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.1) 0%,
            rgba(15, 23, 42, 0.5) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.category-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 16px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-desc {
    font-size: 0.95rem;
    color: rgba(252, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 280px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease,
        transform 0.4s ease,
        height 0.4s ease;
}

.category-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease,
        transform 0.4s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.category-btn:hover {
    background-color: white;
    color: var(--primary);
}

/* Efectos al pasar el ratón (Hover) */
.category-card:hover .category-bg {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.3) 0%,
            rgba(15, 23, 42, 0.75) 100%);
}

.category-card:hover .category-title {
    transform: translateY(-5px);
}

.category-card:hover .category-desc {
    opacity: 1;
    height: 70px;
    /* Ajuste para mostrar texto */
    transform: translateY(0);
    margin-bottom: 8px;
}

.category-card:hover .category-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Catálogo de Productos
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.products-action-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.product-card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.product-image-placeholder {
    background-color: var(--bg-secondary);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 3rem;
    transition: background-color 0.3s ease;
}

.product-card:hover .product-image-placeholder {
    background-color: #e6f0fa;
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 1px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.product-card:hover h3 {
    color: var(--primary);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* Nosotros Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
}

.about-image-side {
    width: 100%;
}

.about-img-placeholder {
    /* background: linear-gradient(135deg, var(--bg-light) 0%, var(--secondary) 100%); */
    background-size: cover;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    width: 500px; 
    box-shadow: var(--shadow-md);
    color: white;
}

.imagennosotros {
    height: 600px;
    width: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.about-text-side {
    display: flex;
    flex-direction: column;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text:last-of-type {
    margin-bottom: 0;
}


/* Contacto: Canales Sociales */
.contact-socials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 10px;
    width: 100%;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 40px 30px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}

.social-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background-color 0.3s ease,
        color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.social-icon {
    width: 32px;
    height: 32px;
}

.social-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 20px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.social-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 8px;
    flex-grow: 1;
}

.social-link-btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 24px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Animaciones de Hover según la marca */
.social-card:hover {
    transform: translateY(-8px);
}

/* WhatsApp Hover */
.whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.12);
}

.whatsapp-card:hover .social-icon-box {
    background-color: #25D366;
    color: white;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-card:hover .social-name {
    color: #25D366;
}

.whatsapp-card:hover .social-link-btn {
    color: #25D366;
    border-color: #25D366;
}

/* Instagram Hover */
.instagram-card:hover {
    border-color: rgba(225, 48, 108, 0.3);
    box-shadow: 0 15px 30px rgba(225, 48, 108, 0.12);
}

.instagram-card:hover .social-icon-box {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 6px 12px rgba(225, 48, 108, 0.2);
}

.instagram-card:hover .social-name {
    color: #d6249f;
}

.instagram-card:hover .social-link-btn {
    color: #d6249f;
    border-color: #d6249f;
}

/* Gmail Hover */
.gmail-card:hover {
    background: linear-gradient(#fcffff, #fcffff) padding-box,
        linear-gradient(135deg, #ea4335 0%, #fbbc05 35%, #34a853 65%, #4285f4 100%) border-box;
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(0, 81, 135, 0.08);
}

.gmail-card:hover .social-icon-box {
    background-color: var(--bg-secondary);
    transform: scale(1.1) translateY(-2px);
    box-shadow: none;
}

.gmail-card:hover .social-icon {
    fill: url(#gmail-gradient);
}

.gmail-card:hover .social-name {
    color: #EA4335;
}

.gmail-card:hover .social-link-btn {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc05 35%, #34a853 65%, #4285f4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-color: #EA4335;
}

/* ==========================================================================
   Adaptación Móvil (Responsividad)
   ========================================================================== */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        height: 480px;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-subtitle {
        font-size: 1.05rem;
    }

    .carousel-control {
        width: 44px;
        height: 44px;
    }

    .carousel-control.prev {
        left: 12px;
    }

    .carousel-control.next {
        right: 12px;
    }

    .features-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-card {
        height: 350px;
    }

    .category-title {
        font-size: 1.85rem;
    }

    .category-desc {
        opacity: 1;
        height: auto;
        overflow: visible;
        transform: translateY(0);
        margin-bottom: 12px;
    }

    .category-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .contact-socials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 420px) {
    .about-img-placeholder {
        height: 400px;
        width: 300px;
    }
}