/* =========================
   RESET & VARIABLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: hwb(36 0% 1%);
  --dark: #111;
  --gray: #f5f5f5;
  --light: #ffffff;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  margin-top: 70px;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}

.logo img {
  height: 150px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: lab(62.89% 45.87 69.87);
  position: relative;
}

.nav a.active {
  color: var(--accent);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* =========================
   HERO BASE (UNICO)
========================= */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  color: #fff;
}

/* Imagen de fondo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  z-index: 0;
}

/* Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
}

.hero h1 span {
  font-weight: 300;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* =========================
   HERO POR PAGINA
========================= */
.hero-home::before {
  background-image: url("img/centauro.png"), 
  url("img/centauro.png");
  background-size: 30%, 35%;
  background-position: left center, right center;
  background-repeat: no-repeat;
}

.hero-vivienda::before {
  background-image: url("img/logoremodelacionvivienda.png");
  background-size: 60%;
}

.hero-cocina::before {
  background-image: url("img/remodelacion cocina.png");
  background-size: 60%;
}

.hero-bano::before {
  background-image: url("img/Baño.png");
  background-size: 60%;
}

/* =========================
   BOTONES
========================= */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: .3s;
}

.btn.primary {
  background: var(--accent);
  color: #000;
}

.btn.primary:hover {
  background: #ff0202;
}

.btn.secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn.secondary:hover {
  background: #fff;
  color: #000;
}

/* =========================
   SERVICES
========================= */
.services {
  padding: 100px 60px;
  background: var(--gray);
  text-align: center;
}

.services h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-left: 4px solid var(--accent);
}

/* =========================
   GALERIA (MASONRY)
========================= */
.gallery {
  padding: 80px 40px;
}

.masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry a {
  display: block;
  margin-bottom: 1.5rem;
}

.masonry img {
  width: 100%;
  border-radius: 8px;
  transition: transform .3s ease;
}

.masonry img:hover {
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
}
@media (max-width: 500px) {
  .masonry { column-count: 1; }
}

/* =========================
   FOOTER (BASE)
========================= */
.footer {
  background: var(--dark);
  color: #ddd;
  padding: 60px 40px 20px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #777;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* =========================
   REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.portfolio {
  padding: 100px 60px;
  text-align: center;
}

.portfolio h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  margin-bottom: 50px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.project img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover img {
  transform: scale(1.05);
}

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

.cta-final {
  padding: 100px 40px;
  text-align: center;
  background: var(--accent);
  color: #fff;
}

.cta-final h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
}

.cta-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 40px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
/* =========================
   HERO INTERNO
========================= */

.hero-interno {
  position: relative;
  height: 55vh;
  min-height: 360px;
  background-image: url("img/hero-cocina.jpg"); /* SE CAMBIA */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-interno-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-interno-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 20px;
}

.hero-interno h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero-interno p {
  font-size: 18px;
  opacity: 0.9;
}
/* =========================
   GALERÍAS VIVIENDA
========================= */

.galeria-vivienda {
  padding: 80px 40px;
  background: #f5f5f5;
}

.bloque-galeria {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.bloque-galeria h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  margin-bottom: 30px;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.galeria-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.footer {
  background: linear-gradient(145deg, #020617, #0f172a, #020617);
  color: #e5e7eb;
  padding: 70px 20px 25px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 50px;
}

.footer-logo {
  max-width: 190px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: #fbbf24;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col p {
  line-height: 1.7;
  color: #d1d5db;
}

/* SOCIAL ICONS */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fbbf24;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #fbbf24;
  color: #020617;
  transform: translateY(-3px);
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 50px;
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* MOBILE */
@media (max-width: 600px) {
  .footer {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-logo {
    margin: 0 auto 20px;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  animation: fadeUp 1s ease forwards;
}

.whatsapp-float {
  animation: fadeUp 0.8s ease forwards;
}
:root {
  --color-dark: #020617;     /* fondo principal */
  --color-dark-2: #0f172a;   /* variantes */
  --color-accent: #fbbf24;   /* dorado premium */
  --color-text: #e5e7eb;
}

.footer {
  background-color: #222;
  color: #fff;
  font-family: 'Arial', sans-serif;
  padding: 40px 20px 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: #f0a500;
}

/* Contenedor de columnas */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Columnas de texto */
.footer-col {
  flex: 1 1 220px;
  min-width: 220px;
}

/* Logo */
.footer-logo {
  width: 180px;
  margin-bottom: 15px;
}

/* Redes sociales */
.footer-social a {
  margin-right: 10px;
  font-size: 18px;
}

.footer-social a i {
  transition: color 0.3s;
}

.footer-social a:hover i {
  color: #f0a500;
}

/* Listas */
.footer h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding: 15px 0;
  background-color: #111;
  font-size: 14px;
}

/* =========================
   MAPA
========================= */
.footer-map-container {
  width: 10%;
  max-width: 400px;
  height: 200px;
  margin: 1px auto;
  border-radius: 500px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-logo {
    width: 150px;
  }
}


.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}
.galeria-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
