* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0B0F14;
  color: #F5F7FA;
  line-height: 1.7;
}

/* NAV */
.nav {
  position: relative;
  z-index: 2;
  padding: 30px 60px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 60px;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 3.2rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 600px;
}

/* INTRO */
.intro {
  padding: 80px 60px;
  max-width: 900px;
}

.intro p {
  font-size: 1.05rem;
  color: #d1d5db;
}

/* SERVICES */
.services {
  background-color: #1A1F26;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.service h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service p {
  color: #d1d5db;
  font-size: 0.95rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px;
  font-size: 0.85rem;
  color: #9ca3af;
}
/* =========================
   PROYECTOS PREMIUM DIAMANTI
========================= */

.projects {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.projects-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.projects h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #111;
  margin-bottom: 10px;
}

.projects-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #666;
  margin-bottom: 50px;
}

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

/* CARD PREMIUM */
.project-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 28px;
  text-align: left;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* línea dorada sutil */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #d4b36a;
  opacity: 0.6;
}

/* badge */
.project-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

/* título */
.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 10px;
  color: #111;
}

/* texto */
.project-card p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* link */
.project-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.project-link:hover {
  border-bottom: 1px solid #d4b36a;
  color: #d4b36a;
}

/* hover premium */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}
.project-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  transition: all 0.35s ease;
  position: relative;
}

/* IMAGEN */
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* contenido interno */
.project-card h3,
.project-card p,
.project-badge,
.project-link {
  padding: 0 20px;
}

.project-badge {
  display: inline-block;
  margin-top: 15px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
}

/* texto */
.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  color: #111;
}

.project-card p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* link */
.project-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  margin-bottom: 20px;
  transition: 0.3s;
}

.project-link:hover {
  color: #d4b36a;
}

/* hover premium */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}
/* =========================
   PÁGINA PROYECTO INDIVIDUAL
========================= */

.project-hero {
  padding: 80px 20px 40px;
  text-align: center;
  background: #040404;
}

.project-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 10px;
}

.project-hero p {
  font-family: 'Inter', sans-serif;
  color: #666;
  font-size: 16px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #111;
  font-family: 'Inter', sans-serif;
}

.project-gallery {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.project-gallery img {
  width: 100%;
  object-fit: cover;
  height: 500px;
}

.project-info {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project-info h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.project-info p,
.project-info li {
  font-family: 'Inter', sans-serif;
  color: #555;
  line-height: 1.6;
}
/* =========================
   NIVEL INVERSIONISTA
========================= */

.inv-header {
  padding: 70px 20px 30px;
  text-align: center;
  background: #0f0f0f;
  color: #fff;
}

.inv-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin: 10px 0;
}

.inv-header p {
  font-family: 'Inter', sans-serif;
  color: #bbb;
}

.back-link {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.inv-actions {
  margin-top: 20px;
}

.btn-inv {
  background: #d4b36a;
  color: #111;
  padding: 10px 18px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  margin-right: 10px;
  border-radius: 6px;
}

.btn-inv-outline {
  border: 1px solid #d4b36a;
  color: #d4b36a;
  padding: 10px 18px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  border-radius: 6px;
}

.inv-hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.inv-ficha {
  padding: 80px 20px;
  background: #fafafa;
  text-align: center;
}

.inv-ficha h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  margin-bottom: 40px;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.inv-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.inv-card h3 {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
}

.inv-card p {
  font-size: 16px;
  color: #111;
  font-family: 'Inter', sans-serif;
}

.inv-desc {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.inv-desc h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}

.inv-contact {
  padding: 80px 20px;
  text-align: center;
  background: #111;
  color: #fff;
}
/* =========================
   WHATSAPP FLOTANTE ICONO
========================= */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 60px;
  height: 60px;

  background-color: #25D366;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 999;

  transition: all 0.3s ease;
}

/* icono */
.whatsapp-float img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* lo vuelve blanco */
}

/* hover */
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}
/* =========================
   LOGO HEADER
========================= */

.logo img {
  height: 25px;   /* ajusta tamaño */
  width: auto;
  display: block;
}

/* opcional: alineación en nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}
/* =========================
   BRAND HEADER (LOGO + TEXTO)
========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 80px;   /* ajusta tamaño del logo */
  width: auto;
  display: block;
}

.brand span {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 1px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-content h1 {
  margin: 0;
}

.hero-content span {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4b36a;
}

.hero-content p {
  margin: 0;
  max-width: 600px;
  line-height: 1.7;
  color: #21bfaf;
}
/* =========================
   REDES SOCIALES
========================= */

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 15px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); /* icono blanco */
}
.social-links {
  margin-top: 0;
}

.social-links a {
  transform: translateY(-30px);
}
.inv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
}

/* logo */
.inv-topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inv-topbar .brand img {
  height: 50px;
  width: auto;
}

/* título */
.inv-topbar h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin: 0;
  color: #fff;
  line-height: 1;
}
@media (max-width: 768px) {
  .inv-topbar {
    flex-direction: column;
    text-align: center;
  }

  .inv-topbar h1 {
    font-size: 26px;
  }
}
/* =========================
   📱 MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {

  /* NAV / HEADER */
  .nav {
    padding: 20px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    height: 45px;
  }

  .brand span {
    font-size: 14px;
  }

  /* HERO HOME */
  .hero-content {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 14px;
  }

  /* SECCIÓN PROYECTOS */
  .projects {
    padding: 60px 20px;
  }

  .projects h2 {
    font-size: 28px;
  }

  .project-card img {
    height: 160px;
  }

  .project-card {
    padding: 18px;
  }

  /* PÁGINA INDIVIDUAL (INVERSIÓN) */
  .inv-header h1 {
    font-size: 28px;
  }

  .inv-hero img {
    height: 250px;
  }

  .inv-grid {
    grid-template-columns: 1fr;
  }

  .inv-desc {
    padding: 40px 20px;
  }

  /* WHATSAPP */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float img {
    width: 22px;
    height: 22px;
  }

}

/* =========================
   🌐 GLOBAL MOBILE FIXES
========================= */

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

html {
  scroll-behavior: smooth;
}