/* Base styles with improved overflow control */
html, body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

main {
    padding-top: 80px; /* Ajuste para la navbar fija */
}

.navbar {
    background-color: #000000; /* Fondo negro sólido */
    color: #fff; /* Texto blanco */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Eliminar todo el padding */
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    height: 80px;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px; /* Espacio a los lados */
    box-sizing: border-box;
}

.navbar-brand {
    margin-left: -20px; /* Movemos el logo un poco a la izquierda */
}

.logo-image {
    height: 180px; /* Aumentamos la altura del logo */
    width: auto;
    display: block;
}

.navbar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.navbar-menu a,
.navbar-icons a {
    color: #fff; /* --- TEXTO Y ICONOS EN BLANCO --- */
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-menu a {
    font-size: 1em;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.navbar-menu a:hover {
    color: #ccc; /* Un gris claro para el hover */
    border-bottom-color: #ccc;
}

.navbar-menu.active a {
    color: #000; /* Cambia el color del texto a negro */
}

.navbar-icons a {
    font-size: 1.2em;
}

.navbar-icons a:hover {
    color: #ccc;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-icons .hamburger-icon {
    display: none;
    font-size: 1.5em;
}

/* --- Barra de Búsqueda --- */
.search-bar-container {
    position: fixed; /* Cambiado a fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Misma altura que la navbar */
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    box-sizing: border-box;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1100; /* Por encima de la navbar */
}

.search-bar-container.active {
    transform: translateY(0);
}

#search-input {
    width: 100%;
    max-width: 600px;
    padding: 10px 15px;
    font-size: 1.2em;
    border: 1px solid #555;
    background-color: #222;
    color: #fff;
    border-radius: 5px;
    outline: none;
}

#close-search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    margin-left: 20px;
    cursor: pointer;
}

section {
    padding: 80px 40px;
}

/* --- Estilos para Grupos de Categorías --- */
.category-group {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2em;
    font-weight: 500;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.product-card.hide {
    display: none;
}

/* --- HERO/CARRUSEL MEJORADO --- */
.carousel {
    position: relative;
    width: 100%;
    height: 70vh; /* Reducido de 100vh */
    overflow: hidden;
    margin: 0;
    perspective: 1000px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateZ(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform, opacity;
    border-radius: 0 0 15px 15px;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateZ(0);
    z-index: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    border-radius: 0 0 15px 15px;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 500px;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) 0.2s;
}

.carousel-slide.active .carousel-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-title {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: #fff;
}

.carousel-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 300;
}

/* Controles más discretos */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #fff;
    transform: scale(1.1);
}

.carousel-indicator:hover {
    background: #fff;
}

/* Flechas más pequeñas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-btn:hover {
    background: #ff6600;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* --- FLECHA DE DESPLAZAMIENTO MEJORADA --- */
.carousel-arrow-down {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-size: 2em;
    color: #fff;
    z-index: 10;
    animation: bounceDown 2s infinite;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-arrow-down:hover {
    background: #ff6600;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .carousel {
        height: 60vh;
    }
    
    .carousel-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 15px;
    }
    
    .carousel-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 50vh;
    }
    
    .carousel-title {
        font-size: 1.5em;
    }
    
    .carousel-subtitle {
        font-size: 0.9em;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 45vh;
    }
    
    .carousel-title {
        font-size: 1.3em;
    }
    
    .carousel-subtitle {
        display: none; /* Ocultar subtítulo en móviles */
    }
    
    .carousel-controls {
        bottom: 10px;
    }
}

/* --- SECCIÓN DE PRODUCTOS --- */
.products-section {
    padding: 60px 20px;
    background-color: #fff;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    position: relative;
    height: 450px;
    background-color: #ff0000; /* Color de fondo rojo */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card[data-category="sanitarios"] {
    background-color: #fff;
}

.product-card.product-card-link,
a.product-card {
    text-decoration: none;
    color: inherit;
}

.product-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.card-content p {
    font-size: 0.9em;
    font-weight: 500;
    margin: 0;
}

.card-content h3 {
    margin: 5px 0 20px 0;
    font-size: 2.2em;
    font-weight: 600;
}

.card-content h4 {
    color: #fff; /* Asegura que el texto sea blanco */
    font-size: 1.8em; /* Restaura el tamaño de fuente */
    font-weight: 600;
    margin: 0;
}

.arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    transition: background-color 0.3s, color 0.3s;
}

.arrow-btn:hover {
    background-color: #fff;
    color: #000;
}

/* --- RESPONSIVE PARA PRODUCTOS --- */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SECCIÓN DE PRODUCTOS DESTACADOS --- */
.featured-products-section {
    padding: 60px 20px;
    background-color: #fff;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.featured-product-card {
    background-color: #ff0000; /* Color de fondo rojo */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px; /* Misma altura que las otras tarjetas */
}

.featured-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.featured-product-image {
    display: none; /* Ocultar la imagen */
}

.featured-product-info {
    padding: 0; /* Resetear padding */
    color: #fff; /* Color de texto blanco */
}

.featured-product-info h4 {
    font-size: 1.8em; /* Ajustar tamaño de fuente */
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #fff;
}

.featured-product-info p {
    font-size: 1em; /* Ajustar tamaño de fuente */
    color: #fff;
    margin: 0;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #f7f7f7;
    padding: 60px 20px; /* Aumentado el padding */
    border-top: 1px solid #e0e0e0;
    color: #666; /* Color de texto más suave */
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Apilar verticalmente */
    align-items: center;    /* Centrar horizontalmente */
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Restaurado el gap */
    text-align: left; /* Alinear texto de columnas a la izquierda */
    margin-bottom: 40px; /* Espacio antes de los iconos sociales */
}

.footer-column {
    padding: 0 20px;
}

.footer-column:first-child {
    border-right: 1px solid #e0e0e0;
}

.footer-column h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 25px;
    font-weight: bold;
}

.footer-column p {
    margin: 0 0 12px 0;
    line-height: 1.7;
}

.footer-column p i {
    margin-right: 8px;
}

.parking-info {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.email-link:hover {
    color: #4267B2;
}

.footer-socials {
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-socials a {
    font-size: 1.8em;
    margin: 0;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-socials a:hover {
    transform: scale(1.15);
}

.footer-socials .fa-instagram {
    color: #C13584;
}

.footer-socials .fa-facebook-f {
    color: #4267B2;
}

.parking-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: #3a487a;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-column {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        padding: 0 20px 30px;
    }
    
    .footer-column:first-child {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Estilos para tarjetas */
.card,
.feature-card,
.product-card {
    position: relative;
    overflow: hidden;
}

/* Estilos para botones */
.btn {
    position: relative;
    overflow: hidden;
}

/* Transiciones básicas */
a, button, .btn, .nav-link {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Efecto de texto morfo */
h1 .char,
h2 .char,
h3 .char {
    display: inline-block;
    white-space: nowrap;
    will-change: transform, opacity;
}

/* Elementos con scroll reveal */
.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Estilos para tarjetas */
.card,
.feature-card,
.product-card {
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.3s ease;
}

.card:hover,
.feature-card:hover,
.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Efecto de inclinación 3D */
[data-tilt] {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

/* Efecto de gradiente animado */
.gradient-text {
    background: linear-gradient(90deg, #3a487a, #4ecdc4, #ff6b6b, #3a487a);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientMove 8s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Cursor personalizado deshabilitado */

/* Efecto de brillo en botones */
.btn-shine {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    z-index: -1;
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-shine:hover::after {
    left: 100%;
    opacity: 1;
}

/* Efecto de onda en botones */
.btn-wave {
    position: relative;
    overflow: hidden;
}

.btn-wave:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-wave:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

/* Efecto de carga */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3a487a;
    animation: spin 1s ease-in-out infinite;
    will-change: transform;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Efecto de máquina de escribir */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #3a487a;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #3a487a; }
}

/* Asegurar que el footer no tenga animaciones */
footer,
footer * {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    will-change: auto !important;
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
    .navbar-menu ul {
        gap: 15px;
    }
    
    .navbar-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .logo-image {
        height: 150px;
    }
    
    .navbar-menu ul {
        gap: 12px;
    }
    
    .navbar-menu a {
        font-size: 0.9em;
    }
}

/* Tablet Styles */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 20px;
    }
    
    .logo-image {
        height: 150px;
    }
}

@media (max-width: 992px) {
    .logo-image {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 120px;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .navbar-icons .hamburger-icon {
        display: block;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: #000;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: 0.3s;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .navbar-menu li {
        margin: 10px 0;
    }
    
    .navbar-menu a {
        padding: 10px 0;
        display: block;
        width: 100%;
    }
    
    .navbar-icons .hamburger-icon {
        display: block;
        cursor: pointer;
    }
    
    .search-bar-container {
        width: 100%;
        left: 0;
        padding: 0 15px;
    }
}

/* Mobile Styles */
@media (max-width: 576px) {
    .navbar {
        height: 70px;
    }
    
    .logo-image {
        height: 110px;
    }
    
    main {
        padding-top: 70px;
    }
    
    .carousel-title {
        font-size: 1.8em;
    }
    
    .carousel-subtitle {
        font-size: 0.9em;
        padding: 0 15px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    
    .navbar-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

/* Small Mobile Devices */
@media (max-width: 400px) {
    .logo-image {
        height: 90px;
    }
    
    .carousel-title {
        font-size: 1.5em;
    }
    
    .carousel-subtitle {
        font-size: 0.8em;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.8em;
    }
}

    .products-grid,
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }


@media (max-width: 992px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 80px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar-icons .hamburger-icon {
        display: block;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .products-grid,
    .featured-products-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }

    .carousel-title {
        font-size: 1.8em;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .carousel-content {
        padding: 25px 15px;
        text-align: center;
    }
    
    .carousel-subtitle {
        max-width: 90%;
        margin: 0 auto 20px;
    }
}

/* Ensure all containers don't overflow on mobile */
.container, .section, .row, .col, [class*='col-'] {
    max-width: 100%;
    overflow: hidden;
}

/* Prevent images from overflowing their containers */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all content stays within viewport */
body, html {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
        margin: 0 auto;
        max-width: 100%;
    }

    .navbar {
        height: 65px;
        padding: 0;
    }

    .navbar-container {
        padding: 0 10px;
    }

    .logo-image {
        height: 110px;
        margin-left: -5px;
    }

    .navbar-icons {
        gap: 10px;
    }

    .navbar-icons a {
        font-size: 1.1em;
    }

    .carousel-title {
        font-size: 1.6em;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .carousel-subtitle {
        font-size: 0.85em;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .product-card {
        height: 280px;
        margin: 0 5px 15px;
    }

    .footer-container {
        padding: 25px 10px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-socials {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 15px;
        font-size: 22px;
    }
    
    .section-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 0.9em;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .btn-primary {
        padding: 8px 18px;
        font-size: 0.85em;
    }
    
    /* New breakpoint for very small devices */
    @media (max-width: 400px) {
        .navbar {
            height: 60px;
        }
        
        .logo-image {
            height: 100px;
        }
        
        .carousel-title {
            font-size: 1.4em;
        }
        
        .carousel-subtitle {
            font-size: 0.8em;
        }
        
        .product-card {
            height: 250px;
        }
        
        .whatsapp-float {
            width: 40px;
            height: 40px;
            font-size: 20px;
        }
        
        .section-title {
            font-size: 1.4em;
        }
    }
}