/* =====================
   RESET + BASE
===================== */

/* =====================
   WHATSAPP FLOATING BUTTON (FIX)
   Pegar ARRIBA para evitar que lo "tapen" @media rotos (color fix)
===================== */

.wa-float{
  position: fixed !important;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  display: grid;
  place-items: center;
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  text-decoration: none;

  /* ✅ CLAVE: esto hace que currentColor sea blanco */
  color: #ffffff !important;
}

.wa-float:visited{
  /* ✅ evita que “visited” lo ponga violeta */
  color: #ffffff !important;
}

.wa-icon{
  width: 28px !important;
  height: 28px !important;
  display: block;

  /* opcional, pero ayuda a que currentColor sea blanco siempre */
  color: #ffffff !important;
}

/* backup por si algún estilo raro pisa el path */
.wa-icon path{
  fill: currentColor !important;
}


/* ✅ Anti “logo gigante” y anti sorpresas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  /* BullDot-SwiperJs */
  --swiper-pagination-color: var(--accent-);
  --swiper-pagination-bullet-inactive-color: #7777774b;
  --swiper-pagination-bullet-inactive-opacity: 1;
}

html { scroll-behavior: smooth; }

body {
  font-family: Helvetica, Arial, sans-serif, -apple-system, BlinkMacSystemFont;
  background-color: var(--white-);
  color: var(--black-);
  line-height: 1.5;
  overflow-x: hidden;
}

/* =====================
   GLOBAL VARIABLES
===================== */
:root {
  --black-: #000000;
  --white-: #ffffff;
  --accent-: #f5c400;

  --gradient-:
    hsla(0, 0%, 0%, 0.8),
    hsla(0, 0%, 0%, 0.8);

  /* Fluid Spacing */
  --section-padding: clamp(64px, 10vw, 120px);
  --container-padding: clamp(16px, 4vw, 24px);
  --gap-lg: clamp(32px, 6vw, 64px);
  --gap-md: clamp(24px, 4vw, 40px);
  --gap-sm: 16px;
}

/* =========================================================
   ✅ HEADER + NAV (FIX estable + layout correcto)
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background-color: var(--white-);
  border-bottom: 1px solid #eee;
}

/* Antes estaba con height raro; ahora queda correcto */
.header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* LOGO */
.logo-container a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container img {
  height: 48px;
  width: auto;
  max-height: 48px;
}

/* TEXTO LOGO */
.logo-text {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black-);
  line-height: 1;
  height: 48px;
  display: flex;
  align-items: center;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 80px; /* queda debajo del header */
  z-index: 250;
  background: var(--white-);
}

/* Desktop: centrado real */
.nav-list {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0 var(--container-padding);
}

.nav-list a {
  text-decoration: none;
  color: var(--black-);
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--accent-);
  transition: width 0.2s ease;
}

.nav-list a:hover { color: var(--accent-); }
.nav-list a:hover::after { width: 100%; }

/* =========================================================
   HERO-SWIPPER
========================================================= */
.swiper-slide {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.slide-1{
  background: linear-gradient(var(--gradient-)),
   url("./image/bulb-1.webp") center / cover no-repeat;
}
.slide-2{
  background:
  linear-gradient(var(--gradient-)),
  url("./image/bulb-2.webp") center / cover no-repeat;
}
.slide-3{
  background:
  linear-gradient(var(--gradient-)),
  url("./image/bulb-3.webp") center / cover no-repeat;
}
.slide-4{
  background:
  linear-gradient(var(--gradient-)),
   url("./image/bulb-4.webp") center / cover no-repeat;
}

/* =====================
   HERO (MOBILE)
===================== */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: var(--section-padding) var(--container-padding);
}

.hero-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-deck h1 {
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 1.05;
  max-width: 18ch;
  color: var(--white-);
}

.hero-deck p {
  opacity: 0.9;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  line-height: 1.6;
  max-width: 45ch;
  color: var(--white-);
}

/* =====================
   CTA BUTTON
===================== */
.cta-button {
  margin-top: 24px;
  padding: 16px 32px;
  background-color: var(--accent-);
  color: var(--white-);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  border-radius: 2px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* =====================
   ABOUT
===================== */
.about {
  background-color: var(--white-);
  color: var(--black-);
  padding: var(--section-padding) 0;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: center;
  text-align: center;
}

.about-left h2 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-left h2 span { color: var(--accent-); }

.about-left p {
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.85;
}

.about-right {
  display: flex;
  justify-content: center;
}

.about-right img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: cover;
  border-radius: 5%;
}

/* =====================
   SERVICIOS
===================== */
.services {
  background-color: #f9f9f9;
  padding: var(--section-padding) 0;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.services-header {
  margin-bottom: var(--gap-lg);
  text-align: center;
}

.services-header h2 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 700;
}
.services-header h2 span { color: var(--accent-); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.service-card {
  background-color: var(--white-);
  padding: clamp(24px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  border: 1px solid #e5e5e5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-card-img { width: 40px; height: 40px; }

.service-card h3 { font-size: 1.1rem; font-weight: 600; }

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 40ch;
}

/* =====================
   PORTAFOLIO
===================== */
.portfolio {
  background-color: var(--white-);
  padding: 120px 0;
  display: none; /*!!!!!!!!!!!!!!!!!!*/
}

.portfolio-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.portfolio-header { margin-bottom: 64px; }

.portfolio-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}

.portfolio-header h2 span { color: var(--accent-); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  color: var(--white-);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-overlay h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.portfolio-overlay p { font-size: 0.95rem; opacity: 0.9; }

.portfolio-item:hover img { filter: blur(4px); transform: scale(1.05); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* =====================
   CONTACTO
===================== */
.contact {
  background-color: var(--black-);
  color: var(--white-);
  padding: var(--section-padding) 0;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: center;
  text-align: center;
}

.contact-left h2 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-left h2 span { color: var(--accent-); }

.contact-left p {
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.9;
}

.contact-form {
  background: var(--white-);
  padding: clamp(24px, 6vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 6px;
  text-align: left;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; color: var(--accent-); }

.form-group input,
.form-group textarea {
  background-color: transparent;
  border: 1px solid #ddd;
  padding: 12px;
  color: var(--black-);
  font-family: inherit;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-);
  border-color: var(--accent-);
}

.form-button {
  align-self: center;
  margin-top: 8px;
  padding: 14px 32px;
  background-color: var(--accent-);
  color: var(--black-);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background-color: var(--white-);
  color: var(--black-);
  border-top: 1px solid #e5e5e5;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-padding) var(--container-padding);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: center;
  text-align: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer-logo { width: 80px; height: auto; }

.footer-left p {
  max-width: 40ch;
  font-size: 0.95rem;
  opacity: 0.8;
}

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

.footer-right { display: flex; justify-content: center; }

.footer-nav {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  text-decoration: none;
  color: var(--black-);
  font-size: 0.9rem;
  position: relative;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--accent-);
  transition: width 0.2s ease;
}

.footer-nav a:hover::after { width: 100%; }

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 16px var(--container-padding);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* =====================
   RESPONSIVE
===================== */

/* Tablet */
@media (min-width: 600px) {
  .hero-inner { padding: clamp(80px, 10vw, 120px) var(--container-padding); }
  .about-inner { gap: clamp(48px, 8vw, 72px); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { gap: clamp(48px, 8vw, 72px); }
}

/* ✅ MOBILE: antes ocultabas el menú; ahora se ve */
@media (max-width: 1023px) {
  .header-inner {
    height: 56px;
  }

  .logo-text { display: none; }

  .logo-container img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Menú visible, en una sola línea, sin cortarse */
  .navbar {
    top: 56px;
  }

  .nav-list {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 12px;  /* evita cortar */
    padding-left: 12px;   /* aire */
  }

  .nav-list::-webkit-scrollbar { display: none; }

  .nav-list a {
    font-size: 0.75rem;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  /* Logo a la izquierda con margen “≈5mm” */
  .header-inner { padding-left: 20px; }

  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-deck { align-items: flex-end; text-align: right; }

  .about-inner { grid-template-columns: 1fr 1fr; text-align: left; }
  .about-left p { margin-left: 0; margin-right: auto; }
  .about-right img { border-radius: 0; }

  .services-header { text-align: left; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { align-items: flex-start; text-align: left; }

  .contact-inner { grid-template-columns: 1fr 1fr; text-align: left; }
  .contact-left p { margin-left: 0; margin-right: auto; }
  .contact-form { margin-right: auto; }
  .form-button { align-self: flex-start; }

  .footer-inner { grid-template-columns: 1fr 1fr; text-align: left; }
  .footer-left { align-items: flex-start; }
  .footer-right { justify-content: flex-end; }
  .footer-logo { width: 48px; }
  .footer-nav { justify-content: flex-end; }
  
  
  
/* ==========================
   DESKTOP HEADER FIX (centrado matemático)
========================== */
@media (min-width: 1024px) {

  .header-inner {
    max-width: none;
    margin: 0;
    height: 80px;
    padding: 0 20px; /* ~5mm */
    display: grid;
    grid-template-columns: max-content 1fr max-content; /* logo | centro | copia logo */
    align-items: center;
  }

  /* Logo izquierda */
  .logo-container {
    justify-self: start;
  }

  /* Nav centrado REAL */
  .navbar {
    position: static;
    top: auto;
    height: auto;
    background: transparent;
    justify-self: center;
  }

  .nav-list {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    list-style: none;
  }

  .nav-list a {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* ✅ spacer copia el ancho del logo para que el centro sea exacto */
  .header-spacer {
    justify-self: end;
    visibility: hidden; /* ocupa espacio pero no se ve */
  }

  /* copiamos el contenido del logo para igualar ancho */
  .header-spacer::before {
    content: "NUVIRIA"; /* texto aproximado (se ajusta con padding) */
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-left: 12px; /* compensa el gap del logo */
  }

  /* copiamos también el espacio del icono */
  .header-spacer::after {
    content: "";
    display: inline-block;
    width: 48px;  /* icono */
    height: 48px;
    margin-right: 12px; /* gap */
  }
  
  /* Fuerza el ícono de WhatsApp a blanco aunque haya estilos heredados */
	.whatsapp-float svg,
	.whatsapp-float svg * {
	fill: #ffffff !important;
	stroke: #ffffff !important;
	color: #ffffff !important;
	}

}
