/* =============== VARIABLES =============== */
:root {
    --primario: #7b0c6e;
    --secundario: #5a2050;
    --acento: #e58dd8;
    --fondo: #fcf8fc;
    --blanco: #ffffff;
    --sombra: rgba(123, 12, 110, 0.15);
}

/* =============== RESET =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--fondo);
    color: #333;
   /*overflow-x: hidden;*/
}
.main-header {
    background: var(--acento);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--secundario);
    font-weight: 700;
    font-size: 1.4rem;
}
.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-link {
    text-decoration: none;
    color: var(--secundario);
    font-weight: 600;
    transition: 0.3s;
}
.nav-link:hover { color: var(--primario); }
.casa-cultura {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}
.casa-header {
    text-align: center;
    margin-bottom: 4rem;
}
.subtit {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primario);
    font-weight: 600;
    font-size: 0.8rem;
}
.casa-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primario);
    margin: 0.5rem 0;
}
.divider {
    width: 80px;
    height: 4px;
    background: var(--acento);
    margin: 1rem auto;
    border-radius: 2px;
}
.casa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}
.proyecto-item {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.proyecto-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(90, 32, 80, 0.2);
}
.proyecto-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.proyecto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.proyecto-item:hover .proyecto-img img {
    transform: scale(1.08);
}
.overlay-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primario);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}
.proyecto-info {
    padding: 2rem;
}
.proyecto-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--secundario);
    margin-bottom: 1rem;
}
.proyecto-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}
.btn-proyecto {
    display: inline-block;
    text-decoration: none;
    background: var(--primario);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-proyecto:hover {
    background: var(--secundario);
    transform: scale(1.05);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.valor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: white;
  padding: 25px;
  border-radius: 10px;
  border-bottom: 4px solid var(--acento);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
footer {
    color: var(--secundario);
    /*padding: 3rem 1rem;
    text-align: center;*/
    margin-top: 5rem;
    font-weight: 600;
}
@media (max-width: 768px) {
    .menu-toggle { display: block; background: none; border: none; font-size: 2rem; color: var(--secundario); cursor: pointer; }
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--acento);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }
    .menu.active { display: flex; }
    .casa-header h2 { font-size: 2.2rem; }
    .casa-grid { grid-template-columns: 1fr; }
}
p {
    letter-spacing: normal;
    word-spacing: normal;
    text-align: justify;
    hyphens: auto;
}