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

:root {
  --animate-delay: 0.3s;
}

body {
    font-family: Arial, sans-serif;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
	overflow-x: hidden !important;
}

/* Fuentes */
@font-face {
    font-family: 'Acherus Grotesque';
    src: url('../fonts/AcherusGrotesque-Regular.woff2') format('woff2'),
         url('../fonts/AcherusGrotesque-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Acherus Grotesque';
    src: url('../fonts/AcherusGrotesque-RegularItalic.woff2') format('woff2'),
         url('../fonts/AcherusGrotesque-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}

.header a {
    text-transform: uppercase !important;
}

.logo {
    grid-column: span 3; /* Ocupa las 3 columnas */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0rem 0 2rem 0; /* Espaciado opcional */
    background: white; /* Ajustar si es necesario */
}

.logo a {
    display: block;
    background: url(../img/logo.svg) no-repeat center;
    background-size: contain;
    text-indent: -9999px;
	width:18%;
    max-width: 356px;
    aspect-ratio: 356 / 80;
}

/* Botones */
.menu-btn, .contact-btn, .search-btn {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.menu-btn {
    margin-right: auto;
}

.contact-btn, .search-btn {
    margin-left: 15px;
}

/* Íconos */
.menu-btn i, .search-btn {
    display: inline-block;
    background-size: contain;
    position: relative;
}

.menu-btn i {
    background: url(../img/menu.svg) no-repeat;
    width: 1.5rem;
    height: 0.8rem;
    margin-right: 0.4rem !important;
}

.search-btn {
    background: url(../img/lupa.svg) no-repeat;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 1.5rem !important;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -360px;
    top: 0;
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: #444;
    transition: 0.3s;
    padding: 2rem;
    color: white;
    z-index: 11;
}

.sidebar.open {
    left: 0;
}

.sidebar .close-btn {
	background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: block;
    margin: 0rem 0 2rem 0rem;
}

.sidebar.open { left: 0; }
        .sidebar .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            display: block;
            margin-bottom: 20px;
        }
        .sidebar ul {
            list-style: none;
        }
        .sidebar ul li {
            padding: 0.5rem 0;
        }

.sidebar ul li a {
font-size: 1.1rem;
text-transform: uppercase !important;
font-family: "Montserrat", sans-serif;
font-weight: 600;
color:#fff;	
text-decoration:none;
}

.sidebar ul li a:hover {
text-decoration:underline;
}

.sidebar hr {
	border: 1px solid #525050;
    background: #503f3f;
    height: 1px;	
}

/* Main */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Grid de cajas */
.box-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 100%;
    max-width: 1920px;
    padding-bottom: 3rem;
}

.box {
    position: relative;
    overflow: hidden;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 640 / 284;
    cursor: pointer;
}

.box-logo {
    position: absolute;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.box-logo img {
    width: 70%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.box .box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.box .box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.74);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Hover Effects */
.box:hover .box-bg {
    transform: scale(1.4) translateY(20px);
}

.box:hover .box-logo img {
    transform: translateY(-20px);
    filter: brightness(100);
}

.box:hover .box-overlay {
    opacity: 0;
}

/* Footer */
.footer {
    background: #E5E5E5;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem 1.5rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.footer a {
    color: #000;
    font-family: 'Acherus Grotesque';
    text-decoration: none;
}

.footer a:nth-of-type(2) {
    margin-top:1rem;
}

footer a:nth-of-type(1) i {
    background: url(../img/whatsapp.svg) no-repeat;
    width: 2rem;
    height: 2rem;
    display: inline-block;
    margin-right: 0.5rem;
    position: relative;
    top: 0.5rem;
}

.modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        z-index: 99999;
    }
.active2 {
        display: none !important;
    }	
.active {
        display: flex !important;
    }
	
	.modal h2 {
font-size: 1.1rem;
text-transform: uppercase !important;
font-family: "Montserrat", sans-serif;
font-weight: 600;
color:#000;	
text-decoration:none;	
margin-bottom:1rem;	
	}

.modal input[type="text"], 
.modal input[type="email"], 
.modal input[type="tel"],
.modal textarea {
width:100%;
font-family: "Montserrat", sans-serif;
margin-bottom:0.5rem;
padding:0.5rem 0.5rem;
border:1px solid #d1d0d1;
}

.modal textarea {
height:4rem;
}

.modal button[type="submit"] {
width:100%;
font-family: "Montserrat", sans-serif;
font-weight:700;
margin-bottom:0.5rem;
padding:0.5rem 0.5rem;
border:1px solid #d1d0d1;
cursor:pointer;
transition: 0.3s;
}

.modal button[type="submit"]:hover {
background:#000;
color:#fff;
}

    .modal-content {
        background: #E5E5E5;
        padding: 2rem;
        width: 90%;
        max-width: 400px;
        text-align: center;
        border-radius: 0px;
        position: relative;
    }

    .close-modal {
        position: absolute;
        top: 0.5rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 2rem;
        color: black;
        cursor: pointer;
    }

@media (max-width: 1200px) {
	.logo a {
		width:60%;
	}
}

@media (max-width: 1000px) {
    .box-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo {
        grid-column: span 2; /* Ocupa las 2 columnas en tablet */
    }
	.logo a {
		width:100%;
	}
}

@media (max-width: 640px) {
	.header {
    background:#fff;
	z-index:10;
	}
    .box-container {
        grid-template-columns: repeat(1, 1fr);
    }
    .logo {
        grid-column: span 1; /* Ocupa toda la fila en móvil */
    }
	.logo a {
		width:80%;
	}
}