@font-face {
    font-family: 'Fredoka Expanded';
    src: url('../../../new-design/Fredoka-webfonts/FredokaExpanded-Medium.woff2') format('woff2'),
        url('../../../new-design/Fredoka-webfonts/FredokaExpanded-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka Expanded';
    src: url('../../../new-design/Fredoka-webfonts/FredokaExpanded-Regular.woff2') format('woff2'),
        url('../../../new-design/Fredoka-webfonts/FredokaExpanded-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka';
    src: url('../../../new-design/Fredoka-webfonts/Fredoka-Regular.woff2') format('woff2'),
        url('../../../new-design/Fredoka-webfonts/Fredoka-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka';
    src: url('../../../new-design/Fredoka-webfonts/Fredoka-Light.woff2') format('woff2'),
        url('../../../new-design/Fredoka-webfonts/Fredoka-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

:root {
    --bg-body: #ffffff;
    --bg-gray: #f5f5f5;
    --text-color-body: #000000;
    --bg-footer: #3f434a;
    --text-color-footer: #ffffff;
    --bg-buscador-footer: #53565c;
    --bg-menu-header: rgba(184, 174, 157, 0.6);
    --bs-nav-link-font-size: 0.6rem;
}

body {
    background-color: var(--bg-body);
    color: var(--text-color-body);
    font-family: 'Fredoka', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography styles based on rules */
.font-menu-header,
.font-buscador-header,
.font-buscador-footer {
    font-family: 'Fredoka Expanded', sans-serif;
    font-weight: 500;
    font-size: 0.6rem;
    /* Scaled up from 6pt for web readability */
    letter-spacing: 1px;
}

.font-title {
    font-family: 'Fredoka Expanded', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    /* Scaled up from 16pt */
    letter-spacing: 2px;
}

.font-text-long {
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

.font-footer-text,
.font-footer-link {
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
}

.font-copyright {
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
}

.font-product-slider {
    font-family: 'Fredoka Expanded', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 1.5px;
}

/* Headings with stroke as per rules */
.title-stroke {
    -webkit-text-stroke: 1px #000000;
    /* The rule says Stroke 3px #000000 rounded 40px, which might mean a box border instead of text stroke. 
       "bordes títulos: Stroke 3px #000000 rounded 40px" implies a border around the element, 
       like for the "¿QUIÉNES SOMOS?" button/title */
    border: 2px solid #000000;
    border-radius: 40px;
    padding: 10px 40px;
    display: inline-block;
    text-align: center;
}

/* Navbar / Glassmorphism */
.navbar-glass {
    background: var(--bg-menu-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 30px;
}

.navbar-nav .nav-link {
    color: #ffffff;
    /* White text looks better on the transparent bar based on design */
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover {
    color: #f1f1f1;
}

/* Search Dropdown */
.search-container {
    position: relative;
    width: 300px;
}

.search-container input {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 20px;
    color: #fff;
    padding-left: 15px;
    padding-right: 40px;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container .btn-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide img.bg-image,
.hero-slide video.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Center Logo in Hero */
.hero-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    position: relative;
}

.hero-content .huge-logo {
    width: 70%;
    max-width: 800px;
    opacity: 0;
    /* for GSAP */
}

.hero-content .product-overlay {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 45vh;
}

.hero-products,
.btn-down-arrow {
    opacity: 0;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

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

/* Swiper Slider */
.product-swiper {
    width: 100%;
    padding: 50px 0;
}

.product-swiper .swiper-slide {
    text-align: center;
    transition: transform 0.3s;
}

.product-swiper .swiper-slide img {
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Product Card Hover CTA */
.product-card .product-img-container {
    overflow: hidden;
    border-radius: 10px;
}

.product-card .product-overlay-cta {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}

.product-card:hover .product-overlay-cta {
    opacity: 1;
}

.product-card:hover img.product-img {
    filter: brightness(0.6);
    transform: scale(1.05);
}

/* Test Animation for Product Card */
.product-card-test .product-img-container-test {
    overflow: hidden;
    border-radius: 10px;
    background-color: transparent !important;
    position: relative;
}

/* Pseudo-element for the fading background image */
.product-card-test .product-img-container-test::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../productos/producto-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
}

.product-card-test:hover .product-img-container-test::before {
    opacity: 1; /* Fade in background image on hover */
}

.product-card-test .product-overlay-cta-test {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}

.product-card-test:hover .product-overlay-cta-test {
    opacity: 1;
}

.product-card-test img.product-img-test, 
.product-card-test video.product-img-test {
    transition: transform 0.3s ease-in-out;
}

.product-card-test:hover img.product-img-test,
.product-card-test:hover video.product-img-test {
    transform: scale(1.05); /* Scales up without changing brightness */
}

/* Dropdown Menu Custom */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #f5f5f5;
    padding: 20px;
    color: #000;
    display: none;
    min-width: 300px;
    border-radius: 0 0 10px 10px;
}

.nav-item.dropdown:hover .mega-menu {
    display: block;
}

/* Footer layout */
.footer {
    background-color: var(--bg-footer);
    color: var(--text-color-footer);
    padding: 60px 0 20px 0;
}

.footer a {
    color: var(--text-color-footer);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.newsletter-box {
    background: var(--bg-gray);
    padding: 60px 0;
    margin-bottom: -1px;
    /* seamless with footer */
}

.form-control {
    font-size: 0.8rem;
    padding: 10px;
}

.search-input::placeholder {
    color: #fff;
    /* Change to your desired color value (name, hex, RGB, etc.) */
    opacity: 1;
    /* Fixes Firefox's default lower opacity */
}

/* Nuevas clases tipográficas para secciones */
.font-contacto-label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
}

.font-contacto-text {
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
    font-size: 1.0rem;
}

.font-producto-card-name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
}

.font-producto-card-marca {
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
}

.font-producto-detalle-light8 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
}

.font-producto-detalle-title {
    font-family: 'Fredoka Expanded', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
}

.font-producto-detalle-desc-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

.font-producto-detalle-desc {
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
}

.font-encuentranos-title {
    font-family: 'Fredoka Expanded', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
}

.font-encuentranos-subtitle {
    font-family: 'Fredoka Expanded', sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
}

.font-encuentranos-sucursal {
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
}

.font-encuentranos-dir {
    font-family: 'Fredoka', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.accordion-skinnea .accordion-button::after {
    background-image: url(../producto-detalle/icn-plus.png) !important;
    /* fontawesome circle-plus */
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.2s;
}

.accordion-skinnea .accordion-button:not(.collapsed)::after {
    background-image: url(../producto-detalle/icn-plus.png) !important;
    /* fontawesome circle-minus */
    color: #343a40;
    transform: rotate(0deg);
}

.btn-ver-detalles {
    opacity: 0;
    visibility: hidden;
}

.group-hover:hover .btn-ver-detalles {
    opacity: 1 !important;
    visibility: visible;
}