/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --box-bg-color: #f5f5f5;
    --box-text-color: #000;
    --box-radius: 0px;
}

/* Tipografía y estilos globales */
body {
    font-family: Roboto, sans-serif;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 1;
    letter-spacing: .0666666667em;
    line-height: 1.6666666667em;
    background-color: #fbfaf9;
    color: #272727;
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1000;
    padding: 0 30px 0 30px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #afaeae;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
nav .logo {
    font-weight: 400;
    font-size: 2.5rem;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
}
nav a {
    text-decoration: none;
    color: #272727;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    margin-top: 50px;
    margin-bottom: 20px;
}
.hero-home {
    min-height: 65vh;
    background: url("assets/img/banner.jpg") no-repeat center bottom/cover;
}
.hero-jabones {
    min-height: 40vh;
    background: url("assets/img/jabones/jabones-header.jpg") no-repeat center 20%/cover;
}

.text-box {
    font-family: Roboto, sans-serif;
    text-align: center;
    max-width: 90%;
    margin: 20px auto;
    background-color: var(--box-bg-color);
    color: var(--box-text-color);
    padding: 10px 10px;
    box-sizing: border-box;
    border-radius: var(--box-radius);
}
.text-box h2 {
    font-size: 1.5rem;
    font-weight: 350;
    letter-spacing: 0.066666667em;
    line-height: 1.666666667em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.text-box h3 {
    font-size: 1.25rem;
    font-weight: 350;
    letter-spacing: 0.066666667em;
    line-height: 1.666666667em;
    margin-bottom: 3px;
    text-transform: uppercase;
}
.text-box p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.066666667em;
    line-height: 1.666666667em;
    margin-left: 3px;
    margin-right: 3px;
}

hr {
    width: 90%;
    margin: 0 auto;
    border: 0;
    height: 1px;
    background-color: #333;
}

/* Mosaico de Categorías */
.container {
    margin: 1rem auto;
    max-width: 1600px;
    width: 90%;
}
.tile-products {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}
.grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.table {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    grid-auto-rows: 290px;
}
.jabon-row {
    margin-bottom: 1rem;
}
.row-title {
    margin-bottom: 0.5rem;
    background-color: #ececec;
    font-family: Roboto, sans-serif;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .0666666667em;
    line-height: 1.6666666667em;
    text-align: center;
    text-transform: uppercase;
    border-radius: 10px;
}
.tile-element {
    position: relative;
    overflow: hidden;
}
.tile-element.product-description {
    background-color: #f5f5f5;
    padding: 0.5rem;
}
.tile-element.product-description p {
    text-align: left;
    display: block;
    padding: 0.1rem 0;
    height: auto;
}
.tile-element.product-description img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.tile-element p {
    font-size: 1.025rem;
    font-weight: 370;
    letter-spacing: .0333333333em;
    line-height: 1.6666666667em;
    text-align: center;
    padding: 1rem;
    justify-content: center;
    height: 60px;
    display: flex;
    align-items: center;
}
.tile-element img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    filter: sepia(20%) saturate(100%) brightness(90%);
}
.image-container {
    position: relative;
    width: 100%;
}
.product-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.caption-text {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: .0333333333em;
    line-height: 1.6666666667em;
    color: #fafcf5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    padding: 0.3em 0.6em;
    border: 2px solid #ffffff !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.tile-element:hover .caption-text,
.tile-element.touched .caption-text {
    transform: scale(1.1);
    opacity: 10;
    box-shadow: 0 4px 15px rgb(0, 0, 0, 0.5);
}

#contacto {
    background-color: #f5f5f5;
    padding: 1rem;
    text-align: center;
    max-width: 90%;
    margin: 20px auto;
}
.contact-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    text-align: center;
}
.contact-bar a {
    color: #2c5f2d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.contact-bar a:hover {
    text-decoration: underline;
}
.icon {
    width: 25px;
    height: 25px;
}


footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    background-color: #f1f1f1;
    margin-top: 50px;
}

/* Ajustes responsivos mínimos */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    .tile-products {
        grid-template-columns: 1fr;
    }
    .table {
        grid-auto-rows: auto;
    }
    .hero-home {
        min-height: 45vh;
        padding: 1rem;
        max-height: 65px;
        background-position: center bottom;
    }
}

