/* Variables */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background-color: #f9f9f9; color: #333; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: #fff; box-shadow: var(--shadow); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 1rem; }
.logo { width: 80px; height: auto; }
.page-title { color: var(--primary-color); }

/* Nav */
.nav { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
.nav a:hover { color: var(--secondary-color); }

/* Filters */
.filters { background: #fff; padding: 1.5rem 2rem; margin: 1rem 0; box-shadow: var(--shadow); }
.filter-bar { display: flex; gap: 1rem; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: 0.7rem; border: 1px solid #ddd; border-radius: 4px; flex: 1; }

/* Cards */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; padding: 0 2rem 2rem; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; }
.card-title { color: var(--primary-color); margin-bottom: 0.5rem; }
.card-desc { color: #555; flex-grow: 1; margin-bottom: 1rem; }
.facts { list-style: none; margin-bottom: 1rem; }
.facts li { margin-bottom: 0.4rem; }

/* Buttons */
.btn, .btn-outline, .btn-secondary { padding: 0.6rem 1.2rem; border-radius: 4px; cursor: pointer; text-decoration: none; transition: var(--transition); display: inline-block; text-align: center; }
.btn { background: var(--secondary-color); color: #fff; border: none; }
.btn:hover { background: #2980b9; }
.btn-outline { border: 1px solid var(--secondary-color); color: var(--secondary-color); background: transparent; }
.btn-outline:hover { background: var(--secondary-color); color: #fff; }
.btn-secondary { background: var(--light-color); color: var(--dark-color); border: none; }
.btn-secondary:hover { background: #ddd; }

/* Modal genérico (Solicitar información) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hidden { display: none; }
.modal-content { background: #fff; padding: 2rem; border-radius: 12px; width: 90%; max-width: 420px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); position: relative; }
.close { position: absolute; top: 10px; right: 12px; font-size: 1.5rem; cursor: pointer; background: transparent; border: 0; }

/* === MODAL “¿QUIÉNES SOMOS?” — CARTA CREATIVA === */
.about-modal { position: fixed; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.5), rgba(0,0,0,.35)); display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 60; backdrop-filter: blur(2px); }
.about-modal.hidden { display: none; }

.about-wrap { position: relative; width: min(920px, 94vw); max-height: 92vh; overflow: auto; }
.about-close { position: absolute; top: -12px; right: -12px; background: #fff; border: 0; box-shadow: 0 6px 16px rgba(0,0,0,.3); width: 40px; height: 40px; border-radius: 999px; cursor: pointer; font-size: 1rem; z-index: 2; }
.about-close:hover { transform: scale(1.05); }

.about-ribbon { position: absolute; top: 8px; left: -18px; transform: rotate(-8deg); background: linear-gradient(90deg, #ff8a00, #ff4d4d); color: #fff; padding: 8px 22px; font-weight: 800; letter-spacing: .5px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 1; }

.about-paper {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.06);
  /* efecto papel rasgado */
  --tear: radial-gradient(circle at 8px 8px, transparent 8px, #fff 9px) repeat-x;
  mask: linear-gradient(#000 0 0) top/100% calc(100% - 14px) no-repeat,
        var(--tear) bottom left / 18px 18px repeat-x;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 14px) no-repeat,
        var(--tear) bottom left / 18px 18px repeat-x;
}

.about-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.about-seal { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.about-sub { color: #667; margin-top: .15rem; }

.about-intro { margin: .35rem 0 1rem; color: #3a3a3a; }
.about-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem; }
.pill { background: #f1f7fe; color: #2563eb; border: 1px solid #cfe6ff; padding: .4rem .7rem; border-radius: 999px; font-size: .9rem; }

.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: .6rem 0 1.2rem; }
.stat { background: #f9fbff; border: 1px solid #eaf1ff; border-radius: 12px; padding: .9rem; text-align: center; }
.stat-num { display: block; font-size: 1.35rem; font-weight: 800; color: var(--primary-color); }
.stat-label { display: block; font-size: .85rem; color: #667; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.about-block { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 1rem; position: relative; }
.about-block h3 { color: var(--primary-color); margin-bottom: .4rem; }

/* stickers “pegados” */
.sticker::after {
  content: '';
  position: absolute; width: 60px; height: 20px; top: -10px; left: 16px;
  transform: rotate(-6deg);
  background: rgba(255,255,153,.7);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  border-radius: 4px;
}
.sticker-blue { border-color: #d7e9ff; }
.sticker-red { border-color: #ffd6d6; }

.about-collage { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; margin: .2rem 0 1rem; }
.about-collage img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.about-collage img:nth-child(2) { grid-row: span 2; height: 100%; }

.about-quote { margin: .6rem 0 1rem; padding: .9rem 1rem; background: #f7fbff; border-left: 4px solid var(--secondary-color); color: #334; font-style: italic; border-radius: 8px; }

.about-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.about-sign { margin-top: .9rem; color: #667; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.sign-divider { opacity: .5; }
.about-tel { color: var(--secondary-color); text-decoration: none; }
.about-tel:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--dark-color); color: #fff; text-align: center; padding: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .about-wrap { width: min(720px, 94vw); }
}
@media (max-width: 768px) {
  .site-header { gap: .75rem; }
  .about-split { grid-template-columns: 1fr; }
  .about-collage { grid-template-columns: 1fr; }
  .about-ribbon { display: none; }
}
