/* ============================================
   Tico Remodeling - Estilos
   Paleta: verde marca #4C9A4C / #3E7F3E, acento dorado #F2A900
   ============================================ */

:root {
  --green: #4c9a4c;
  --green-dark: #3a7a3a;
  --green-darker: #2c5f2c;
  --gold: #f2a900;
  --gold-dark: #d99400;
  --text: #2b2b2b;
  --text-light: #5c5c5c;
  --bg-light: #f4f6f2;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.15); }

.btn-accent { background: var(--gold); color: #1f1f1f; }
.btn-accent:hover { background: var(--gold-dark); }

.btn-light { background: #fff; color: var(--green-darker); }
.btn-light:hover { background: #f0f0f0; }

.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--green-dark);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.section-title.left { text-align: left; }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--green);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-img {
  height: 50px; width: auto; display: block;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
}
.logo-footer .logo-img { height: 42px; }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s ease;
}
.phone-link:hover { background: rgba(255,255,255,0.28); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(30,66,30,0.88) 0%, rgba(44,95,44,0.78) 55%, rgba(242,169,0,0.35) 100%),
    url('../assets/hero-work.jpg') center 30% / cover no-repeat;
  z-index: -1;
}
.hero-box {
  max-width: 620px;
  background: rgba(15, 30, 15, 0.42);
  backdrop-filter: blur(2px);
  padding: 42px;
  border-radius: var(--radius);
}
.hero-box h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.hero-box p {
  font-size: 1.05rem;
  margin-bottom: 26px;
  color: #f1f6ef;
}

/* ===== About ===== */
.about { padding: 90px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-graphic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; }
.about-graphic img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.about-content h2 { font-size: 1.9rem; color: var(--green-darker); margin-bottom: 18px; }
.about-content p { color: var(--text-light); margin-bottom: 26px; }
.about-stats { display: flex; gap: 36px; margin-bottom: 30px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 6px; max-width: 120px; }

/* ===== Gallery ===== */
.gallery { padding: 80px 0; background: var(--bg-light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.gallery-item figcaption {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(76,154,76,0.92);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== Services ===== */
.services { padding: 90px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.service-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.15rem; color: var(--green-darker); margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== Testimonios ===== */
.testimonials { padding: 90px 0; background: var(--bg-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card.placeholder { border: 2px dashed #d8d8d8; }
.testimonial-card .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card .quote { color: var(--text-light); font-style: italic; margin-bottom: 18px; font-size: 0.95rem; }
.testimonial-card .author { font-weight: 700; color: var(--green-darker); font-size: 0.9rem; }
.testimonial-card .author span { display: block; font-weight: 400; color: var(--text-light); font-size: 0.82rem; margin-top: 2px; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta h2 { font-size: 1.9rem; margin-bottom: 10px; }
.cta p { margin-bottom: 28px; color: #eafbe6; }

/* ===== Contact ===== */
.contact { padding: 90px 0; background: var(--bg-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info p { color: var(--text-light); margin-bottom: 24px; }
.contact-list { list-style: none; margin-bottom: 26px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
}
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--green-dark); }
.contact-list svg { color: var(--green); flex-shrink: 0; }

.social-links { display: flex; gap: 14px; }
.social-links a {
  padding: 9px 18px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.social-links a:hover { background: var(--green-dark); }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.contact-form-card h3 { color: var(--green-darker); margin-bottom: 20px; }
.contact-form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 14px 0 6px;
}
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,154,76,0.15);
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.form-hint { margin-top: 14px; font-size: 0.8rem; color: var(--text-light); }

/* ===== Footer ===== */
.site-footer { background: var(--green-darker); color: #eafbe6; padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: #cfe8cc; font-size: 0.9rem; }
.footer-col h4 {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p, .footer-col ul { list-style: none; font-size: 0.9rem; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cfe8cc; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #b7d8b3;
}

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 400;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-graphic { max-width: 320px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hamburger { display: flex; }
  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--green-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 300px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .main-nav a { display: block; padding: 14px 0; }

  .hero { min-height: 520px; }
  .hero-box { padding: 26px; }
  .hero-box h1 { font-size: 1.7rem; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; text-align: center; }
}
