/* ===== NOGUERAS HOME IMPROVEMENT - WHITE + RED DESIGN SYSTEM ===== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette - RED */
  --primary: #d32f2f;
  --primary-light: #e53935;
  --primary-dark: #b71c1c;
  --primary-rgb: 211, 47, 47;

  /* Light Palette */
  --white: #ffffff;
  --light: #f8f9fa;
  --light-2: #f0f2f5;
  --light-3: #e8eaed;
  --border-color: #e0e0e0;

  /* Text Colors */
  --text-dark: #111111;
  --text-heading: #222222;
  --text-body: #555555;
  --text-muted: #888888;
  --text-white: #ffffff;

  /* Misc */
  --success: #28a745;
  --overlay-light: rgba(255,255,255,0.95);
  --overlay-dark: rgba(0,0,0,0.6);

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 100px 0;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-red: 0 4px 20px rgba(211, 47, 47, 0.2);
  --card-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

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

ul {
  list-style: none;
}

/* --- Utility --- */
.section-padding {
  padding: var(--section-padding);
}

.red-text {
  color: var(--primary);
}

.gold-text {
  color: var(--primary);
}

.gold-text2 {
  color: white !important;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.section-header .section-subtitle2 {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: var(--text-heading);
}

.section-header p {
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 0 auto 18px;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn-primary-custom {
  background: var(--primary);
  color: var(--text-white) !important;
  border: none;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-slow);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  color: var(--text-white) !important;
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: white;
  padding: 12px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: transparent;
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--text-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* === NAVIGATION === */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  transition: var(--transition-base);
  border-bottom: 1px solid transparent;
  z-index: 1050;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}


.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand img {
  width: 231px; /* tamaño ideal en navbar */
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* 🔽 Opcional: efecto hover */
.navbar-brand img:hover {
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .navbar-brand img {
    width:  160px;
  }
}



.navbar.scrolled .navbar-brand img {
  width: 202px;
}


.nav-link {
  color: var(--text-body) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 18px !important;
  position: relative;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

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

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

.navbar-toggler {
  border: 1px solid var(--primary);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(211, 47, 47, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'%3e%3c/path%3e%3c/svg%3e");
}

.dropdown-menu {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}

.dropdown-item {
  color: var(--text-body);
  padding: 10px 20px;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(211, 47, 47, 0.08);
  color: var(--primary);
}

.dropdown-item.active {
  background: rgba(211, 47, 47, 0.08);
  color: var(--primary);
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 61px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(211, 47, 47, 0.15);
  border: 1px solid rgba(211, 47, 47, 0.4);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.hero-title .highlight {
  color: var(--primary-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stat-bar {
  position: relative;
  z-index: 2;
  margin-top: 60px;
}

.hero-stat-item {
  text-align: center;
  padding: 20px;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* === ABOUT SECTION / PAGE === */
.about-section {
  background: var(--light);
}

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image-wrapper img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--primary);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-red);
}

.about-experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge .text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.about-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-body);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-features {
  margin-top: 30px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.about-feature-text h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-heading);
}

.about-feature-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* === SERVICES === */
.services-section {
  background: var(--white);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
  box-shadow: var(--card-shadow);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(211, 47, 47, 0.3);
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.12);
}

.service-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-img .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.service-card-body {
  padding: 28px;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.service-card-body h4 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.service-card-body p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.service-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-base);
}

.service-card-link:hover {
  gap: 14px;
  color: var(--primary-dark);
}

/* === TESTIMONIALS === */
.testimonials-section {
  background: #e8dede;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 36px;
  transition: var(--transition-base);
  height: 100%;
  position: relative;
  box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
  border-color: rgba(211, 47, 47, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.1);
}

.testimonial-stars {
  color: #f9a825;
  font-size: 1rem;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 1.02rem;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
}

.testimonial-author-info h6 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-heading);
}

.testimonial-author-info small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.testimonial-quote-icon {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: rgba(211, 47, 47, 0.1);
}

/* === CTA SECTION === */
.cta-section {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cta-section h2 {
  font-size: 2.4rem;
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-section .btn-dark-custom {
  background: var(--text-white);
  color: var(--primary) !important;
  padding: 14px 36px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  transition: var(--transition-base);
  display: inline-block;
}

.cta-section .btn-dark-custom:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* === GALLERY === */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(211, 47, 47, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: var(--text-white);
}

/* === LIGHTBOX === */
.lightbox-modal .modal-content {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.lightbox-modal .modal-body {
  padding: 0;
}

.lightbox-modal .modal-body img {
  border-radius: 14px;
  width: 100%;
}

.lightbox-modal .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  opacity: 0.8;
}

/* === CONTACT === */
.contact-section {
  background: var(--light);
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 36px;
  height: 100%;
  box-shadow: var(--card-shadow);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-info-text h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-heading);
}

.contact-info-text p,
.contact-info-text a {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-info-text a:hover {
  color: var(--primary);
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--card-shadow);
}

.contact-form .form-control,
.contact-form .form-control:focus {
  background: var(--light);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.contact-form .form-control::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.map-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 30px;
  box-shadow: var(--card-shadow);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* === PAGE HEADERS === */
/* ===== PAGE HEADER BANNER ===== */
.page-header {
  position: relative;
  padding: 229px 0 100px;
  overflow: hidden;
  color: #fff;
}

/* 🖼️ IMAGEN DE FONDO */
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05); /* leve zoom premium */
}

/* 🔳 OVERLAY OSCURO (CLAVE PARA TEXTO) */
.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.55)
  );
}

/* CONTENIDO ENCIMA */
.page-header .container {
  position: relative;
  z-index: 2;
}

/* ===== TEXTOS ===== */
.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #fff;
}

/* BREADCRUMB */
.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.page-header .breadcrumb-item {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item a {
  color: #ff4d4d; /* rojo */
}

.page-header .breadcrumb-item.active {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: rgba(255,255,255,0.6);
}

/* === SERVICE DETAIL PAGE === */
.service-detail-section {
  background: var(--white);
}

.service-detail-img {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
}

.service-detail-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 14px;
}

.service-detail-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.service-detail-content p {
  color: var(--text-body);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.benefits-list {
  margin: 30px 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: var(--transition-base);
}

.benefit-item:hover {
  border-color: rgba(211, 47, 47, 0.3);
  box-shadow: 0 2px 12px rgba(211, 47, 47, 0.08);
}

.benefit-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.benefit-item span {
  color: var(--text-body);
  font-size: 0.95rem;
}

.service-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.sidebar-card h4 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-heading);
}

.sidebar-service-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-body);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.sidebar-service-link:hover,
.sidebar-service-link.active {
  background: rgba(211, 47, 47, 0.08);
  color: var(--primary);
  padding-left: 22px;
}

.sidebar-cta {
  background: var(--primary);
  border: none;
  text-align: center;
}

.sidebar-cta h4 {
  color: var(--text-white);
  border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.sidebar-cta .phone-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  display: block;
  margin-bottom: 20px;
}

.sidebar-cta .btn-dark-custom {
  background: var(--text-white);
  color: var(--primary) !important;
}

/* === FOOTER === */
.footer {
  background: var(--text-heading);
  border-top: 3px solid var(--primary);
}

.footer-main {
  padding: 80px 0 40px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand h4 span {
  color: var(--primary-light);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer h5 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.93rem;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  color: var(--primary-light);
  margin-top: 4px;
  font-size: 0.95rem;
}

.footer-contact-item p,
.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  font-size: 0.93rem;
  margin-bottom: 0;
}

.footer-contact-item a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ===== FLOAT BUTTONS ===== */
.nogueras-float-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

/* BOTONES */
.nogueras-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* EFECTO HOVER */
.nogueras-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* COLORES */
.nogueras-whatsapp {
  background: #25D366;
}

.nogueras-phone {
  background: #d32f2f; /* rojo branding */
}

.nogueras-facebook {
  background: #1877F2;
}

/* EFECTO GLOW */
.nogueras-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transition: 0.3s;
}

.nogueras-btn:hover::before {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nogueras-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .nogueras-float-buttons {
    bottom: 20px;
    right: 15px;
  }
}






/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 1040;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

/* === ANIMATIONS === */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
  .hero-title { font-size: 2.8rem; }
  .section-header h2 { font-size: 2rem; }
  .page-header h1 { font-size: 2.2rem; }
  .navbar-collapse {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-padding { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: 1.8rem; }
  .cta-section h2 { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .floating-buttons { bottom: 20px; right: 20px; }
  .floating-btn { width: 48px; height: 48px; font-size: 1.1rem; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.9rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === HOURS TABLE === */
.hours-table { width: 100%; }
.hours-table tr td { padding: 6px 0; color: var(--text-body); font-size: 0.93rem; }
.hours-table tr td:first-child { font-weight: 500; color: var(--text-heading); }
.footer .hours-table tr td { color: rgba(255,255,255,0.6); }
.footer .hours-table tr td:first-child { color: rgba(255,255,255,0.8); }

/* ============================================
   HOMEPAGE ADDITIONAL SECTIONS
   ============================================ */

/* === QUICK CONTACT STRIP === */
.quick-contact-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.quick-contact-strip .contact-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 8px 0;
}

.quick-contact-strip .strip-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

.quick-contact-strip .strip-text h6 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.quick-contact-strip .strip-text p,
.quick-contact-strip .strip-text a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0;
}

.quick-contact-strip .strip-text a:hover {
  color: var(--primary);
}

/* === WHY CHOOSE US === */
/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
  position: relative;
  overflow: hidden;
}

/* 🔳 OVERLAY BLANCO (CLAVE) */
.why-choose-section::before {
  content: "";
  position: absolute;
  inset: 0;
background: rgb(35 34 34 / 22%);
  z-index: 0;
}

/* 🔴 DETALLE DECORATIVO */
.why-choose-section::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(211,47,47,0.08), transparent 70%);
  z-index: 0;
}

/* CONTENIDO ENCIMA */
.why-choose-section .container {
  position: relative;
  z-index: 2;
}

/* ===== CARDS ===== */
.why-choose-card {
 background: #fefefe91;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 34px 28px;
  text-align: center;
  transition: 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  backdrop-filter: blur(4px);
}

/* línea superior */
.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #d32f2f;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.why-choose-card:hover::before {
  transform: scaleX(1);
}

/* hover */
.why-choose-card:hover {
  transform: translateY(-6px);
  border-color: rgba(211, 47, 47, 0.3);
  box-shadow: 0 15px 40px rgba(211, 47, 47, 0.15);
}

/* ===== ICONOS ===== */
.why-choose-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: #d32f2f;
  transition: 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
  background: #d32f2f;
  color: #fff;
  border-color: #d32f2f;
}

/* ===== TEXTOS ===== */
.why-choose-card h5 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.why-choose-card p {
  color: #0d0c0c;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.7;
}


/* === OUR PROCESS === */
.process-section {
  background: var(--white);
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 20px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 60px;
  right: 60px;
  height: 3px;
  background: var(--border-color);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 10px;
}

.process-step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-base);
  position: relative;
  box-shadow: var(--card-shadow);
}

.process-step-number .step-num {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-number i {
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition-base);
}

.process-step:hover .process-step-number {
  border-color: var(--primary);
  background: rgba(211, 47, 47, 0.04);
  transform: scale(1.05);
}

.process-step h5 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.process-step p {
  color: var(--text-body);
  font-size: 0.88rem;
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .process-timeline { flex-direction: column; gap: 30px; }
  .process-timeline::before { top:0; bottom:0; left:48px; right:auto; width:3px; height:100%; }
  .process-step { display:flex; align-items:center; gap:20px; text-align:left; }
  .process-step-number { min-width:80px; width:80px; height:80px; margin:0; }
  .process-step p { max-width:100%; margin:0; }
}

/* === MID-PAGE CTA BANNER === */
.mid-cta-banner {
  position: relative;
  padding: 149px 0;
  overflow: hidden;
}

.mid-cta-banner .cta-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  z-index: 0;

  will-change: transform; /* 🔥 mejora rendimiento */
}

.mid-cta-banner .cta-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.55));
}

.mid-cta-banner .container { position: relative; z-index: 1; }
.mid-cta-banner h2 { font-size: 2.8rem; margin-bottom: 18px; color: #fff; }
.mid-cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin-bottom: 30px; }
.mid-cta-banner .gold-line { margin: 0 0 20px; }

/* === FEATURED PROJECTS === */
.featured-projects-section {
  background: var(--light);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
}

.featured-grid .featured-item:first-child {
  grid-row: 1 / 3;
  grid-column: 1;
}

.featured-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-item:hover img { transform: scale(1.06); }

.featured-item .featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
}

.featured-item:hover .featured-overlay { opacity: 1; transform: translateY(0); }

.featured-overlay h5 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #fff; }
.featured-overlay span { color: var(--primary-light); font-size: 0.83rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 767.98px) {
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .featured-grid .featured-item:first-child { grid-row: auto; grid-column: 1 / 3; height: 280px; }
  .featured-grid .featured-item { height: 200px; }
}

@media (max-width: 575.98px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .featured-item:first-child { grid-column: 1; }
  .featured-grid .featured-item { height: 240px; }
}

/* === TRUST / STATS SECTION === */
.trust-stats-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.stat-counter-card {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.stat-counter-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(211, 47, 47, 0.08);
  border: 2px solid rgba(211, 47, 47, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition-base);
}

.stat-counter-card:hover .stat-counter-icon {
  transform: scale(1.1);
  background: rgba(211, 47, 47, 0.12);
  border-color: var(--primary);
}

.stat-counter-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-counter-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* === FAQ SECTION === */
.faq-section {
  background: var(--light);
}

.faq-section .accordion-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.faq-section .accordion-button {
  background: var(--white);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 20px 24px;
  border: none;
  box-shadow: none;
  transition: var(--transition-base);
}

.faq-section .accordion-button:not(.collapsed) {
  background: rgba(211, 47, 47, 0.04);
  color: var(--primary);
  box-shadow: none;
}

.faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d32f2f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  filter: none;
}

.faq-section .accordion-button:focus { box-shadow: none; border-color: transparent; }

.faq-section .accordion-body {
  background: var(--white);
  color: var(--text-body);
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid var(--border-color);
}

/* === SERVICE AREA === */
.service-area-section {
  background: var(--white);
  position: relative;
}

.area-tag {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition-base);
  margin: 6px;
}

.area-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(211, 47, 47, 0.04);
  transform: translateY(-2px);
}

.area-tag i {
  color: var(--primary);
  margin-right: 6px;
}

.service-area-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.service-area-map iframe {
  width: 100%;
  height: 340px;
  border: none;
}

@media (max-width: 991.98px) {
  .mid-cta-banner h2 { font-size: 2rem; }
}

@media (max-width: 767.98px) {
  .mid-cta-banner { padding: 70px 0; }
  .mid-cta-banner h2 { font-size: 1.8rem; }
  .stat-counter-number { font-size: 2.4rem; }
  .quick-contact-strip .contact-strip-item { justify-content: flex-start; }
}






/*   Diseño Gallery */

/* CONTENEDOR */
.gallery-container{
    max-width:1200px;
    margin:auto;
    padding:80px 20px;
}

.title{
    text-align:center;
    color:#d4af37;
    font-size:42px;
    margin-bottom:50px;
    letter-spacing:2px;
}

/* GRID */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

/* CARD GALERIA */
.gallery-item{
    height:260px;
    overflow:hidden;
    border-radius:16px;
    background:#000;
    cursor:pointer;
    position:relative;
    transition:all .4s ease;
}

/* CAPA HOVER */

/* BORDE DORADO SUAVE */


.gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease, filter .4s ease;
}



/* PAGINACIÓN */
.pagination{
    text-align:center;
    margin-top:60px;
}

.pagination a{
    display:inline-block;
    margin:6px;
    padding:10px 18px;
    background:#111;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    transition:.3s;
}

.pagination a:hover,
.pagination a.active{
    background:red;
    color:#000;
}

/* LIGHTBOX */


/* LIGHTBOX UNICO */
.mf-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:.35s ease;
    z-index:99999;
}

.mf-lightbox.active{
    opacity:1;
    visibility:visible;
}

.mf-lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:12px;
    box-shadow:0 0 40px rgba(0,0,0,.8);
    animation:zoomIn .35s ease;
}

@keyframes zoomIn{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}