* {
    box-sizing: border-box;
}

body{
    background-color: #F0F4F8;
}

.contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* ← ESTA ES LA CLAVE */
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.cuadro-categoria {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 150px;
    height: auto;

    width: 100%;
    background-color: #FAFAF7;
    border: 2px solid black;
    border-radius: 15px;
    text-decoration: none;
    color:#D4B483;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    line-height: 1.4;

    overflow-wrap: break-word; 
    word-wrap: break-word; 
    hyphens: auto;
}

.cuadro-categoria:hover {
    background-color: #fcfcf3; /* Un tono crema muy sutil */
    border-color: #D4B483;      /* Cambia el borde negro por tu dorado */
    transform: translateY(-5px); /* Eleva el cuadro ligeramente */
    box-shadow: 0 10px 20px rgba(0,0,0,0.12); /* Sombra más profunda al flotar */
    color: #bfa375;             /* Oscurece un poco el dorado del texto */
}

.header-principal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(20px, 6vw, 50px) 20px;
    background-color: transparent;
}

.logo-contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.mi-logo {
    width: 120px; 
    height: auto;
}

.header-principal h1 {
    font-family: 'Dancing Script', cursive;
    margin: 0;
    color: #D4AF37;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.4;
    flex-wrap: wrap;
}

.info{
    margin: 0;
    color: #2E2E2E;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    line-height: 1.4;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
}

.footer {
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
}

.footer-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-contenido a {
    color: #2E2E2E;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: 0.2s;
}

.footer-contenido a:hover {
    color: #C9A86A;
}

.footer-contenido p {
    margin: 0;
    color: #2E2E2E;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
}

@media (max-width: 480px) {
  .header-principal h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
}
