/* ============================================
   VARIABLES
   ============================================ */
:root {
  --gold:          #b79f50;
  --gold-light:    #c9b778;
  --gold-cream:    #fcf5de;
  --green-wa:      #60d669;
  --bg-light:      #f5f5f5;
  --text-dark:     #1a1a1a;
  --text-mid:      #555;
  --white:         #ffffff;
  --nav-height:    80px;
  --font:          'Montserrat', sans-serif;
  --max-w:         1200px;
  --pad:           1.5rem;
}

/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'Degular';
  src: url('../assets/fonts/DegularDemo-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Degular';
  src: url('../assets/fonts/DegularDemo-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   UTILITY
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-title {
  font-family: 'Degular', var(--font);
  font-size: 1.5625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

.section-title.centered {
  text-align: center;
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/banner lanzetti&asociados.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.70) 40%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero-title {
  font-family: 'Degular', var(--font);
  font-size: clamp(2.4rem, 5.5vw, 3.55rem);
  line-height: 0.83;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.hero-title-white {
  color: var(--gold);
  font-weight: 400;
}

.hero-title-gold {
  color: var(--gold);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 640px;
  margin-bottom: 1rem;
  opacity: 0.96;
}

.hero-text {
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 640px;
  opacity: 0.88;
}

/* ============================================
   SERVICES
   ============================================ */
.services-intro {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  text-align: center;
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.2;
}
.services {
  background: var(--bg-light);
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.service-icon img {
  width: 100%;
  height: 100%;
}

.service-name {
  font-family: 'Degular', var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.service-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.2;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: 5rem 0;
  color: var(--white);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--gold-light), var(--gold));
  z-index: 0;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/call to action.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.1875rem);
  font-weight: 700;
  line-height: 0.91;
  margin-bottom: 1.25rem;
}

.cta-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.cta-subtitle-regular {
  font-weight: 400;
}

.cta-subtitle-bold {
  font-weight: 700;
}

.cta-bold {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.cta-steps {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cta-steps li {
  font-family: 'Nunito', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.2;
}

.cta-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1.75rem;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 400;
  font-family: 'Degular', var(--font);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.25s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn svg {
  flex-shrink: 0;
}

.btn-call {
  background: var(--gold-cream);
  color: var(--text-dark);
}

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 5rem 0 0;
  background: #ebebeb;
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 4px 28px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  margin-bottom: -5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Degular', var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: 'Degular', var(--font);
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  background: #fafafa;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 159, 80, 0.15);
  background: var(--white);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.form-status {
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 1.2rem;
}

.form-status.success {
  color: #2e7d32;
}

.form-status.error {
  color: #c62828;
}

.btn-submit {
  align-self: center;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.75rem;
  border-radius: 20px;
  font-size: 1.375rem;
  font-weight: 500;
  font-family: 'Degular', var(--font);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.25s, transform 0.2s;
}

.btn-submit:hover {
  background: #9e8940;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  padding: 6.5rem 0 2.5rem;
  overflow: hidden;
}

.footer-bg {
  display: none;
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}

.footer-logo img {
  height: 90px;
  width: auto;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Degular', var(--font);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  color: #434343;
}

.footer-info li svg {
  flex-shrink: 0;
  color: var(--gold);
}

.footer-info a {
  color: #434343;
  transition: color 0.25s;
}

.footer-info a:hover {
  color: var(--gold);
}

.footer-map {
  align-self: center;
}

.footer-map iframe {
  display: block;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  color: var(--text-dark);
  transition: border-color 0.25s, color 0.25s;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(0,0,0,0.4);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* ============================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-actions {
    flex-direction: row;
    min-width: unset;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 105;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.5rem;
    color: var(--white);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--gold-light);
  }

  /* Hero */
  .hero-content {
    padding-top: 3rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* CTA */
  .cta-title,
  .cta-bold {
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .footer-info li {
    justify-content: center;
  }

  .footer-social {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (< 480px)
   ============================================ */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn-submit {
    width: 100%;
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.375rem;
  }
}
