/* ============================================
   Reforma & Estilo - Custom Styles
   Paleta: #2F2F2F, #F8F6F2, #4A7043, #D97706
   ============================================ */

:root {
  --color-dark: #2F2F2F;
  --color-cream: #F8F6F2;
  --color-green: #4A7043;
  --color-accent: #D97706;
  --color-accent-hover: #B85C04;
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s ease;
  --shadow-soft: 0 4px 20px rgba(47, 47, 47, 0.08);
  --shadow-hover: 0 8px 30px rgba(47, 47, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.playfair { font-family: var(--font-heading) !important; }

/* Top Bar */
.top-bar {
  background: var(--color-dark);
  font-size: 0.85rem;
}

.top-bar a:hover { opacity: 0.9; }

/* Navbar */
.navbar {
  background: rgba(47, 47, 47, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-cream) !important;
}

.nav-link {
  color: rgba(248, 246, 242, 0.9) !important;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-accent) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-hover);
  border-radius: 8px;
}

.dropdown-item:hover {
  background: rgba(74, 112, 67, 0.1);
  color: var(--color-green);
}

/* Botones CTA */
.btn-cta {
  background: var(--color-accent);
  color: white !important;
  font-weight: 600;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-cta:hover {
  background: var(--color-accent-hover);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.btn-cta-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 600;
}

.btn-cta-outline:hover {
  background: var(--color-accent);
  color: white !important;
}

.text-accent { color: var(--color-accent) !important; }
.text-green { color: var(--color-green) !important; }
.bg-cream { background-color: var(--color-cream); }
.bg-dark { background-color: var(--color-dark); }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-green { background-color: var(--color-green) !important; }

/* Hero Section */
.hero-section {
  min-height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, #3d3d3d 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1920') center/cover;
  opacity: 0.35;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47,47,47,0.92) 0%, rgba(47,47,47,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(74, 112, 67, 0.9);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Cards */
.card-reforma {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.card-reforma:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-reforma .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.card-reforma:hover .card-img-top {
  transform: scale(1.05);
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 112, 67, 0.15);
  color: var(--color-green);
  border-radius: 12px;
  font-size: 1.5rem;
}

/* Ventajas / Trust badges */
.trust-badge {
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.trust-badge:hover {
  transform: translateY(-3px);
}

.trust-badge i {
  font-size: 2.5rem;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

/* Antes/Después */
.before-after-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.before-after-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* Testimonios */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* Formularios */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: white;
}

.footer-brand {
  font-family: var(--font-heading);
  color: var(--color-cream);
}

.footer a:hover { color: var(--color-accent) !important; }

.footer-bottom {
  background: rgba(0,0,0,0.2);
}

/* WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white !important;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--color-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Proceso / Timeline */
.process-step {
  position: relative;
  padding-left: 3rem;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -20px;
  width: 2px;
  background: rgba(74, 112, 67, 0.3);
}

.process-step:last-child::before { display: none; }

.process-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--color-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Accordion servicios */
.accordion-button {
  font-weight: 600;
  background: white !important;
}

.accordion-button:not(.collapsed) {
  color: var(--color-accent);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

/* Proyectos grid */
.project-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.project-card img {
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47,47,47,0.9) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Blog cards */
.blog-card {
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

/* Lazy loading */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img.loaded {
  opacity: 1;
}

/* Section spacing */
.section-py { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem;
}
