@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('../FONTSCoimex/ITC Avant Garde Gothic CE Book.woff') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('../FONTSCoimex/ITC Avant Garde Gothic Medium.woff') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('../FONTSCoimex/ITC Avant Garde Gothic CE Demi.woff') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('../FONTSCoimex/ITC Avant Garde Gothic Bold.woff') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('../FONTSCoimex/ITC Avant Garde Gothic Bold Oblique.woff') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Cursiva';
    src: url('../FONTSCoimex/MrsSaintDelafield-Regular.woff') format('opentype');
    font-weight: 400;
    font-style: italic;
}

html {
  /* tamaño head*/
  scroll-padding-top: 100px; 
  
  /*suavizar scroll*/
  scroll-behavior: smooth;
}

:root {
    --dark-green: #4b7c41;
    --gold: #b38b2d;
    --light-gold: #d4af37;
    --white: #ffffff;
    --text-gray: #cccccc;
    --card-width: 250px;
    --gap: 20px;
    --primary-color: #333;
    --accent-color: var(--light-gold);
}

body {
    margin: 0;
    background-color: white;
    color: var(--dark-green);
    line-height: 2;
    font-family: 'ITC Avant Garde Gothic', sans-serif; 
    font-weight: 500;
   background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
        
    /*Tamaño de los cuadritos de fondo*/
    background-size: 25px 25px; 
    
    background-attachment: fixed;
    margin: 0; 
    min-height: 100vh; 
}

/* Obligamos a todas las secciones a ser transparentes, excepto a su encabezado principal */
section:not(.hero) {
    background-color: transparent;
}

/* También volvemos transparentes los recuadros internos que puedan estar tapando el fondo */
div {
    background-color: transparent;
}

/*boton hacia arriba*/
.goup {
    border-radius: 9999px;
    padding: 0.25rem 1rem;
    position: fixed;
    z-index: 99; 
    bottom: 1.5rem;
    right: 1.5rem;
    text-decoration: none;
    background-color: white;
    border: 3px solid var(--gold);
    transition: all 0.3s ease;
    color: var(--gold);
}

.goup:hover {
    background: var(--light-gold);
    color: white;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}


.seccion-contacto .border-box {
    /* handled by the explicit 50% rules later */
    flex: none;
    border: none;
    padding: 0;
    margin: 0;
    max-width: none;
}

.padding-center {
    transform: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    
    gap: 40px 30px; 
    padding: 0 1.5rem;
    margin: 0 1rem;
    align-items: start; 
    
    margin-top: 20px;
    font-size: 0.9rem;
}

.llave {
    transform: scale(1.8, 6);
    height: min-content;
    align-self: center;
}

.offset-layout {
    align-items: center;
}

.product-options-layout {
    align-items: center;
}

.offset-layout .llave,
.offset-layout > div:last-child,
.product-options-layout > div:last-child {
    align-self: center;
}

.offset-layout .llave {
    position: relative;
    top: -0.45rem;
}

.sizes {
    font-size: 1.3rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.txt-gold {
    color: var(--gold);
    font-weight: 600;
}

.centered-div {
    width:100%;
    justify-content: center;
    display: flex;
}

/*menu*/
header {
    background-color: var(--white);
    border-bottom: 5px solid var(--gold);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    width: 100%;
    -webkit-box-shadow: 0px 8px 15px -6px rgba(0,0,0,0.7); 
    box-shadow: 0px 8px 15px -6px rgba(0,0,0,0.7);
    z-index: 1000;
}

.navbar {
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 20rem;
    transition: 0.1s ease-in-out;
}

.logo img:hover{
    filter: opacity(95%);
    transform: scaleX(1.01);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--dark-green);
    text-decoration: none;
    font-size: 1.5rem;
}

.nav-links a:hover{
    color: var(--gold);
    text-decoration: none;
    border-bottom: 3px solid var(--light-gold);}

/* HERO SECTION */

.btn-cta {
 background: white;
    border: none;
    border-radius: 0.8rem;
    width: 200px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    border: 3px solid var(--gold);
    transition: all 0.3s ease;
    color: var(--gold);
    text-decoration: none;
    align-content: center;
    
}

.btn-cta:hover{
    background: var(--light-gold);
    color: white;
}

.torn-paper-divided {
    border: none;
    
    /*ancho y el margen*/
    width: 100%; 
    margin: 1rem;
    
    /*altura para el patrón de rasgado */
    height: 5.5rem; 
    
    background-image: url('../IMAGESCoimex/PAPEL_RASGADO.png'); 
    
    background-repeat: repeat-x;
    
    /* 6. Alineado del borde rasgado a la parte superior */
    background-position: center;
}

.top-paper {
    top: 0;
    left: 0;
}

.bottom-paper {
    bottom: 0;
    left: 0;
    transform: rotate(180deg); 
}

/*Imagen de Bienvenida*/
.hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:url(../IMAGESCoimex/CoimexFondo.jpg);
    background-size: cover;
    background-position: center;
    position: relative; 
    z-index: 1; 
    
    /*padding para evitar que la textura cubra el texto del héroe*/
    padding-top: 5.5rem; 
    padding-bottom: 5.5rem; 
}

.hero .torn-paper-divided {
    border: none;
    width: 100%;
    height: 5.5rem;
    background-image: url('../IMAGESCoimex/PAPEL_RASGADO.png');
    background-repeat: repeat-x;
    background-position: center;

    position: absolute;
    z-index: 2; 
    margin: 0; 
}

.hero > div {
    position: relative; 
    z-index: 3; /* nivel por encima del papel rasgado*/
}

/* NUESTRA HISTORIA */

.numero {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.04);
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: -1;
}

.texto {
    flex: 1;
    position: relative;
    z-index: 2;
}

.decoracion, .decoracion-2 {
    flex: 1;
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 10px solid var(--gold);
    box-shadow: 15px 15px 0px #e9ecef;
    display: flex;
    position: relative;
    z-index: 1;
}

.decoracion img {
    object-fit: cover;
    overflow: hidden;
    width: 100%;
    border-radius: 0 8px 8px 0;
}

.slogan {
    margin-top: 30px;
    padding: 15px;
    border-top: 2px solid var(--light-gold);
    display: inline-block;
    font-weight: bold;
    font-style: italic;
    color: var(--dark-green);
}

/* GAMA PRODUCTOS */

.btn-carrusel {
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    border: 3px solid var(--gold);
    transition: all 0.3s ease;
    color: var(--gold);
}

.btn-carrusel:hover {
    background: var(--light-gold);
    color: white;
}

.prev{ left: -70px; }
.next{ right: -70px; }

.product-list {
    padding: 0 10%;
}

/* FOOTER */

.footer-container {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 5rem;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
}

.footer-logo {
    font-size: 80px; 
    color: var(--gold);
    font-weight: 700;
    margin: 0;
    line-height: 0.8;
    letter-spacing: -2px;
}

.footer-tagline {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 5px;
}

.supapel-logo {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.supapel-logo img {
    display: block;
    height: 5rem;
}

.supapel-registry-mark {
    position: absolute;
    right: 0.25rem;
    bottom: 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
    color: #4a4a4a;
}

.footer-info {
    max-width: 28.7rem;
    align-self: center;
}

.footer-addresses {
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.footer-phones {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 60px;
    font-weight: 500;
    margin-bottom: 20px;
}

.phone-group {
    margin: 5px 0;
}

.footer-email {
    font-weight: 500;
    margin-bottom: 40px;
}

.footer-bottom {
    font-size: 0.75rem;
    font-weight: 500;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom span {
    margin: 0 5px;
    font-weight: bold;
}

.section-title {
    color: var(--gold);
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
    font-family: Cursiva;
    font-size: 10rem;
    font-weight: 400;
    height: min-content;
    height: 20rem;
}

.hero-title {
    color: var(--light-gold);
    text-shadow: 4px 4px 10px #000;
    font-size: 8rem;
}

.historia-coimex {
  background-color: #ffffff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
}

.bloque-historia {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    position: relative;
}

.bloque-historia.inversa {
    flex-direction: row-reverse;
}

.texto h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-green);
}

.texto p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #555;
}

.servicios {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.category {
    margin-bottom: 60px;
    padding-bottom: 10px;
}

.category h3 {
    color: var(--dark-green);
    font-size: 3rem;
    font-weight: 500;
    margin: 0;
    border-bottom: none;
    position: relative;
    z-index: 2;
    transition: 0.06s ease-in-out;
}

.category h4 {
    font-size: 2rem;
    font-weight: 600;
    padding:0;
    margin:0;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.12s ease;
}

.category h4:hover {
    color: var(--gold);
}

.category h5 {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

.category p {
    margin: 0;
}

.titulo-dropdown {
    cursor: pointer;
    transition: opacity 0.2s;
    
    background-image: url('../IMAGESCoimex/FOLDER_MANILA.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    
    padding: 40px 40px 20px 40px; 
    padding: 20px 40px 10px 40px; 
    min-height: 80px;
    display: flex;
    align-items: center;
    margin-bottom: -3px;
    transition: 0.06s ease-in-out;
}

.titulo-dropdown:hover h3 {
    opacity: 0.8;
    color: var(--gold);
    text-decoration: var(--light-gold) underline;
    text-decoration-thickness: 5px;
}

.ubicacion {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
}

/* FORMULARIO DE CONTACTO */
.seccion-contacto {
    margin: 0;
    text-align: center;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: stretch;
    justify-items: stretch;
    padding: 0 40px;
    max-width: 100%;
    grid-auto-flow: row;
}

.seccion-contacto > .border-box,
.seccion-contacto > .ubicacion {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.seccion-contacto > .border-box {
    position: relative;
    z-index: 2; /* keep form above the map to avoid visual overlap */
}

.ubicacion {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    align-self: stretch;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    width: 100%;
    padding: 30px;
    border: 3px solid var(--gold);
    border-radius: 10px;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    font-family: 'ITC Avant Garde Gothic', sans-serif;
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    color: var(--dark-green);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background-color: var(--white);
}

/* Ajuste específico para que el botón herede tus estilos pero no flote de forma absoluta dentro del form */
.formulario .btn-cta {
    position: relative;
    margin-top: 15px;
    width: 250px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: var(--white);
    border-radius: 999px;
    display: none;
    animation: spin 0.8s linear infinite;
}

.btn-submit.is-loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-submit.is-loading .btn-spinner {
    display: inline-block;
}

.btn-submit.is-loading .btn-text {
    opacity: 0.85;
}

.submit-row {
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
}

/* Estilos para la casilla de aceptación junto al botón */
.checkbox-accept {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1rem;
}

.checkbox-accept input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 4px;
}

/* Contenedor para el botón y el mensaje de estado*/
.submit-button-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Mensaje de estado debajo del botón */
.submit-status {
    color: var(--gold);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
    display: block;
    text-align: center;
    font-size: 1rem;
    height: 1.2em;
}

.submit-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .submit-row {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* (Duplicate absolute positioning removed so the status displays below the button) */

.map-container {
    margin: 0;
    width: 100%;
    max-width: 100%;
    align-self: center;
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 350px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 10px solid var(--gold);
    box-shadow: 15px 15px 0px #e9ecef;
    overflow: hidden;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .seccion-contacto {
        grid-template-columns: 1fr;
    }
}


.main-footer {
    display: flex;
    flex-direction: row;
    padding-top: 40px;
    padding-bottom: 20px;
    margin: 0 7rem;
    text-align: center;
    font-family: 'Helvetica Neue', sans-serif;
    color: var(--dark-green);
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    display: flex;
    align-items: center;
}

.carousel-window {
    overflow: hidden;
    width: 100%;
    border-radius: 15px;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: var(--gap);
    will-change: transform;
}

.card {
    width: var(--card-width);
    height: 350px;
    flex-shrink: 0;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-overlay h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 600;
}

.card:hover img {
    filter: brightness(0.65);
}

.card:hover .card-overlay {
    opacity: 1;
}

.dropdown-content {
    display: grid;
    grid-template-rows: 0fr; 
    
    border-radius: 0 0 10px 10px;
    padding: 0 20px;

    /*grosor del borde de dropdown productos*/
    border: 3px solid transparent; 
    /* invisibilidad para cierre de carpetas productos*/
    opacity: 0; 
    background-color: transparent;

    /*cubic-bezier movimiento más orgánico y ease para degradado de color */
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                border-color 0.5s ease,
                background-color 0.5s ease;
}

.dropdown-content.abierto {
    grid-template-rows: 1fr; 
    padding: 20px 20px 40px 20px;
    
    border: 3px solid var(--light-gold);
    opacity: 1; /*suavizado del contenido del fondo*/
    /* La animación de apertura.*/
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s ease,
                border-color 0.4s ease,
                background-color 0.4s ease;
}

.dropdown-content > div {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/*estilos pop-in info de fotografias*/
.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal-btn {
    margin-top: 20px;
    padding: 10px 25px;
    border: none;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.legal-disclaimers {
    color: var(--dark-green);
    transition: color 0.2s ease;
}

.legal-disclaimers:hover {
    color: var(--light-gold);
}

.link-productos {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    color: var(--dark-green);
    transition: color 0.2s ease;
}

.link-productos:hover {
    text-decoration: underline;
    color: var(--light-gold);
}

.product-modal-content {
    position: relative;
    width: min(90vw, 700px);
    max-width: none;
    box-sizing: border-box;
    padding: 2.5rem;
}

.product-modal-content h2 {
    margin: 0 0 1rem;
    color: var(--dark-green);
    line-height: 1.2;
}

.product-modal-content img {
    display: block;
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border: 2px solid var(--gold);
}

.product-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    padding: 0 0.5rem;
    border: 0;
    background: transparent;
    color: var(--dark-green);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.product-modal-close:hover {
    color: var(--gold);
}

/* CSS PRODUCTOS */

.gallery-section { 
    padding: 0 10% 40px 10%;
    margin-top: -3rem;
}

.gallery-section h3 { 
    color: var(--dark-green); 
    font-size: 2.2rem; 
    margin-bottom: 12px; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 18px; 
}

.gallery-item img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 8px; 
    border: 2px solid var(--gold); 
}

.gallery-item .caption { 
    margin-top: 8px; 
    text-align: center; 
    color: var(--dark-green); 
    font-weight: 600; 
}

.page-header { 
    padding: 30px 10%; 
    display:flex; 
    justify-content: center; 
    align-items:center; 
}

/* ANIMATIONS AND ADVANCED STYLES */

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .bloque-historia, .bloque-historia.inversa {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .decoracion, .decoracion-2 {
        width: 100%;
        height: 150px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
iframe {
    max-width: 100%;
}

.navbar {
    gap: 1rem;
}

.logo img {
    display: block;
    max-width: 100%;
}

.nav-toggle {
    display: none;
}

.section-title {
    height: auto;
    line-height: 1.15;
}

.hero {
    height: auto;
    min-height: 400px;
    padding: 7rem 1.5rem;
}

.hero-title {
    max-width: none;
    margin: 0 auto 1.5rem;
    line-height: 1.05;
    white-space: nowrap;
}

.hero .centered-div {
    margin-bottom: 0;
}

.hero .btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-list {
    padding-inline: 5%;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    margin-inline: 0;
}

.category h4 {
    white-space: normal;
    overflow-wrap: anywhere;
}

.sizes,
.offset-layout,
.product-options-layout {
    flex-wrap: wrap;
}

.carousel-wrapper {
    width: calc(100% - 3rem);
}

.main-footer {
    margin-inline: clamp(1rem, 5vw, 7rem);
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    justify-content: center;
}

.legal-content {
    max-width: 52rem;
    margin-inline: auto;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legal-content h3 {
    margin-top: 2rem;
    line-height: 1.35;
}

.page-header {
    padding: 2rem 1.5rem;
}

.product-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1100px;
    }

    .carousel-wrapper {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 8rem;
    }

    .hero-title {
        font-size: 6rem;
    }
}

@media (max-width: 1000px) {
    .navbar {
        padding-inline: 3%;
    }

    .logo img {
        width: min(18rem, 32vw);
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 8rem;
    }

    .hero-title {
        font-size: 5rem;
    }

    .bloque-historia,
    .bloque-historia.inversa {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .decoracion,
    .decoracion-2 {
        width: 100%;
        max-width: 700px;
        height: 260px;
    }

    .seccion-contacto {
        gap: 2rem;
        padding-inline: 1.5rem;
    }

    .footer-container {
        gap: 2rem;
    }
}

@media (max-width: 800px) {
    header {
        margin-bottom: 1rem;
    }

    .navbar {
        position: relative;
        min-height: 76px;
        padding: 0.5rem 1rem;
    }

    .logo img {
        width: min(15rem, 65vw);
    }

    .nav-toggle {
        display: inline-flex;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        border: 2px solid var(--gold);
        border-radius: 6px;
        background: var(--white);
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--dark-green);
    }

    .nav-toggle:focus-visible,
    .nav-links a:focus-visible {
        outline: 3px solid var(--light-gold);
        outline-offset: 3px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem 1rem 1rem;
        background: var(--white);
        border-bottom: 3px solid var(--gold);
        box-shadow: 0 8px 15px -8px rgba(0, 0, 0, 0.55);
    }

    .navbar.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.65rem 0.25rem;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 6rem;
        padding-inline: 0.5rem;
    }

    .padding-center {
        transform: none;
    }

    .hero {
        min-height: 360px;
        padding: 6rem 1rem;
    }

    .hero-title {
        font-size: 4.5rem;
        white-space: normal;
    }

    .hero .torn-paper-divided {
        height: 4rem;
    }

    .bloque-historia,
    .bloque-historia.inversa {
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }

    .decoracion,
    .decoracion-2 {
        height: 230px;
    }

    .product-list {
        padding-inline: 1rem;
    }

    .category {
        margin-bottom: 2rem;
    }

    .category h3 {
        font-size: 2.2rem;
    }

    .category h4 {
        font-size: 1.35rem;
    }

    .category h5 {
        font-size: 1.15rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        gap: 1.5rem;
        padding: 0;
    }

    .sizes {
        gap: 0.5rem 1rem;
        font-size: 1rem;
    }

    .carousel-wrapper {
        width: calc(100% - 2rem);
        margin-block: 2rem;
    }

    .prev {
        left: 0.25rem;
    }

    .next {
        right: 0.25rem;
    }

    .card {
        width: min(var(--card-width), calc(100vw - 5rem));
        height: 320px;
    }

    .seccion-contacto {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding-inline: 1rem;
    }

    .formulario {
        padding: 1.25rem;
    }

    .submit-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .checkbox-accept {
        align-items: flex-start;
        text-align: left;
    }

    .checkbox-accept input[type="checkbox"] {
        flex: 0 0 18px;
        margin-top: 0.35rem;
    }

    .formulario .btn-cta {
        width: min(100%, 250px);
    }

    .map-container {
        min-height: 320px;
    }

    .main-footer {
        margin-inline: 1rem;
        padding-top: 2rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-branding {
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .footer-logo {
        font-size: 4.5rem;
    }

    .footer-info {
        width: 100%;
    }

    .footer-phones {
        gap: 1.5rem;
    }

    .footer-bottom {
        padding: 1rem;
    }

    .page-header {
        padding: 1.5rem 1rem;
    }

    .page-header .section-title {
        font-size: 5rem;
    }

    .product-modal-content {
        width: calc(100vw - 2rem);
        padding: 3rem 1rem 1rem;
        border-radius: 10px;
    }

    .goup {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 4rem;
    }

    .hero {
        min-height: 320px;
        padding: 5rem 0.75rem;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .hero .btn-cta {
        width: 180px;
        font-size: 1.1rem;
    }

    .texto h3 {
        font-size: 1.5rem;
    }

    .texto p {
        font-size: 1rem;
    }

    .decoracion,
    .decoracion-2 {
        height: 190px;
    }

    .category h3 {
        font-size: 1.8rem;
    }

    .category h4 {
        font-size: 1.15rem;
    }

    .grid {
        grid-template-columns: minmax(0, 1fr);
        margin-inline: 0;
    }

    .dropdown-content,
    .dropdown-content.abierto {
        padding-inline: 0.75rem;
    }

    .carousel-wrapper {
        width: calc(100% - 1rem);
    }

    .btn-carrusel {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .card {
        width: min(var(--card-width), calc(100vw - 3.5rem));
        height: 280px;
    }

    .card-overlay {
        opacity: 1;
        background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.75));
        justify-content: flex-end;
    }

    .card img {
        filter: brightness(0.85);
    }

    .card-overlay h3 {
        font-size: 1.1rem;
    }

    .formulario {
        padding: 1rem;
    }

    .footer-logo {
        font-size: 3.75rem;
    }

    .footer-tagline {
        font-size: 1rem;
    }

    .footer-phones {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .page-header .section-title {
        font-size: 3.75rem;
    }

    .product-modal-content h2 {
        font-size: 1.4rem;
    }
}

@media (hover: none) and (min-width: 481px) and (max-width: 800px) {
    .card-overlay {
        opacity: 1;
        background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.75));
        justify-content: flex-end;
    }

    .card img {
        filter: brightness(0.85);
    }
}
