/* ==========================================
   CONSTRUCCIONES ÁNGEL — ALBAÑILERÍA Y REFORMAS
   Global Stylesheet
   ========================================== */

/* ---- CSS Variables ---- */
:root {
  --gold: #C29545;
  --gold-dark: #8c6a31;
  --gold-light: #e0b87b;
  --primary-blue: #002A4D;
  --dark: #0a0b0c;
  --dark-2: #121416;
  --dark-3: #1a1c1e;
  --dark-4: #222528;
  --surface: #1e2124;
  --text: #f0ede8;
  --text-muted: #9a9590;
  --text-dark: #1a1a1a;
  --stone: #f5f0e8;
  --stone-2: #e8e0d0;
  --white: #ffffff;
  --success: #2d6a4f;
  --whatsapp: #25d366;
  --border: rgba(200, 148, 60, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 4px 20px rgba(200, 148, 60, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --nav-h: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1rem;
}

/* ---- Section typography ---- */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.section-desc {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.section-header .section-tag {
  border-left: none;
  border-bottom: 3px solid var(--gold);
  padding: 0 0 8px 0;
}

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(17, 18, 19, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  /* Removed backdrop-filter to prevent creating a containing block for the fixed mobile menu */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1300px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.main-logo {
  height: 60px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
  background: white;
  padding: 4px;
  border-radius: 50%; /* Making it a circular badge since it's a circular logo */
  border: 2px solid var(--gold);
}

#navbar.scrolled .main-logo {
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 6px;
  margin-left: 8px;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.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;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/Portada 3.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(10, 10, 12, 0.90) 0%,
      rgba(10, 10, 12, 0.70) 50%,
      rgba(200, 148, 60, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 148, 60, 0.15);
  border: 1px solid rgba(200, 148, 60, 0.35);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 300;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
  background: var(--gold);
  padding: 0;
}

.stats-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 40px 24px;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-number::before {
  content: attr(data-prefix);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(17, 18, 19, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-sep {
  width: 1px;
  height: 60px;
  background: rgba(17, 18, 19, 0.2);
  flex-shrink: 0;
}

/* ==========================================
   SERVICES
   ========================================== */
.services {
  background: var(--dark-2);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.service-card {
  width: calc(33.333% - 16px);
  background: var(--dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-gold);
  border-color: var(--border);
}

.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.07);
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 18, 19, 0.5), transparent);
}

.service-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 148, 60, 0.12);
  border: 1px solid rgba(200, 148, 60, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.service-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: gap 0.25s, color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover {
  color: var(--gold-light);
  gap: 8px;
}

/* Small cards (no image) */
.service-card--small {
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  gap: 14px;
  min-height: 220px;
  background: var(--dark-3);
}

.service-card--small .service-icon-lg {
  width: 56px;
  height: 56px;
  background: rgba(200, 148, 60, 0.1);
  border: 1px solid rgba(200, 148, 60, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-bottom: 4px;
}

.service-card--small .service-icon-lg svg {
  width: 26px;
  height: 26px;
}

.service-card--small h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.service-card--small p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
  background: var(--dark);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -36px;
  right: -36px;
  width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--dark);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}

.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge-float {
  position: absolute;
  top: 36px;
  left: -28px;
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(200, 148, 60, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.float-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  opacity: 0.8;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.about-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feat-icon {
  width: 28px;
  height: 28px;
  background: rgba(200, 148, 60, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-features strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.about-features p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   PORTFOLIO
   ========================================== */
.portfolio {
  background: var(--dark-2);
}

.portfolio-blocks {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.portfolio-block-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.portfolio-item--tall {
  grid-row: span 2;
}

.portfolio-item--wide {
  grid-column: span 2;
}

.portfolio-item--full {
  grid-column: span 3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: high-quality;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.portfolio-overlay h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
}

.portfolio-overlay p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}



/* ==========================================
   PROCESS
   ========================================== */
.process {
  background: var(--dark);
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 32px 24px;
  background: var(--dark-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.process-step:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.process-step:hover .step-num {
  opacity: 1;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.step-content p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.process-connector {
  flex-shrink: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--border), rgba(200, 148, 60, 0.1));
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  background: var(--dark-2);
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonials-slider {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-grow: 1;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background-color 0.25s, transform 0.25s;
  cursor: pointer;
}

.slider-btn:hover {
  background-color: var(--gold-light);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .slider-btn { width: 36px; height: 36px; }
  .slider-wrapper { gap: 10px; }
}

.testimonial-card {
  background-color: #1e1e1e;
  /* El gris oscuro */
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: 85vw;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.testimonial-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stars {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.test-text {
  margin-bottom: 25px;
  color: #ccc;
  line-height: 1.6;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.test-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--white);
}

.test-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  max-width: 400px;
  margin: 0 auto;
  margin-top: 60px;
}

.google-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.google-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.google-stars {
  color: #FBBC05;
  font-size: 1rem;
  letter-spacing: 2px;
}

.google-info strong {
  font-size: 1.3rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
}

.google-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   CTA BANNER
   ========================================== */
.cta-banner {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  background-image: url('images/reformas.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 12, 0.9) 0%, rgba(200, 148, 60, 0.25) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
  background: var(--dark);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info>p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
  color: var(--text);
}

.contact-card:hover {
  border-color: var(--border);
  transform: translateX(6px);
  box-shadow: var(--shadow-gold);
}

.contact-card--whatsapp:hover {
  border-color: var(--whatsapp);
}

.contact-card--whatsapp .contact-card-icon {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 148, 60, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-card strong {
  font-size: 0.95rem;
  color: var(--white);
}

/* -- Form -- */
.contact-form-wrap {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--dark-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 13px 16px;
  font-size: 0.93rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(154, 149, 144, 0.5);
}

.form-group select option {
  background: var(--dark-4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 148, 60, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.form-success {
  display: none;
  text-align: center;
  margin-top: 20px;
  padding: 16px;
  background: rgba(45, 106, 79, 0.15);
  border: 1px solid rgba(45, 106, 79, 0.3);
  border-radius: var(--radius-sm);
  color: #a7f3d0;
  font-size: 0.95rem;
  font-weight: 600;
  animation: slideUpFade 0.4s ease forwards;
}

.form-error {
  display: none;
  text-align: center;
  margin-top: 20px;
  padding: 16px;
  background: rgba(224, 82, 82, 0.15);
  border: 1px solid rgba(224, 82, 82, 0.3);
  border-radius: var(--radius-sm);
  color: #fecaca;
  font-size: 0.95rem;
  font-weight: 600;
  animation: slideUpFade 0.4s ease forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-light);
}

.footer-top {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand>p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--gold);
  background: rgba(200, 148, 60, 0.1);
  color: var(--gold);
}

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links-col a {
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-links-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   FLOATING BUTTONS
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  color: white;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  box-shadow: var(--shadow);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline;
  }
}

@media (max-width: 1100px) {
  .service-card {
    width: calc(50% - 12px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-img-accent {
    display: none;
  }

  .about-badge-float {
    left: auto;
    right: 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item--wide {
    grid-column: span 1;
  }

  .portfolio-item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 70px;
  }

  .section {
    padding: 70px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(17, 18, 19, 0.98);
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.4rem;
    padding: 14px 28px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .stats-container {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-sep {
    display: none;
  }

  .stat-item {
    flex: 1 0 40%;
  }

  .service-card {
    width: 100%;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
  }

  .process-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--border), transparent);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner {
    background-attachment: scroll;
  }

  /* Hero mejorado en móvil */
  .hero {
    min-height: 100svh;
  }

  .hero-bg {
    background-attachment: scroll; /* fixed no funciona bien en iOS */
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 14px;
  }

  /* Botones hero apilados */
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Tarjetas de contacto en columna */
  .contact-cards {
    grid-template-columns: 1fr;
  }

  /* Testimonios: ancho mínimo menor */
  .testimonial-card {
    min-width: 280px;
  }

  /* Portfolio: 1 columna */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .portfolio-item--wide,
  .portfolio-item--tall,
  .portfolio-item--full {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* About badge */
  .about-badge-float {
    display: none;
  }

  /* Sección de proceso */
  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .google-badge {
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    margin-top: 40px;
  }

  .google-info {
    align-items: center;
    text-align: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .habitissimo-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
    box-sizing: border-box;
  }

  .hb-float-icon {
    width: 26px;
    height: 26px;
  }

  .whatsapp-tooltip,
  .habitissimo-tooltip {
    display: none !important;
  }

  .habitissimo-widget-external-container {
    overflow-x: auto;
    max-width: 100vw;
  }
}

/* Extra pequeño: móviles de menos de 400px */
@media (max-width: 400px) {
  .nav-container {
    padding: 0 16px;
  }

  .main-logo {
    height: 44px;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .logo-sub {
    font-size: 0.6rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .stat-item {
    flex: 1 0 100%;
  }

  .contact-card {
    padding: 16px;
  }

  .testimonial-card {
    min-width: 240px;
    padding: 24px 18px;
  }
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  image-rendering: high-quality;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--white);
  font-size: 44px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--gold);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 110px;
  width: auto;
  background: white;
  padding: 8px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
  transition: var(--transition);
}

.footer-logo-img:hover {
  transform: scale(1.05);
  border-color: var(--primary-blue);
}

.nav-cta:hover {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
}

.btn-primary:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

/* ==========================================
   HABITISSIMO ELEMENTS
   ========================================== */

.habitissimo-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  border: 1.5px solid var(--gold);
  cursor: pointer;
}

.hb-float-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #1d4d77 50%, #e03e3e 50%);
  border-radius: 50%;
  position: relative;
}

.hb-float-icon::before {
  content: 'h';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  color: white;
  font-weight: 900;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}

.habitissimo-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.habitissimo-tooltip {
  position: absolute;
  left: 68px;
  background: var(--dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  box-shadow: var(--shadow);
}

.habitissimo-float:hover .habitissimo-tooltip {
  opacity: 1;
}

/* Habitissimo Seal (Trust Element) */
.habitissimo-seal {
  display: block;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  text-align: center;
  max-width: 170px;
  margin-top: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.habitissimo-seal:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.seal-header {
  color: #0077c8;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.seal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.logo-h {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1d4d77;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(to right, #1d4d77 50%, #e03e3e 50%);
  border-radius: 50%;
  margin-top: 2px;
}

.seal-footer {
  color: #777;
  font-size: 0.65rem;
  line-height: 1.2;
}

.seal-footer strong {
  display: block;
  color: #444;
}

/* Habitissimo Widget Section */
.habitissimo-widget-section {
  background: var(--dark-3);
  padding-bottom: 80px;
}
