/* Morlà Mascaró — Manual de estilo (brief v1.0) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #C8201A;
  --red-dark: #9E1812;
  --carbon:   #1C1A18;
  --cream:    #F7F3EE;
  --copper:   #9B8C7A;
  --white:    #FFFFFF;
  --max-w:    1140px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body.morlamascaro-theme,
body.morlamascaro-theme .site {
  background: var(--cream);
  color: var(--carbon);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

body.morlamascaro-theme .site-content {
  max-width: none;
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--carbon);
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; font-style: italic; }

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream);
  color: var(--red-dark);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(200, 32, 26, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}
.site-logo img {
  height: 64px;
  width: auto;
}
.nav-primary ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}
.nav-primary a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--carbon);
  transition: color 0.2s;
}
.nav-primary a:hover,
.nav-primary .current-menu-item a {
  color: var(--red);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--carbon);
  letter-spacing: 0.04em;
}
.header-phone a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  transition: color 0.2s;
}
.header-phone a:hover {
  color: var(--red);
}
.header-phone__icon {
  flex-shrink: 0;
  color: var(--red);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--carbon);
  transition: all 0.3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-footer {
  background: var(--carbon);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-address {
  font-size: 14px;
  line-height: 1.9;
  font-style: normal;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-red { background: var(--red); }
.section-carbon { background: var(--carbon); }

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header .subtitle {
  color: var(--copper);
  font-size: 17px;
  margin-top: 16px;
  max-width: 560px;
}
.section-header.centered .subtitle { margin: 16px auto 0; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 20px 0;
}
.divider.centered { margin: 20px auto; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  padding: 88px 0 72px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--carbon);
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28, 26, 24, 0.88) 0%,
    rgba(28, 26, 24, 0.72) 55%,
    rgba(28, 26, 24, 0.85) 100%
  );
  z-index: 0;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.page-hero h1 {
  color: var(--white);
  max-width: 640px;
  margin: 0 auto;
}
.page-hero h1 em {
  color: var(--red);
  font-style: italic;
  display: block;
}

.hero {
  background: var(--carbon);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--carbon);
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28, 26, 24, 0.92) 0%,
    rgba(28, 26, 24, 0.65) 55%,
    rgba(28, 26, 24, 0.5) 100%
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 0;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
.hero-logo {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  width: 100%;
}
.hero-logo img {
  display: block;
  max-height: 150px;
  width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.hero-logo::before,
.hero-logo::after {
  content: '';
  height: 1px;
  flex: 1 1 120px;
  background: rgba(255, 255, 255, 0.55);
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em {
  font-style: italic;
  color: var(--red);
  display: block;
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-badge {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 1;
  background: var(--red);
  color: var(--white);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
}
.hero-badge strong { font-size: 28px; font-weight: 700; line-height: 1; }
.hero-badge span { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

.stats-strip {
  background: var(--red);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-item span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(200, 32, 26, 0.12);
  padding: 36px 32px;
  border-radius: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(200, 32, 26, 0.1);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--red);
}
.service-card h3.service-title {
  font-style: normal;
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  color: var(--copper);
  line-height: 1.65;
}

.cta-banner {
  background: var(--carbon);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: 'MM';
  position: absolute;
  right: -40px;
  top: -40px;
  font-family: 'Playfair Display', serif;
  font-size: 240px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.cta-banner h2 { color: var(--white); max-width: 560px; }
.cta-banner h2 em { color: var(--red); font-style: italic; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  background: var(--copper);
}
.about-image-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--red);
  color: var(--white);
  padding: 24px;
  border-radius: 4px;
  text-align: center;
}
.about-image-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}
.about-image-badge span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.value-item {
  border-left: 2px solid var(--red);
  padding-left: 16px;
}
.value-item strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--carbon);
  margin-bottom: 4px;
}
.value-item p {
  font-size: 13px;
  color: var(--copper);
  line-height: 1.6;
}

.services-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-detail-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(200, 32, 26, 0.1);
}
.service-detail-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--cream);
}
.service-detail-body { padding: 28px 28px 32px; }
.service-detail-body h3 { font-style: normal; margin-bottom: 12px; }
.service-detail-body p { font-size: 15px; color: var(--copper); }
.service-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(200, 32, 26, 0.08);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 32, 26, 0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-info-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 16px;
  color: var(--carbon);
  font-weight: 500;
}
.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: 4px;
  border: 1px solid rgba(200, 32, 26, 0.1);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(200, 32, 26, 0.15);
  border-radius: 2px;
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--carbon);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.map-embed {
  border-radius: 4px;
  overflow: hidden;
  height: 280px;
  margin-top: 24px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.home-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.values-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  text-align: center;
  padding: 40px 28px;
}
.value-card h3 {
  font-style: normal;
  font-size: 20px;
  margin-bottom: 12px;
}
.value-card p {
  color: var(--copper);
  font-size: 15px;
}
.value-card svg { margin: 0 auto 20px; display: block; }

.text-muted { color: var(--copper); }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .about-image-badge { right: 0; bottom: -16px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .home-location-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .header-inner { height: 64px; }
  .site-logo img { height: 48px; }
  .nav-primary,
  .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-primary.nav-open {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid rgba(200, 32, 26, 0.15);
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-primary.nav-open ul { flex-direction: column; gap: 16px; }
  .nav-cta.nav-open-cta {
    display: flex;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-top: 1px solid rgba(200, 32, 26, 0.15);
    z-index: 99;
    justify-content: space-between;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .hero-logo { gap: 12px; }
  .hero-logo img { max-height: 110px; padding: 0; }
  .hero-logo::before,
  .hero-logo::after { flex-basis: 48px; }
  .page-hero { padding: 64px 0 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
}
