:root{
    --color-1: #fff;
    --color-2: #222;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--color-2);
    color: var(--color-1);
}
header{
    background-image: url(./images/ofi-esmerilada-m.webp);
    background-size: cover;
    background-position: center;
    aspect-ratio: 3 / 4;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
footer{
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 70px;
    margin-left: 10px;
    margin-bottom: 70px;
}
footer a{
    text-decoration: none;
    color: var(--color-1);
}
h1{
    display: none;
}
h2{
    font-family: "Encode Sans SC", sans-serif;
    font-weight: normal;
    font-size: 2rem;
    color: gray;
}
/* ----CLASES---- */
.sliderPC{
    display: none;
}
header .logo {
    max-width: 80%;
    height: auto;
}
.categoria{
    aspect-ratio: 1000 / 570;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Encode Sans SC", sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow:
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px  2px 0 black,
        2px  2px 0 black;
}
.descripcion{
    margin: 50px 20px 80px 20px;
}
.descripcion p{
    font-size: larger;
    line-height: 1.5;
}
.footItem{
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px;
}
/* ----IDS---- */
#menuDots{
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px;
    border-radius: 7px;
}
#menuOpciones{
    position: fixed;
    right: 0px;
    display: flex;
    flex-direction: column;
    font-family: "Encode Sans SC", sans-serif;
    font-size: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    width: 70%;
    border-radius: 0 0 0 50px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 9;
}
#menuOpciones.show {
    transform: translateX(0);
}
#menuOpciones a{
    color: var(--color-1);
    text-decoration: none;
    padding: 10px 15px 10px 50px;
    text-align: end;
    transition: transform 0.3s ease;
}
#menuOpciones a:hover{
    transform: scale(1.02);
}
#soluciones{
    width: 100%;
    height: 100px;
    background-color: grey;
    font-family: "Encode Sans SC", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
#grilla{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}
#grilla a{
    text-decoration: none;
    color: var(--color-1);
    transition: transform 0.3s ease;
}
#grilla a:hover{
    transform: scale(1.02);
}
#Esme{
    background-image: url(./images/esmerilados-ar.webp);
}
#Micro{
    background-image: url(./images/micorperforados-ar.webp);
}
#Impre{
    background-image: url(./images/impresiones-ar.webp);
}
#Corpo{
    background-image: url(./images/corporeos-ar.webp);
}
#Vinilos{
    background-image: url(./images/viniloDeCorte-ar.webp);
}
#Otros{
    background-image: url(./images/otrosServicios-ar.webp);
}
#headCategorias{
    display: flex;
    flex-direction: column;
    background-color: var(--color-1);
    background-size: cover;
    background-position: center;
    aspect-ratio: 3 / 2;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#headCategorias img{
    width: 50%;
}
#gridEsme{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin: 5px;
}
#gridEsme img{
    width: 100%;
    height: auto;
}
#footer-info{
    color: gray;
    padding-left: 20px;
}
/* ---------FORMULADIO CONTACTO----------- */
#formularioContacto {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contactoIconos{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
#contactoIconos img{
    margin: 30px;
    width: 30px;
    height: auto;
    transition: transform 0.3s ease;
}
#contactoIconos img:hover{
    transform: scale(1.2);
}
/* NOTIFICACION FLOTANTE DE CORREO */
.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #4caf50;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-family: sans-serif;
  font-size: 0.95rem;
  z-index: 9999;
}
.toast.error {
  background: #e53935;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 768px) {
    header{
        background-image: url(./images/ofi-esmerilada-p.webp);
        aspect-ratio: 16 / 6;
    }
    footer{
        margin-top: 70px;
        margin-left: 20px;
        margin-bottom: 70px;
    }
/* ---------  CLASES ---------- */
    .sliderM{
        display: none;
    }
    .sliderPC{
        display: block;
    }
    header .logo {
        max-width: 40%;
        height: auto;
    }
    .categoria{
        font-size: 2rem;
    }
    .footItem{
        gap: 30px;
    }
    .footItem img {
        transition: transform 0.3s ease;
    }
    .footItem:hover img {
        transform: scale(1.15);
    }
    .descripcion{
        margin: 80px 50px 80px 50px;
    }
/* ----------- IDS ---------------- */
    #soluciones{
        font-size: 2rem;
    }
    #grilla {
        grid-template-columns: repeat(3, 1fr);
    }
    #menuOpciones{
        width: 30%;
    }
    #headCategorias{
        aspect-ratio: 7 / 2;
    }
    #headCategorias img{
        width: 30%;
    }
    #gridEsme{
        grid-template-columns: repeat(4, 1fr);
    }
    #gridEsme img{
        transition: transform 0.3s ease;
    }
    #gridEsme img:hover{
        transform: scale(1.02);
    }
    #footer-info{
        color: gray;
        padding-left: 30px;
    }
    /* FORMULARIO DE CONTACTO */
    .descripcion,
    #formularioContacto {
        width: 60%;
        margin: 0 auto;
    }
    .descripcion {
        text-align: justify;
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
    #formularioContacto {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }
    /* TEXT-AREA EN PANTALLAS GRANDES */
    textarea{
        scrollbar-width: thin;
        scrollbar-color: #9fd9e3 #333;
    }
    textarea::-webkit-scrollbar {
        width: 8px;
    }
    textarea::-webkit-scrollbar-track {
        background: #333;
        border-radius: 10px;
    }
    textarea::-webkit-scrollbar-thumb {
        background-color: #9fd9e3;
        border-radius: 10px;
        border: 2px solid #333;
    }
    textarea::-webkit-scrollbar-thumb:hover {
        background-color: #b8ecf5;
    }
}