@import url('https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap');

@font-face {
    font-family: 'Tamrin';
    src: url('../fuentes/tamrin/Tamrin.ttf') format('truetype');
    font-style: normal;
}

/* --- Reset Básico y Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    font-family: "AbeeZee", sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #f8f8f8;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

main {
    padding-top: 120px; /* Espacio para el header fijo (barra superior 50px + contenedor principal 70px) */
}

.barrasuperior {
    background: linear-gradient(90deg, rgba(0, 151, 178, 1) 0%, rgba(0, 151, 178, 1) 0%, rgba(126, 217, 87, 1) 100%);
    width: 100%;
    height: 50px;
}

/* --- Contenedor Principal del Header --- */
.contenedorcabecera {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
    position: relative;
}

/* --- Logo en el Header --- */
.contenedorlogo {
    background-color: #00bf63;
    height: 100%;
    width: 150px;
    border-radius: 0 0 35px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
}

.contenedorlogo img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

/* --- Contenedor Derecho del Header (Navegación + Carrito + Toggle) --- */
.contenedor-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 20px;
    padding-right: 20px;
}

/* ========================================================= */
/* ORDEN DE ESCRITORIO: [NAVEGACIÓN] [CARRITO] [HAMBURGUESA (OCULTA)] */
/* Usamos selectores más específicos para asegurar que el 'order' se aplique */
.contenedor-header-right .nav-and-cart-wrapper {
    order: 1; /* Navegación primero */
}
.contenedor-header-right .carrito-link {
    order: 2; /* Carrito segundo */
}
.contenedor-header-right .menu-toggle {
    order: 3; /* Hamburguesa tercero (oculta en escritorio) */
}
/* ========================================================= */


/* --- Menú Toggle (Botón de Hamburguesa) --- */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #00bf63;
    cursor: pointer;
    z-index: 1001;
}

/* --- Wrapper de Navegación (se usará para colapsar en móvil) --- */
.nav-and-cart-wrapper {
    display: flex;
    align-items: center;
}

/* --- Navegación Principal (Menú de Escritorio) --- */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navegacionhead {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.navegacionhead li {
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.navegacionhead li a {
    padding: 10px;
    text-decoration: none;
    font-weight: 800;
    color: black;
    text-transform: uppercase;
    font-family: "ABeeZee", sans-serif;
    display: block;
}

.navegacionhead li a:hover {
    color: #00bf63;
}

.navegacionhead li.liselected {
    border-bottom: 2px solid #00bf63;
}

/* --- Carrito en el Header --- */
.carrito-link {
    display: flex;
    align-items: center;
}

.carritobtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #00bf63;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carritobtn:hover {
    background-color: #01994f;
}

.carritobtn img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

#contador-carrito {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* --- SECCIONES PRINCIPALES DE CONTENIDO (HOME) --- */
.contseccioninicial {
    background-image: url("../imagenes/fondo.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: auto;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.contenedorpagina {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.productoinicial {
    display: flex;
    flex-wrap: wrap;
    margin: 40px auto;
    height: auto;
    border-radius: 10px;
    padding: 20px;
    gap: 30px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contenedordescripcion {
    flex: 1 1 45%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.contenedorimg {
    flex: 1 1 45%;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedorimg img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.nombreproductohome {
    font-family: 'Tamrin', cursive;
    font-size: 48px;
    margin: 0;
}

.contenedorbotonyprecio {
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
}

.botoncarritohome {
    background-color: #00bf63;
    border: 2px solid #00bf63;
    padding: 10px 20px;
    font-family: "AbeeZee", sans-serif;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.botoncarritohome:hover {
    background-color: #01994f;
    border-color: #01994f;
}

.contenedorbotonyprecio p {
    font-family: "AbeeZee", sans-serif;
    font-weight: 700;
    color: #00bf63;
    font-size: 18px;
    margin: 0;
}

.descripcionproductohome {
    font-size: 16px;
    line-height: 1.5;
}

/* --- SWIPER CARRUSEL DE PRODUCTOS HOME --- */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 200px;
    border-radius: 10px;
    border: solid #00bf63 2px;
}

.mySwiper {
    padding: 10px 0 !important;
}

.swiper-button-next, .swiper-button-prev {
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    width: 50px !important;
    height: 50px !important;
    border: solid #00bf63 2px;
    color: black !important;
    font-size: 10px;
}

.swiper-button-next:after, .swiper-button-prev:after {
    content: '';
    font-size: 16px !important;
    font-weight: 600;
}

.swiper-button-next::after {
    content: '▶';
}
.swiper-button-prev::after {
    content: '◀';
}

.swiper-button-next {
    right: 180px !important;
}

.swiper-button-prev {
    left: 180px !important;
}

/* --- ESTILOS DE TIENDA.PHP (MOVIDOS DE tienda.php) --- */
.contproductos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 5% auto;
    max-width: 1200px;
    padding: 0 20px;
}

.producto {
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.producto:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.imgcasa {
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
}

.imgcasa img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: contain;
}

.prodcasa {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #333;
    font-family: 'Tamrin', cursive;
}

.preciocasa {
    display: flex;
    border: 2px solid #00bf63;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin: 10px auto;
}

.precs {
    background-color: #00bf63;
    color: white;
    font-family: "AbeeZee", sans-serif;
    font-weight: 700;
    padding: 10px 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,0.3);
    user-select: none;
}

.precsn {
    color: #00bf63;
    font-family: "AbeeZee", sans-serif;
    font-weight: 700;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    user-select: none;
}

.contcaryver {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #00bf63;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    width: 90%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.contcaryver button, .contcaryver a.ver {
    flex: 1;
    padding: 12px 10px;
    font-family: "AbeeZee", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
    color: white;
    background-color: #00bf63;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    text-decoration: none;
}

.contcaryver button:hover, .contcaryver a.ver:hover {
    background-color: #01994f;
    color: #fff;
}

/* Separador para los botones Al Carrito / Ver */
.separador-botones {
    width: 2px;
    background-color: #ffffff;
    height: 70%;
}

.añadircarrito {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
}

.ver {
    border-radius: 0 8px 8px 0 !important;
}

.contcaryver button:active,
.contcaryver button:focus,
.contcaryver a.ver:active,
.contcaryver a.ver:focus {
    outline: none;
    background-color: #017a3a;
}

/* --- ESTILOS DE NOSOTROS.PHP (MOVIDOS DE nosotros.php) --- */
.h1NC {
    margin: 30px auto;
    padding: 20px 20px;
    font-size: 40px;
    text-align: center;
    max-width: 1000px;
}

.textoyfotonosotros {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.textonosotros {
    flex: 1 1 60%;
    min-width: 280px;
}

.textonosotros p {
    margin: 15px 0;
    font-size: 17px;
    line-height: 1.6;
    text-align: justify;
    color: #333;
}

.pfrase {
    text-align: center;
    font-weight: bold;
    font-style: italic;
    margin-top: 30px;
    font-size: 19px;
    color: #00bf63;
}

.imagenm {
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 120px;
    align-self: flex-start;
    margin: 0 auto;
}

/* --- ESTILOS DE CONTACTANOS.PHP (MOVIDOS DE contactanos.php) --- */
.contenedorcontact {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.parrafosimgcontact {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.parrafoscont {
    flex: 1 1 50%;
    min-width: 280px;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

.parrafoscont p {
    margin: 15px 0;
}

.parrafoscont a {
    margin: 10px 0;
    font-size: 17px;
    display: block;
    color: #00bf63;
    text-decoration: none;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.parrafoscont a:hover {
    color: #01994f;
}

.parrafosimgcontact img {
    flex-shrink: 0;
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 120px;
    align-self: flex-start;
    margin-left: auto;
}

.contenedorescribenos {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.contenedorimputyimg {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Formulario dentro de contactanos.php */
.form-container {
    width: 100%;
    max-width: 500px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.form-field {
    margin-bottom: 15px;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.form-container button {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    margin-top: 10px;
}

.form-container button:hover {
    background-color: #1DA851;
}


.contenedorimagencontacto {
    flex-shrink: 0;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 120px;
    gap: 15px;
    text-align: center;
    margin-left: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    background-color: #fff;
    padding: 15px;
}

.contenedorimagencontacto img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.texto-arriba-img {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 8px;
}


/* --- ESTILOS DE CARRITO.PHP (MOVIDOS DE carrito.php) --- */
.contenedorcarrito {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.contenedorproductocar {
    flex: 1 1 65%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.productoventa {
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.contimgcar {
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
}

.contimgcar img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: contain;
}

.productoventa h1 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: center;
    font-family: Tamrin, cursive;
}

.contpreciocar {
    display: flex;
    border: 2px solid #00bf63;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin: 10px auto;
}

.contpreciocar .precs, .contpreciocar .precsn {
    padding: 10px 20px;
    font-size: 14px;
    font-family: "AbeeZee", sans-serif;
    font-weight: 700;
    user-select: none;
}
.contpreciocar .precs {
    background-color: #00bf63;
    color: white;
    border-right: 1px solid rgba(255,255,255,0.3);
}
.contpreciocar .precsn {
    color: #00bf63;
}


.contbuttoncar {
    display: flex;
    justify-content: center;
    width: 100%;
}

.productoventa .quitar-del-carrito {
    border: 2px solid #dc3545;
}

/* =======================================================
   RESPONSIVE (MEDIA QUERIES) - AJUSTES PARA MÓVILES
   ======================================================= */

/* --- Cabecera Móvil (ajustes para pantallas <= 768px) --- */
@media (max-width: 768px) {
    /* Ajuste el padding-top de main para la altura del header móvil */
    main {
        padding-top: 100px; /* Barra superior (40px) + Contenedor cabecera (60px) = 100px */
    }

    .barrasuperior {
        height: 40px; /* Barra superior más pequeña en móvil */
    }

    .contenedorcabecera {
        height: 60px; /* Header principal más pequeño en móvil */
        padding: 0 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .contenedorlogo {
        height: 100%;
        width: 120px;
        left: 15px;
        border-radius: 0 0 25px 25px;
        z-index: 101;
    }

    .contenedorlogo img {
        height: 70%;
    }

    .contenedor-header-right {
        order: unset;
        flex: 1; /* Ocupa todo el espacio restante a la derecha del logo */
        width: auto;
        padding-right: 0;
        position: static;
        margin-top: 0;
        justify-content: flex-end; /* ALINEA LOS ELEMENTOS A LA DERECHA */
        align-items: center;
        gap: 15px;
        z-index: 102;
    }

    /* Menú Toggle (Botón de Hamburguesa) - Visible en móvil */
    .menu-toggle {
        display: block; /* HACER VISIBLE */
        order: 1; /* COLOCA PRIMERO (a la izquierda del carrito) */
        font-size: 24px;
        padding: 5px 8px;
        color: #00bf63; /* COLOR VERDE DEL BOTÓN */
        cursor: pointer;
        z-index: 9999; /* Z-INDEX MÁS ALTO para que esté por encima de todo */
        position: relative; /* Para que el z-index funcione */
    }

    /* ======================================================= */
    /* ESTILOS DEL MENÚ DESPLEGABLE MÁS PEQUEÑO Y ESTÉTICO */
    /* ======================================================= */
    .nav-and-cart-wrapper {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        background-color: #fff;
        position: fixed;
        top: 100px; /* Debajo de la barra superior (40px) + contenedor (60px) = 100px */
        /* Ajustes de posición y tamaño para que sea más compacto */
        left: unset; /* Deshacer left:0 */
        right: 0; /* Alinearlo a la derecha */
        width: 75%; /* Más estrecho, ajusta este valor (%) */
        max-width: 300px; /* Ancho máximo para pantallas más grandes */
        height: calc(100% - 100px); /* Ocupa el resto de la altura de la pantalla */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2); /* Sombra hacia la izquierda */
        padding: 20px 0;
        z-index: 998;
        text-align: center;
        /* Transformación para deslizarse desde la DERECHA */
        transform: translateX(100%); /* Inicialmente fuera de la vista hacia la derecha */
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        opacity: 0;
        justify-content: flex-start;
        overflow-y: auto;
        border-radius: 8px 0 0 8px; /* Bordes redondeados solo a la izquierda */
    }

    /* Clase 'show' añadida por JavaScript para mostrar el menú */
    .nav-and-cart-wrapper.show {
        display: flex;
        transform: translateX(0); /* Desliza hacia la izquierda para aparecer */
        opacity: 1;
    }

    /* ======================================================= */
    /* ESTILOS DEL OVERLAY (FONDO SEMITRANSPARENTE) */
    /* ======================================================= */
    .mobile-menu-overlay {
        display: none; /* Oculto por defecto */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Color oscuro con 50% de transparencia */
        z-index: 997; /* Por debajo del menú (998) pero por encima del contenido principal */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.show {
        display: block; /* Muestra el overlay */
        opacity: 1;
    }


    /* Navegación dentro del menú móvil */
    .nav-container {
        width: 100%;
        margin-bottom: 0;
    }

    .navegacionhead {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .navegacionhead li {
        width: 100%;
        padding: 0;
        border-bottom: none;
        text-align: center;
    }

    .navegacionhead li a {
        padding: 15px 0;
        display: block;
        font-size: 16px;
        color: #333;
    }

    .navegacionhead li.liselected a {
        background-color: #f0f0f0;
        color: #00bf63;
    }
    
    .navegacionhead li a:hover {
        background-color: #f5f5f5;
        color: #00bf63;
    }

    /* Carrito en el Header - Ahora fuera del nav-and-cart-wrapper */
    .carrito-link {
        order: 2; /* COLOCA SEGUNDO (a la derecha del botón de hamburguesa) */
        display: flex; /* HACER VISIBLE */
        justify-content: center;
        align-items: center;
        z-index: 9999; /* Z-INDEX MÁS ALTO para que esté por encima de todo */
        position: relative; /* Para que el z-index funcione */
    }
    .carritobtn {
        width: 50px;
        height: 50px;
    }
    .carritobtn img {
        width: 65%;
        height: 65%;
    }
    #contador-carrito {
        font-size: 10px;
        padding: 1px 4px;
        top: 3px;
        right: 3px;
    }

    /* --- Ajustes Responsive para SECCIONES DE CONTENIDO --- */

    /* Home Page */
    .productoinicial {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        margin: 20px auto;
        gap: 20px;
    }
    .contenedordescripcion, .contenedorimg {
        min-width: unset;
        flex: 1 1 100%;
    }
    .nombreproductohome {
        font-size: 36px;
    }
    .contenedorbotonyprecio {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .contenedorbotonyprecio p {
        font-size: 16px;
    }
    .botoncarritohome {
        width: 100%;
        font-size: 15px;
        padding: 12px;
    }

    /* Tienda Page (ya tenías un responsive, aquí lo aseguramos) */
    .contproductos {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 20px;
        margin: 20px auto;
    }
    .producto {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Nosotros Page */
    .h1NC {
        font-size: 32px;
        margin: 20px auto;
    }
    .textoyfotonosotros {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    .textonosotros, .imagenm {
        min-width: unset;
        flex: 1 1 100%;
        width: 100%;
        position: static;
        margin: 0 auto;
    }
    .textonosotros p {
        font-size: 16px;
    }
    .pfrase {
        font-size: 17px;
    }

    /* Contactos Page */
    .parrafosimgcontact {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    .parrafoscont, .parrafosimgcontact img {
        min-width: unset;
        flex: 1 1 100%;
        width: 100%;
        position: static;
        margin-left: 0;
        margin: 0 auto;
    }
    .parrafoscont p, .parrafoscont a {
        font-size: 16px;
    }
    .contenedorescribenos {
        margin: 20px auto;
        padding: 15px;
        padding-top: 25px;
    }
    .contenedorimputyimg {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }
    .contenedorimagencontacto {
        width: 100%;
        position: static;
        margin-left: 0;
        margin: 0 auto;
    }

    /* Carrito Page */
    .contenedorcarrito {
        flex-direction: column;
        padding: 15px;
        margin: 20px auto;
    }
    .contenedorproductocar {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .productoventa {
        max-width: 350px;
        margin: 0 auto;
    }
    .contenedorproductocar, .resumen-compra-car {
        flex: 1 1 100%;
    }
}

/* Ajustes adicionales para pantallas aún más pequeñas (ej. smartphones muy pequeños) */
@media (max-width: 480px) {
    /* Cabecera */
    main {
        padding-top: 90px; /* Barra superior (35px) + Contenedor cabecera (55px) = 90px */
    }
    .barrasuperior {
        height: 35px;
    }
    .contenedorcabecera {
        height: 55px;
    }
    .contenedorlogo {
        width: 110px;
        left: 10px;
    }
    .contenedorlogo img {
        height: 65%;
    }
    .menu-toggle {
        font-size: 22px;
    }
    .nav-and-cart-wrapper {
        top: 90px;
        height: calc(100% - 90px);
    }
    .carritobtn {
        width: 45px;
        height: 45px;
    }
    .carritobtn img {
        width: 60%;
        height: 60%;
    }
    #contador-carrito {
        font-size: 9px;
        padding: 0 3px;
        min-width: 15px;
        top: 2px;
        right: 2px;
    }

    /* Home Page */
    .nombreproductohome {
        font-size: 28px;
    }
    .descripcionproductohome {
        font-size: 15px;
    }

    /* Nosotros Page */
    .h1NC {
        font-size: 28px;
    }
    .textonosotros p {
        font-size: 15px;
    }
    .pfrase {
        font-size: 16px;
    }

    /* Contactos Page */
    .form-container label, .form-container input, .form-container textarea, .form-container button {
        font-size: 14px;
        padding: 10px;
    }
    .form-container button {
        font-size: 15px;
    }
    .texto-arriba-img {
        font-size: 14px;
    }

    /* Carrito Page */
    .productoventa h1 {
        font-size: 16px;
    }
    .contpreciocar .precs, .contpreciocar .precsn {
        font-size: 13px;
        padding: 8px 15px;
    }
}

