:root {
  --green-dark: #063b2a;
  --green: #0f6b4d;
  --green-light: #eaf5f0;
  --gold: #d4af37;
  --white: #ffffff;
  --text: #202725;
  --muted: #68736f;
  --border: rgba(6, 59, 42, 0.14);
  --shadow: 0 18px 45px rgba(6, 59, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f7faf8;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.contact-hero {
  min-height: 520px;
  padding: 150px 20px 90px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(6, 59, 42, 0.82), rgba(6, 59, 42, 0.9)),
    url("../images/fachada-ambato.webp") center/cover no-repeat;
}

.contact-hero__content {
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}

.contact-hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.contact-section,
.message-section,
.map-section {
  padding: 80px clamp(18px, 5vw, 70px);
}

.contact-grid {
  width: min(1180px, 100%);
  margin: -145px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
}

.contact-card {
  min-height: 285px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(6, 59, 42, 0.16);
}

.contact-card--highlight {
  background: var(--green-dark);
  color: var(--white);
}

.contact-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--green-light);
  font-size: 1.65rem;
}

.contact-card--highlight .contact-icon {
  background: rgba(255, 255, 255, 0.12);
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.contact-card p {
  margin: 0 0 24px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-card--highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.card-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-card--highlight .card-button {
  background: var(--gold);
  color: var(--green-dark);
}

.card-button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.message-section {
  background: var(--white);
}

.message-wrapper {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.message-copy h2,
.section-heading h2 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
}

.message-copy p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fbfdfc;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(6, 59, 42, 0.2);
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 107, 77, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  background: var(--green);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.map-section {
  width: min(1250px, 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.map-frame {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 480px;
  display: block;
  border: 0;
}

.site-footer {
  padding: 26px 20px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .message-wrapper {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: 74px;
    height: 74px;
  }

  .back-link {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .contact-hero {
    min-height: 470px;
    padding-top: 130px;
  }

  .contact-section,
  .message-section,
  .map-section {
    padding: 60px 16px;
  }

  .contact-grid {
    margin-top: -110px;
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: auto;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .map-frame iframe {
    height: 390px;
  }
}


/*=============================================
SOCIAL SECTION
=============================================*/
.social-section{padding:70px 20px;background:#fff;}
.social-description{margin-top:15px;color:#666;text-align:center;font-size:1rem;}
.social-grid{margin:40px auto 0;display:grid;grid-template-columns:1fr;gap:20px;max-width:700px;}
.social-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 25px;background:#fff;border-radius:24px;text-decoration:none;color:#063b2a;box-shadow:0 15px 40px rgba(0,0,0,.08);transition:.35s;}
.social-card:hover{transform:translateY(-8px);box-shadow:0 25px 60px rgba(0,0,0,.15);}
.social-card i{font-size:55px;margin-bottom:18px;}
.social-card h3{margin-bottom:10px;font-size:1.4rem;}
.social-card p{color:#666;}
.whatsapp i{color:#25D366;}
.facebook i{color:#1877F2;}
.instagram i{color:#E1306C;}
.google i{color:#DB4437;}
@media(min-width:768px){.social-grid{grid-template-columns:repeat(2,1fr);}}
