/* === Sections === */

section { padding: 80px 0; }
@media (min-width: 768px) { section { padding: 112px 0; } }

.section--warm { background: var(--bg-warm); }
.section--deep { background: var(--bg-deep); }
.section--brand { background: var(--brand); color: var(--bg); }
.section--brand h2, .section--brand h3 { color: var(--bg); }
.section--brand .eyebrow { color: var(--accent); }

.section__head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* === Service grid (home) === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  position: relative;
}
.service-card:hover { background: var(--bg-warm); text-decoration: none; }
.service-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}
.service-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}
.service-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}
.service-card__price {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brand);
  font-weight: 600;
}
.service-card__arrow {
  position: absolute;
  top: 36px; right: 32px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: color var(--transition), transform var(--transition);
}
.service-card:hover .service-card__arrow {
  color: var(--brand);
  transform: translateX(4px);
}

@media (min-width: 720px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

/* === Process (proceso) === */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.process-step {
  position: relative;
  padding: 32px 0 32px 80px;
  border-top: 1px solid var(--border);
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step__num {
  position: absolute;
  left: 0; top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}
.process-step h3 { font-size: 1.4rem; margin-bottom: 8px; }
.process-step p { margin: 0; color: var(--text-muted); }
.process-step__time {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* === Projects gallery === */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .projects { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (min-width: 1024px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .projects > .project--wide { grid-column: span 2; }
}

.project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.project__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.project:hover .project__media img { transform: scale(1.04); }
.project__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(250, 247, 242, 0.92);
  color: var(--brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.project h3 {
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.project__loc {
  font-size: 14px;
  color: var(--text-muted);
}

/* === Testimonials === */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; gap: 40px; } }

.quote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 20px;
  font-style: italic;
}
.quote__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote__author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote__author strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.quote__author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Team === */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 600px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.member__photo {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-warm);
  aspect-ratio: 3 / 4;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.25rem; margin: 0 0 2px; }
.member__role {
  font-size: 13px;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.member p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* === FAQ === */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 56px 24px 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  background: transparent;
  border: 0;
  position: relative;
  cursor: pointer;
  display: block;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent-deep);
  font-weight: 300;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}
.faq-item.is-open .faq-a { max-height: 600px; }
.faq-a > div {
  padding: 0 0 28px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 64ch;
}

/* === Pricing table === */
.pricing-table {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}
.pricing-table th, .pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.pricing-table th {
  background: var(--bg-warm);
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table .price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--brand);
  white-space: nowrap;
}

/* === Form === */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}
.form input[type=text],
.form input[type=email],
.form input[type=tel],
.form textarea {
  width: 100%;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--transition);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form textarea { min-height: 120px; resize: vertical; }
.form label.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form .consent input { margin-top: 3px; }
.form button[type=submit] { align-self: flex-start; }
.form-status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  display: none;
}
.form-status.is-ok { display: block; background: rgba(45, 63, 45, 0.08); color: var(--brand); }
.form-status.is-err { display: block; background: rgba(168, 60, 50, 0.08); color: #A83C32; }

/* === Stats band === */
.stats-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}
@media (min-width: 600px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }

.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw + 1rem, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.85;
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--text-light);
  margin-left: 8px;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs li:last-child { color: var(--text); }

/* === Page heros (inner pages) === */
.page-hero {
  padding: 32px 0 56px;
}
@media (min-width: 768px) { .page-hero { padding: 48px 0 80px; } }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .lede { margin-bottom: 0; }

/* === CTA strip === */
.cta-strip {
  padding: 80px 0;
  background: var(--brand);
  color: var(--bg);
}
.cta-strip h2 { color: var(--bg); }
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .cta-strip__inner { grid-template-columns: 1fr auto; gap: 48px; }
}
.cta-strip h2 { margin: 0 0 12px; }
.cta-strip p {
  margin: 0;
  color: rgba(250, 247, 242, 0.78);
  font-size: 17px;
}

/* === Two-column text === */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* === Inline-info list (used on contacto, gracias) === */
.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  padding: 0;
}
@media (min-width: 720px) { .info-list { grid-template-columns: repeat(3, 1fr); } }

.info-list li {
  background: var(--bg-warm);
  padding: 28px 24px;
  border-radius: var(--r-md);
  margin: 0;
}
.info-list h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.info-list a, .info-list p {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  margin: 0;
  line-height: 1.3;
}
.info-list a:hover { color: var(--brand); }

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
