/* =========================================
   SMARTCONDO — Global Styles
   ========================================= */

:root {
  --primary: #001F59;
  --accent: #1ED3A8;
  --white: #ffffff;
  --gray-light: rgba(0,0,0,0.08);
  --text: #000000;
  --font-head: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 12px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p { line-height: 1.7; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 40px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

/* =========================================
   BADGE
   ========================================= */
.badge {
  display: inline-block;
  background: rgba(0,0,0,0.1);
  color: var(--text);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-green {
  background: rgba(30,211,168,0.15);
  color: #1ED3A8;
}

.badge-navy {
  background: rgba(0,31,89,0.1);
  color: var(--primary);
  font-weight: 600;
}

.font-normal {
  font-weight: 400;
}

/* =========================================
   HEADER
   ========================================= */
#header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--white);
  color: var(--text);
  transition: box-shadow 0.3s;
}

#header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 3rem;
  max-width: var(--container);
  margin: 0 auto;
}

.logo img {
  height: 80px;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.5rem;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop ul li a {
  font-size: 1rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-desktop ul li.active a,
.nav-desktop ul li a:hover {
  border-bottom-color: var(--text);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  color: var(--text);
  transition: color 0.2s;
}

.social-links a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
}

.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  padding: 1rem 1.5rem;
}

.nav-mobile ul li {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav-mobile ul li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('https://cdn.durable.co/blocks/36NyKT7fH5RZlqmOC8pfCVN2oicZyk41B57spAyyYlSjgoMLU1IHnIfNVeyxo17i.jpg');
  background-size: cover;
  background-position: 25% 15%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,31,89,0.85), rgba(30,211,168,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
  max-width: 760px;
}

.tagline-small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-subtitle {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.hero .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
}

/* =========================================
   SECTION: PLAIN TEXT
   ========================================= */
.section-plain {
  padding: 4rem 1.5rem;
  background-color: #DDDDDD;
  position: relative;
}

@media (min-width: 1024px) {
  .section-plain { padding: 8rem 1.5rem; }
}

.section-plain h2 {
  margin-top: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-plain .badge {
  background-color: rgba(0,0,0,0.1);
  color: #000000;
}

/* Divisor pointDown */
.divider-point-down {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 50vw solid transparent;
  border-right: 50vw solid transparent;
  border-top: 30px solid #DDDDDD;
  z-index: 10;
}

/* =========================================
   SECTION: SERVICES
   ========================================= */
.section-services {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.section-services .container {
  text-align: center;
}

.section-services h2 {
  max-width: 800px;
  margin: 0.5rem auto 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

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

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(11%) sepia(99%) saturate(700%) hue-rotate(200deg) brightness(80%);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--primary);
}

/* =========================================
   SECTION: CTA
   ========================================= */
.section-cta {
  padding: 4rem 1.5rem;
  background: #DDDDDD;
  border-top: 10px solid var(--accent);
}

@media (min-width: 1024px) {
  .section-cta { padding: 8rem 1.5rem; }
}

.section-cta h2 {
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.section-cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.btn-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* =========================================
   SECTION: PARTNERS
   ========================================= */
.section-partners {
  padding: 5rem 1.5rem 4rem;
  background: var(--white);
}

.section-partners .container {
  text-align: center;
}

.partners-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-partners h2 {
  margin-bottom: 0.75rem;
}

.partners-subtitle {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.partner-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border-radius: var(--radius);
}

.partner-card p {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
}

/* =========================================
   SECTION: CONTACT
   ========================================= */
.section-contact {
  padding: 4rem 1.5rem;
  background: var(--white);
}

@media (min-width: 1024px) {
  .section-contact { padding: 8rem 1.5rem; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  max-height: 500px;
}

.contact-form-wrap {
  background: var(--primary);
  padding: 2.5rem;
  border-radius: var(--radius);
  color: var(--white);
}

.contact-form-wrap h3 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.contact-form-wrap > p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
}

.form-field input,
.form-field textarea {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  resize: vertical;
  outline: none;
  transition: background 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-field input:focus,
.form-field textarea:focus {
  background: rgba(255,255,255,0.15);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: space-between;
}

.btn-contact {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.btn-contact:hover {
  background: var(--white);
  border-color: var(--white);
}

.recaptcha-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
  line-height: 1.5;
}

.recaptcha-text a {
  font-weight: bold;
  color: var(--white);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #012251;
  color: var(--white);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo img {
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

/* =========================================
   ANIMATIONS
   ========================================= */
.animate {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.visible {
  opacity: 1;
  transform: scale(1);
}

.animate.delay-1 { transition-delay: 0.1s; }
.animate.delay-2 { transition-delay: 0.2s; }
.animate.delay-3 { transition-delay: 0.3s; }
.animate.delay-4 { transition-delay: 0.4s; }
.animate.delay-5 { transition-delay: 0.5s; }
.animate.delay-6 { transition-delay: 0.6s; }
.animate.delay-7 { transition-delay: 0.7s; }
.animate.delay-8 { transition-delay: 0.8s; }
.animate.delay-9 { transition-delay: 0.9s; }
.animate.delay-10 { transition-delay: 1.0s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .header-inner {
    padding: 1rem 1.5rem;
    grid-template-columns: auto 1fr auto;
  }
  .logo img { height: 60px; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: auto auto; }

  .hero { min-height: 70vh; }
  .hero-content { padding: 3rem 1.5rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-image { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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