/* ═══════════════════════════════════════════════
   MAGA KITCHEN — cocinas.css
   Estilos específicos de la página /cocinas
═══════════════════════════════════════════════ */

/* ── Nav active state ── */
.nav-active { color: var(--red) !important; position: relative; }
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--red);
}

/* ══ HERO INTERIOR ══ */
.page-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.page-hero-img {
  position: absolute;
  inset: 0;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 56px;
  max-width: 580px;
}

.page-hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-h1 em { color: var(--red); font-style: italic; }

.page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 28px;
}

/* ══ INTRO ══ */
.intro-section { background: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.intro-img-wrap {
  overflow: hidden;
  position: relative;
}

.intro-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.intro-feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.intro-feat-icon {
  width: 36px;
  height: 36px;
  background: rgba(128,0,32,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.intro-feat h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 2px;
}

.intro-feat p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* ══ ESTILOS ══ */
.estilos-section { background: var(--cream); }

.estilos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.estilo-card {
  background: var(--white);
  display: block;
  color: inherit;
  transition: background .2s;
}

.estilo-card:hover { background: #fff8f8; }

.estilo-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.estilo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}

.estilo-card:hover .estilo-img img { transform: scale(1.05); }

.estilo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.3) 100%);
}

.estilo-body { padding: 24px 22px 28px; }

.estilo-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--black);
  margin-bottom: 10px;
}

.estilo-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.estilo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.estilo-tags span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--red);
  border: 1px solid rgba(128,0,32,.25);
  padding: 3px 10px;
}

/* ══ DISTRIBUCIONES ══ */
.distribucion-section { background: var(--white); }

.dist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dist-card {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.dist-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.dist-card-featured {
  border-color: var(--red);
  border-width: 1.5px;
}

.dist-img {
  position: relative;
  height: 330px;
  padding: 5%;
  overflow: hidden;
}

.dist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.dist-card:hover .dist-img img { transform: scale(1.04); }

.dist-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,.7);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
}

.dist-badge-red { background: var(--red); }

.dist-popular {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  color: var(--red);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border: 1px solid rgba(128,0,32,.3);
}

.dist-body { padding: 24px 24px 28px; }

.dist-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--black);
  margin-bottom: 8px;
}

.dist-body > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.dist-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dist-list li {
  font-size: 13px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dist-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.btn-cotizar-dist {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ══ CUBIERTAS ══ */
.cubiertas-section {
  background: var(--black);
  padding: 80px 40px;
}

.cubiertas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.cubiertas-img {
  overflow: hidden;
  position: relative;
}

.cubiertas-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ══ DRAWER ══ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: var(--white);
  z-index: 401;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 4px;
}

.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--black);
  font-weight: 500;
  line-height: 1.2;
}

.drawer-title span {
  font-style: italic;
  color: var(--red);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #555;
  transition: all .2s;
  margin-top: 4px;
}

.drawer-close:hover {
  background: var(--light);
  color: var(--black);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 32px;
}

.drawer-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ══ FORM ══ */
.cotiza-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: .2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group input.error,
.form-group select.error { border-color: #c0392b; }

.btn-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: .3px;
  transition: opacity .2s;
  margin-top: 4px;
}

.btn-submit:hover { opacity: .88; }

.form-note {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.form-note svg { flex-shrink: 0; color: var(--red); }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show { display: block; }

.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(128,0,32,.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--red);
}

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET ≤900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-hero { height: 460px; }
  .page-hero-h1 { font-size: 38px; }
  .page-hero-content { padding: 0 24px 44px; }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-img-wrap img { height: 320px; }
  .intro-features { grid-template-columns: 1fr 1fr; }

  .estilos-grid { grid-template-columns: 1fr 1fr; }

  .dist-grid { grid-template-columns: 1fr; gap: 16px; }
  .dist-img { height: 280px; }

  .cubiertas-section { padding: 56px 24px; }
  .cubiertas-inner { grid-template-columns: 1fr; gap: 40px; }
  .cubiertas-img img { height: 300px; }

  .drawer { width: 100vw; }
  .form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤600px
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .page-hero { height: 380px; }
  .page-hero-h1 { font-size: 30px; }
  .page-hero-content { padding: 0 20px 36px; max-width: 100%; }
  .page-hero-sub { font-size: 14px; }

  .intro-features { grid-template-columns: 1fr; }
  .intro-img-wrap img { height: 260px; }

  .estilos-grid { grid-template-columns: 1fr; }
  .estilo-img { height: 200px; }

  .cubiertas-section { padding: 48px 20px; }
  .cubiertas-img img { height: 240px; }

  .drawer-header { padding: 20px 20px 16px; }
  .drawer-body { padding: 20px 20px 28px; }
  .drawer-title { font-size: 18px; }
}

/* ── Nav siempre encima del drawer overlay en móvil ── */
@media (max-width: 900px) {
  .nav { z-index: 401; }
}
