/* ===================================================
   ConstructoraPyB – styles.css
   =================================================== */

/* ---------- Variables ---------- */
:root {
  --accent: #f0a500;
  --accent-dark: #c88400;
  --dark: #0f1923;
  --dark2: #162130;
  --light: #f8f9fa;
  --text: #2d3748;
  --muted: #6b7280;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
  --transition: all 0.3s ease;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
}

.fw-900 { font-weight: 900 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-600 { font-weight: 600 !important; }

.py-6 { padding-top: 80px; padding-bottom: 80px; }

/* ---------- Colors ---------- */
.text-accent { color: var(--accent) !important; }
.text-muted-light { color: rgba(255,255,255,0.65) !important; }

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(240,165,0,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,165,0,0.4);
}

.badge-accent {
  background: rgba(240,165,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(240,165,0,0.25);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* ---------- Navbar ---------- */
#mainNav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 18px 0;
}
#mainNav.scrolled {
  background: var(--dark) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  padding: 10px 0;
}
.navbar-brand .brand-icon { color: var(--accent); font-size: 1.5rem; margin-right: 6px; }
.navbar-brand .brand-text { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.25rem; color: #fff; letter-spacing: -0.5px; }
.navbar .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 600; font-size: 0.9rem; transition: color 0.2s; letter-spacing: 0.3px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent) !important; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1480074568708-e7b720bb3f09?w=1600&q=85') center center / cover no-repeat;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,25,35,0.88) 0%, rgba(15,25,35,0.55) 100%);
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.7;
}
.hero-stats { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 28px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 2rem; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Section ---------- */
.section-light { background: #fff; }
.section-dark { background: var(--dark); }

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ---------- Nosotros ---------- */
.about-img-wrap { position: relative; }
.about-img-bg {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80%;
  height: 80%;
  background: var(--accent);
  border-radius: var(--radius);
  opacity: 0.12;
  z-index: 0;
}
.about-img {
  position: relative; z-index: 1;
  width: 100%;
}
.about-badge {
  position: absolute;
  bottom: 24px; left: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.feature-card {
  background: var(--light);
  border: 1px solid #e9ecef;
  transition: var(--transition);
}
.feature-card:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ---------- Models ---------- */
.model-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.model-card--featured {
  border: 2px solid var(--accent);
}
.model-img-wrap { position: relative; overflow: hidden; }
.model-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.4s ease;
}
.model-card:hover .model-img { transform: scale(1.06); }
.model-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.model-badge.featured { background: var(--accent); color: #fff; }
.model-badge.premium { background: #7c3aed; }
.model-body { padding: 24px; background: #fff; }
.model-specs li { padding: 4px 0; font-size: 0.88rem; color: var(--muted); }
.price-from { font-size: 0.75rem; color: var(--muted); display: block; }
.price { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.2rem; color: var(--dark); }

/* ---------- Process ---------- */
.process-card {
  padding: 36px 24px;
  background: var(--light);
  border-radius: var(--radius);
  border: 1px solid #e9ecef;
  position: relative;
  transition: var(--transition);
}
.process-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.process-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: rgba(240,165,0,0.1);
  position: absolute;
  top: 8px; right: 16px;
  line-height: 1;
}
.process-icon { font-size: 2.2rem; }

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  cursor: pointer;
}
.gallery-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(240,165,0,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-size: 2rem; color: #fff;
}
.gallery-item:hover .gallery-img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #e9ecef;
  transition: var(--transition);
  height: 100%;
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(240,165,0,0.08);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(240,165,0,0.06);
}
.cta-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-subtitle { font-size: 1.1rem; opacity: 0.85; }

/* ---------- Contact ---------- */
.contact-icon {
  width: 46px; height: 46px;
  background: rgba(240,165,0,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-form-card {
  background: var(--light);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.form-control, .form-select {
  border-radius: 8px;
  border-color: #dee2e6;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
}
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--light);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid #dee2e6;
}
.social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-brand { display: flex; align-items: center; }
.footer-links { }
.footer-links li, .footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  display: block;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255,255,255,0.08); }

/* ---------- Whatsapp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}
.whatsapp-float:hover {
  background: #1da851;
  color: #fff;
  transform: scale(1.1);
  animation: none;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* ---------- Back to top ---------- */
.btn-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(240,165,0,0.35);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
}
.btn-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.btn-top:hover { background: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-title { font-size: 2.4rem; }
  .about-badge { left: 0; bottom: -16px; }
  .py-6 { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 767px) {
  .hero { min-height: 90vh; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.6rem; }
  .about-badge { position: static; margin-top: 16px; display: inline-flex !important; }
  .section-title { font-size: 1.8rem; }
}
