/* =========================
   VARIABLES DE COLOR
========================= */
:root {
  --color-primario: #0098E0;
  --color-secundario: #FC0000;
  --color-texto: #333;
  --color-blanco: #fff;
}

/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #007ab3;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 80vh;
  background: url("../img/hero-livingtek.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero2 {
  position: relative;
  height: 80vh;
  background: url("../img/hero-livingtek2.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero3 {
  position: relative;
  height: 80vh;
  background: url("../img/hero-livingtek3.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero4 {
  position: relative;
  height: 80vh;
  background: url("../img/hero-livingtek4.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero5 {
  position: relative;
  height: 80vh;
  background: url("../img/hero-livingtek5.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero6 {
  position: relative;
  height: 80vh;
  background: url("../img/hero-livingtek6.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OVERLAY OSCURO */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* CONTENIDO HERO */
.hero-content {
  position: relative;
  color: var(--color-blanco);
  text-align: center;
  max-width: 700px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* espacio entre h1, p y botón */
}

.hero-content h1 {
  font-size: 2.8rem;
  margin: 0;
}

.hero-content p {
  font-size: 1.1rem;
  margin: 0;
}

.hero-btn {
  display: inline-block;
  padding: 14px 30px;
  background-color: #0098E0 !important;
  color: var(--color-blanco);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252, 0, 0, 0.35);
}

/* =========================
   HERO – MOBILE
========================= */
@media (max-width: 768px) {

  .hero {
    height: auto;              /* Evita cortes raros */
    min-height: 90vh;
    padding: 60px 20px;
  }

.hero-content {
  position: relative;
  color: var(--color-blanco);
  max-width: 700px;
  padding: 20px;

  display: flex;               /* 🔑 */
  flex-direction: column;      /* 🔑 una sola columna */
  align-items: center;         /* centra horizontal */
  text-align: center;          /* centra texto */
  gap: 18px;                   /* espacio entre filas */
}

  .hero-content h1 {
    font-size: 1.9rem;         /* Más legible en móvil */
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-btn {
    width: 100%;               /* Botón táctil */
    max-width: 280px;
    padding: 16px 0;
    text-align: center;
  }
}

.hero-content {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   MENÚ FLOTANTE
========================= */
.nav-float {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: #fff;
  border-radius: 60px;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

/* LOGO */
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* =========================
   LINKS DEL MENÚ
========================= */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* Underline animado */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primario);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-primario);
}

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

/* =========================
   BOTÓN CTA (COTIZAR)
========================= */
.btn-cta {
  background: var(--color-primario);
  color: var(--color-blanco) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: 
    background-color 0.25s ease,
    transform 0.25s ease;
}

/* Quitar underline del CTA */
.nav-links .btn-cta::after {
  display: none;
}

/* Hover limpio */
.btn-cta:hover {
  background: #007ab3; /* rojo más oscuro */
  transform: translateY(-1px);
}

/* RESET TOTAL del CTA respecto a los links normales */
.nav-links .btn-cta {
  padding: 10px 22px;      /* el padding REAL que quieres */
  line-height: 1;          /* elimina espacio vertical fantasma */
  display: inline-flex;    /* centra el texto perfectamente */
  align-items: center;
  justify-content: center;
}


/* =========================
   BOTÓN ACTIVO CUANDO DROPDOWN ESTÁ ABIERTO
========================= */
.dropdown:hover > a {
  color: var(--color-primario);
}

.dropdown:hover > a::after {
  width: 100%;
}


/* =========================
   DROPDOWN
========================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  background: var(--color-blanco);
  border-radius: 20px;
  margin-top: 12px; /* 👈 espacio extra */
  padding: 15px;
  box-shadow:
  0 12px 30px rgba(0, 0, 0, 0.12),
  0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Mostrar dropdown */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 115%;
}

/* =========================
   ITEMS DROPDOWN
========================= */
.dropdown-item {
  display: flex;
  gap: 15px;
  padding: 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.dropdown-item:hover {
  background: rgba(0, 152, 224, 0.08);
}

.dropdown-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0px;
}

.dropdown-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #111;
}

.dropdown-text p {
  font-size: 0.8rem;
  color: #555;
}

.dropdown-item:not(:last-child) {
  margin-bottom: 6px;
}

/* =========================
   MENÚ STICKY CON SCROLL
========================= */
.nav-float {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, 40px); /* BAJA dentro del hero */
  width: 90%;
  max-width: 1200px;
  background: #fff;
  border-radius: 60px;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;

  transition:
    transform 0.35s ease,
    box-shadow 0.3s ease,
    border-radius 0.3s ease;
}

.nav-float.is-sticky {
  transform: translate(-50%, 10px); /* SUBE suavemente */
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-radius: 50px;
  z-index: 999;
}

@media (max-width: 900px) {
  .nav-float {
    display: none;
  }
}







/* =========================
   MENÚ MÓVIL
========================= */

.nav-mobile {
  display: none;
}

@media (max-width: 900px) {

  .nav-mobile {
    display: block;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 60px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    z-index: 9999;
  }

  .nav-mobile-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
  }

  .nav-mobile-logo img {
    height: 38px;
  }

  .hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

/* líneas */
.hamburger span {
  width: 24px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: 
    transform 0.35s ease,
    opacity 0.25s ease;
}

/* ===== ESTADO ABIERTO (X) ===== */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


  .nav-mobile-toggle {
    font-size: 24px;
    cursor: pointer;
    user-select: none;
  }

  /* PANEL DESPLEGABLE */
.nav-mobile-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
  
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* CUANDO ABRE */
.nav-mobile.open .nav-mobile-panel {
  max-height: 500px; /* suficiente para todos los links */
  opacity: 1;
  transform: translateY(0);
  padding: 10px 20px 20px;
}

  .nav-mobile-panel a {
    padding: 12px 0;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-mobile-panel a:last-child {
    border-bottom: none;
  }

  .mobile-cta {
    margin-top: 10px;
    background: var(--color-primario);
    color: #fff;
    padding: 12px;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
  }

  .mobile-cta:hover {
    background: #007ab3;
  }

  .nav-mobile.open {
    border-radius: 30px;
  }

  .nav-mobile.open .nav-mobile-panel {
    display: flex;
  }
}







/* =========================
   SECCIÓN PROCESO
========================= */
.process-section {
  padding: 40px 20px;
  background: #f5f8fb;
  display: flex;
  justify-content: center;
}

/* Ventana flotante */
.process-window {
  background: var(--color-blanco);
  max-width: 1200px;
  width: 100%;
  border-radius: 32px;
  padding: 60px 50px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Header */
.process-header {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 20px;
}

.process-header h2 {
  font-size: 2.2rem;
  color: #111;
  margin-bottom: 15px;
}

.process-header p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Pasos */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.process-item {
  text-align: center;
}

.process-item img {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 12px;
  display: block;

  transition: transform 0.3s ease;
}

.process-item:hover img {
  transform: scale(1.2); /* 👈 ajusta: 1.05 / 1.08 / 1.1 */
}

.process-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-texto);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps > :last-child {
    grid-column: 1 / -1;     /* ocupa las 2 columnas */
    justify-self: center;   /* se centra horizontalmente */
  }
}









/* =========================
   SECCIÓN SOBRE NOSOTROS
========================= */
.about-section {
  padding: 50px 20px;
  background: #fff;
  display: flex;
  justify-content: center;
}

.about-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* TEXTO */
.about-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #111;
}

.about-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--color-primario);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.about-btn:hover {
  background: #007ab3;
  transform: translateY(-2px);
}

/* CARRUSEL */
/* CARRUSEL */
.about-carousel {
  width: 420px;      /* ancho fijo */
  height: 260px;     /* alto fijo */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Imagen dentro del carrusel */
.about-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* recorta sin deformar */
  display: block;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-carousel {
    max-width: 100%;
  }
}

/* BOTÓN + ICONOS */
.about-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ICONOS */
.about-icons {
  display: flex;
  gap: 10px;
}

.about-icons img {
  width: 100px;      /* tamaño pequeño */
  height: 100px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-icons img:hover {
  transform: translateY(-2px);
  opacity: 1;
}
@media (max-width: 900px) {
  .about-actions {
    justify-content: center;
  }
}







/* =========================
   HERO GARANTÍA
========================= */

.hero-garantia {
  width: 100%;
  min-height: 600px;
  background-image: url("../img/garantia-pvc.jpg"); /* ruta desde el CSS */
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
}

/* Capa para controlar contraste */
.hero-garantia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 180, 200, 0.65),
    rgba(255, 255, 255, 0.85) 60%
  );
}

/* Contenido */
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;        /* centra vertical */
  justify-content: flex-end;  /* texto a la derecha */
  padding: 40px 20px;
}

/* Texto */
.hero-text {
  max-width: 520px;
  color: #0d4c63;
}

.hero-text h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 36px;
  border-radius: 999px;
  background: #19b6d3;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* CTA con imagen PNG */
/* CTA con imagen centrada respecto al texto */
.hero-img-cta {
  display: flex;
  justify-content: center;   /* centra horizontalmente */
  margin-top: 28px;
}

.hero-img-cta img {
  width: 200px;              /* ajusta según tu PNG */
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-img-cta:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 25px rgba(0,0,0,0.2));
}


@media (max-width: 900px) {
  .hero-img-cta img {
    margin-left: auto;
    margin-right: auto;
  }
}


@media (max-width: 600px) {
  .hero-garantia {
    min-height: 520px;
  }
}


@media (max-width: 900px) {
  .hero-garantia {
    background-position: left center;
  }
  
  .hero-garantia::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 180, 200, 0.75),
      rgba(255, 255, 255, 0.9) 70%
    );
  }

  .hero-content {
    justify-content: center;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }
}









/* =========================
   SECCIÓN CONTACTO
========================= */

.contact-section {
  padding: 60px 20px;
  background: #f8f9fb;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
  align-items: flex-start;
}

/* FORMULARIO */
.contact-form {
  background: #fff;
  order: 2; /* Derecha */
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-form h2 {
  margin-bottom: 10px;
}

.contact-form p {
  margin-bottom: 15px;
  color: #555;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0077ff;
}

.contact-btn {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: #0077ff;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-btn:hover {
  background: #005fd1;
}

/* INFO */
.contact-info {
  order: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* mejor que Left */
  text-align: left;
  line-height: 1.6;          /* separación general */
}

.contact-info h3 {
  margin-bottom: 18px;
  line-height: 1.3;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.contact-info ul li {
  margin-bottom: 12px;       /* un poco más de aire entre ítems */
  line-height: 1.7;          /* separación específica */
}

.contact-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-logos img {
  height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s;
}

.contact-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    order: 1;
  }

  .contact-info {
    padding-top: 40px;
    order: 2;
    align-items: center;   /* centra contenido */
    text-align: center;    /* centra texto */
  }

  .contact-logos {
    justify-content: center; /* centra logos */
  }
}












/* =========================
   TESTIMONIOS
========================= */

.testimonials-section {
  padding: 80px 20px;
  background: #ffffff;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.testimonials-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 16px;
}

/* GRID ORIGINAL */
.testimonials-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 25px;
}

/* TARJETAS */
.testimonial {
  background: #e6e6e6;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* COMENTARIO DESTACADO */
.testimonial-featured {
  grid-row: span 2;
  background: linear-gradient(135deg, #0077ff, #005fd1);
  color: #f3f3f3;
}

.testimonial-featured .testimonial-text {
  color: #fff;
}

.testimonial-featured .testimonial-author span {
  color: rgba(255,255,255,0.8);
}

/* TEXTO */
.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text::before {
  content: "“";
  font-size: 60px;
  position: absolute;
  top: -25px;
  left: -5px;
  opacity: 0.1;
}

/* AUTOR */
.testimonial-author strong {
  display: block;
  font-size: 14px;
}

.testimonial-author span {
  font-size: 13px;
  color: #777;
}

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

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-featured {
    grid-row: span 1;
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-title {
    font-size: 28px;
  }
}

/* IMAGEN DEL COMENTARIO DESTACADO */
.testimonial-featured {
  padding: 0; /* quitamos padding para que la imagen toque bordes */
  overflow: hidden;
}

.testimonial-featured .testimonial-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* CONTENIDO INTERNO */
.testimonial-featured .testimonial-text,
.testimonial-featured .testimonial-author {
  padding: 30px;
}

.testimonial-featured .testimonial-text {
  margin-bottom: 15px;
}

.testimonial-featured .testimonial-image {
  position: relative;
}

.testimonial-featured .testimonial-image img {
  border-radius: 20px 20px 0 0;
}









/* =========================
   FOOTER
========================= */

.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 60px 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 26px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #ffffff;
}

.footer-column p {
  line-height: 1.7;
  color: #cbd5f5;
}

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

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-column a {
  color: #cbd5f5;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #38bdf8;
}

/* BARRA INFERIOR */
.footer-bottom {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  background: #020617;
  font-size: 13px;
  color: #94a3b8;
}

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

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column ul {
    align-items: center;
  }
}










/* =========================
   PRODUCTOS / SERVICIOS
========================= */

.products-section {
  padding: 80px 20px;
  background: #ffffff;
}

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

.products-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.products-subtitle {
  color: #666;
  margin-bottom: 50px;
  font-size: 16px;
}

/* GRID HORIZONTAL */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

/* ITEM */
.product-item {
  padding: 20px;
  transition: transform 0.3s ease;
}

.product-item img {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
}

.product-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.product-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* HOVER */
.product-item:hover {
  transform: translateY(-5px);
}

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

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-item img {
    width: 80px;
  }

  .product-item p {
    max-width: 80%;
    margin: 0 auto;
  }

  /* Centrar el último item */
  .products-grid > :last-child {
    grid-column: 1 / -1;     /* ocupa las 2 columnas */
    justify-self: center;
  }
}

.products-grid > :last-child {
  max-width: 300px;
}








.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-link:hover .product-item {
  transform: translateY(-5px);
}









/* Contenedor */
.whatsapp-container {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 9999;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* OCULTO INICIAL */
.hidden {
  opacity: 0;
  transform: translateX(120px);
  pointer-events: none;
}

/* CUANDO APARECE */
.whatsapp-container.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition: all 0.6s ease;
}

/* Botón */
.whatsapp-float {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.45);
}

/* Panel */
.whatsapp-list {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 260px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  padding: 14px;
  display: none;
}

/* Item */
.whatsapp-list a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 12px;

  text-decoration: none;
  color: #1f2933;
  font-size: 14px;
  font-weight: 500;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  transition: all 0.25s ease;
}

/* Último sin margen */
.whatsapp-list a:last-child {
  margin-bottom: 0;
}

/* Hover corporativo */
.whatsapp-list a:hover {
  background: #f8fafc;
  border-color: #25d366;
}

/* Punto de estado (no emoji) */
.whatsapp-list a::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 50%;
  background: #25d366;
  flex-shrink: 0;
}

.wa-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}










/* =========================
   SECCIÓN DISEÑO PVC
========================= */

.pvc-design {
  padding: 90px 20px;
  background: #ffffff;
}

.pvc-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* Imagen */
.pvc-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

/* Texto */
.pvc-text h2 {
  font-size: 2.4rem;
  color: #0d4c63;
  margin-bottom: 22px;
}

.pvc-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}

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

@media (max-width: 900px) {
  .pvc-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .pvc-image img {
    margin: 0 auto;
    max-width: 380px;
  }
}











/* =========================
   TIPOS DE VENTANAS
========================= */

.windows-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

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

.windows-title {
  font-size: 2rem;
  color: #0d4c63;
  margin-bottom: 50px;
}

/* GRID */
.windows-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ITEM */
.window-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.window-item:hover {
  transform: translateY(-6px);
}

.window-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.window-item h3 {
  padding: 18px 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 1px;
}

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

@media (max-width: 900px) {
  .windows-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .windows-grid {
    grid-template-columns: 1fr;
  }

  .windows-title {
    font-size: 1.6rem;
  }
}












/* =========================
   LAYOUT GENERAL
========================= */

.colors-title {
  font-size: 2.0rem;
  margin-bottom: 10px;
  color: #0d4c63;
  text-align: center;
}

.colors-container {
  max-width: 1200px;
  margin: 20px auto;
}

.colors-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start; /* 👈 ESTO ES LA CLAVE */
}

/* =========================
   COLUMNAS
========================= */

.colors-column.large,
.colors-column.small,
.colors-box {
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  align-self: start;
}

/* Columna derecha apilada */
.colors-column.small {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.colors-column.large .colors-grid {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  grid-template-columns: repeat(3, 140px);
  width: 100%;
}

.colors-column.small .colors-grid {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  grid-template-columns: repeat(3, 140px);
  width: 100%;
}

/* =========================
   TITULOS
========================= */

.colors-column h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: #333;
}

/* =========================
   GRID DE COLORES
========================= */

.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 140px);
  justify-content: center;
  gap: 20px;
}

/* =========================
   TARJETA COLOR (MISMO TAMAÑO)
========================= */

.color-item {
  width: 140px;
  height: 90px;
  border-radius: 14px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  padding: 10px;

  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;

  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  cursor: default;
  transition: transform 0.25s ease;
}

.color-item:hover {
  transform: translateY(-4px);
}

/* REF arriba */
.color-item .ref {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.9;
}

/* Nombre abajo */
.color-item .color-name {
  line-height: 1.2;
}

/* =========================
   COLORES
========================= */

/* Fondos neutros para fallback */
.madera, .metal, .lisa {
  background: #ddd; /* solo si no carga la imagen */
  color: #fff;
}

/* Imágenes específicas */
.color-01 { background: url('/img/colores-01.jpg') center/cover no-repeat; }
.color-02 { background: url('/img/colores-02.jpg') center/cover no-repeat; }
.color-03 { background: url('/img/colores-03.jpg') center/cover no-repeat; }
.color-04 { background: url('/img/colores-04.jpg') center/cover no-repeat; }
.color-05 { background: url('/img/colores-05.jpg') center/cover no-repeat; }
.color-06 { background: url('/img/colores-06.jpg') center/cover no-repeat; }
.color-07 { background: url('/img/colores-07.jpg') center/cover no-repeat; }
.color-08 { background: url('/img/colores-08.jpg') center/cover no-repeat; }
.color-09 { background: url('/img/colores-09.jpg') center/cover no-repeat; }
.color-10 { background: url('/img/colores-10.jpg') center/cover no-repeat; }
.color-11 { background: url('/img/colores-11.jpg') center/cover no-repeat; }
.color-12 { background: url('/img/colores-12.jpg') center/cover no-repeat; }
.color-13 { background: url('/img/colores-13.jpg') center/cover no-repeat; }
.color-14 { background: url('/img/colores-14.jpg') center/cover no-repeat; }
.color-15 { background: url('/img/colores-15.jpg') center/cover no-repeat; }
.color-16 { background: url('/img/colores-16.jpg') center/cover no-repeat; }
.color-17 { background: url('/img/colores-17.jpg') center/cover no-repeat; }
.color-18 { background: url('/img/colores-18.jpg') center/cover no-repeat; }
.color-19 { background: url('/img/colores-19.jpg') center/cover no-repeat; }
.color-20 { background: url('/img/colores-20.jpg') center/cover no-repeat; }
.color-21 { background: url('/img/colores-21.jpg') center/cover no-repeat; }
.color-22 { background: url('/img/colores-22.jpg') center/cover no-repeat; }
.color-23 { background: url('/img/colores-23.jpg') center/cover no-repeat; }



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

@media (max-width: 900px) {

  /* Layout pasa a una sola columna */
  .colors-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
  }

  /* Columnas centradas */
  .colors-column.large,
  .colors-column.small {
    width: 100%;
    max-width: 420px;
  }

  /* 🔥 CLAVE: centrar los bloques internos de la derecha */
  .colors-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  }

  /* Grid de colores centrado */
  .colors-grid {
    justify-content: center;
  }
}

@media (max-width: 600px) {

  .colors-column.large .colors-grid,
  .colors-column.small .colors-grid {
    grid-template-columns: repeat(2, 130px);
    gap: 16px;
    padding: 20px;
  }

  .color-item {
    width: 130px;
    height: 85px;
    font-size: 0.72rem;
    padding: 8px;
  }

  .color-item .ref {
    font-size: 0.6rem;
  }

  .colors-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 380px) {

  .colors-column.large .colors-grid,
  .colors-column.small .colors-grid {
    grid-template-columns: 1fr;
  }

  .color-item {
    width: 100%;
    max-width: 260px;
  }
}









/* =========================
   GALERÍA
========================= */

.gallery-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

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

.gallery-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #0d4c63;
}

/* =========================
   CARRUSEL
========================= */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.carousel-img {
  width: 260px;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* BOTONES */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 26px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* =========================
   BOTÓN VER MÁS
========================= */

.gallery-more {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 32px;
  background: #0098E0;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  .carousel-img {
    width: 220px;
    height: 150px;
  }
}










.about-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #007ab3, #00aeff);
}

/* TÍTULO SUPERIOR */
.about-title {
  max-width: 1200px;
  padding-top: 200px;
  margin: 0 auto 10px auto;
}

.about-title h2 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 18px;
}

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

/* CONTENIDO */
.about-content {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 70px;
}

/* IZQUIERDA */
.about-left h3 {
  color: #ffffff;
  font-size: 1.9rem;
  margin-bottom: 25px;
}

.about-left p {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 20px;
}

.about-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 35px;
}

.box {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.box h4 {
  color: #0d4c63;
  margin-bottom: 10px;
}

.box p {
  color: #0d4c63;
  margin-bottom: 10px;
}

/* DERECHA */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.card h4 {
  color: #0d4c63;
  margin-bottom: 12px;
}

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

.card li {
  margin-bottom: 8px;
}

/* BOTÓN */
.about-btn {
  margin-top: 10px;
  padding: 14px 32px;
  text-align: center;
  background: #80d7ff;
  color: black;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.about-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,152,224,0.35);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-boxes {
    grid-template-columns: 1fr;
  }

  .about-title h2 {
    font-size: 2.3rem;
  }
}
