/* =====================
   VARIABLES
===================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* 🔑 evita que el header fijo tape el contenido */
}

/* =====================
   MODAL
===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Mostrar modal */
.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Caja del modal */
.modal-content {
  background: linear-gradient(
    180deg,
    #171b24 0%,
    #12151c 100%
  );

  border-radius: 18px;
  padding: 32px 26px;
  max-width: 420px;
  width: 90%;

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.02);

  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

/* Animación entrada */
.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

/* Título */
.modal-content h3 {
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 10px;
}

/* Texto */
.modal-content p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Botones */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--accent);
}

:root {
  --accent: #ffb703;
  --bg: #0f1115;
  --card: #161a22;
  --text: #eaeaea;
  --muted: #a0a4b8;
  --border: #2a2f3a;
}
/* =====================
   SOMBRAS GLOBALES
===================== */
:root {
  --shadow-soft: 
    0 10px 25px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.02);

  --shadow-hover:
    0 18px 40px rgba(0,0,0,0.55);

  --shadow-accent:
    0 10px 22px rgba(255,183,3,0.35);
}
.service,
.testimonial,
.contact-card {
  box-shadow: var(--shadow-soft);
}
.service:hover,
.testimonial:hover {
  box-shadow: var(--shadow-hover);
}
.gallery img,
.service img {
  box-shadow: var(--shadow-soft);
}
header {
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.btn,
#contacto button {
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.btn:hover,
#contacto button:hover {
  box-shadow: var(--shadow-accent);
}
.nav {
  display: flex;
  align-items: center;        /* 🔑 centra vertical */
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;        /* 🔑 */
  gap: 12px;
}

.brand img {
  display: block;
}
nav ul {
  display: flex;
  align-items: center;        /* 🔑 */
  gap: 18px;
}
nav ul li a,
nav ul li .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;               /* 🔑 misma altura visual */
}
nav .btn {
  padding: 8px 16px;
  border-radius: 12px;
}

/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* =====================
   CONTAINER
===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 72px;
  height: 72px;
}

.brand strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
}

nav ul li a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

nav ul li a:hover {
  background: var(--accent);
  color: #111;
}

/* =====================
   BOTONES (CONFIG FINAL)
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 10px;

  background: var(--accent);
  color: #111;

  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;

  border: 2px solid var(--accent);
}

.btn:hover {
  filter: brightness(1.05);
}

/* Botón blanco idéntico */
.btn.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn.btn-outline:hover {
  background: var(--accent);
  color: #111;
}

/* =====================
   HERO
===================== */
.hero {
  margin-top: 90px;
  padding: 60px 0;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

/* =====================
   SECCIONES
===================== */
section {
  margin: 50px 0;
}

h2 {
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 12px;
}

/* =====================
   SERVICIOS
===================== */
./* =====================
   SERVICIOS – MEJORADOS
===================== */
#servicios {
  margin-top: 80px;
}

#servicios h2 {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 32px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.service {
  background: linear-gradient(180deg, #171b24, #12151c);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%;

  transition: transform 0.4s, box-shadow 0.4s;
}

.service:hover {
  transform: translateY(-8px);
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service h3 {
  color: var(--accent);
  font-size: 18px;
  margin: 18px 16px 8px;
}

.service p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 16px 22px;
}
/* SERVICIOS */
.services-section {
  text-align: center;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #666;
}

.services-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.services-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service {
  min-width: 280px;
  max-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  text-align: left;
}

.service img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

.service h3 {
  margin: 10px 0 6px;
}

.service p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* BOTONES CARRUSEL */
.carousel-btn {
  background: #000;
  color: #fff;
  border: none;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  z-index: 2;
}

.carousel-btn.left {
  left: -10px;
}

.carousel-btn.right {
  right: -10px;
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
}


/* =====================
   GALERÍA
===================== */
/* =====================
   GALERÍA – MEJORADA
===================== */
#galeria {
  margin-top: 90px;
}

#galeria h2 {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 32px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;

  border-radius: 18px;
  border: 1px solid var(--border);

  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.04);
}


/* =====================
   TESTIMONIOS
===================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 18px;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.testimonial p {
  color: var(--muted);
  font-style: italic;
}

/* =====================
   CONTACTO
===================== */
/* =====================
   CONTACTO – VERSIÓN MEJORADA
===================== */
#contacto {
  margin: 80px 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.contact-card {
  position: relative;
  width: 100%;
  max-width: 520px;

  background: linear-gradient(
    180deg,
    #171b24 0%,
    #12151c 100%
  );

  border-radius: 18px;
  padding: 36px 28px;

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.02);

  text-align: center;
}

/* Título */
#contacto h2 {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Texto */
#contacto p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.5;
}

/* FORM */
#contacto form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* INPUTS */
#contacto input,
#contacto textarea {
  background: linear-gradient(
    180deg,
    #1d1f25,
    #16181d
  );

  border: 1px solid #2a2f3a;
  border-radius: 12px;
  padding: 12px 14px;

  color: var(--text);
  font-size: 14px;

  transition: border 0.3s, box-shadow 0.3s, background 0.3s;
}

/* PLACEHOLDER */
#contacto input::placeholder,
#contacto textarea::placeholder {
  color: #8a8f9e;
}

/* FOCUS */
#contacto input:focus,
#contacto textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,183,3,0.18);
  background: #1e2128;
}

/* TEXTAREA */
#contacto textarea {
  min-height: 90px;
  resize: none;
}

/* BOTÓN */
#contacto button {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;

  background: var(--accent);
  color: #111;

  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;

  border: none;
  cursor: pointer;

  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

/* HOVER BOTÓN */
#contacto button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255,183,3,0.35);
  filter: brightness(1.05);
}

/* ACTIVE */
#contacto button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(255,183,3,0.25);
}


/* =====================
   FOOTER
===================== */
.footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =====================
   RESPONSIVE
===================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
}

@media (max-width: 880px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 16px;
    background: var(--card);
    padding: 12px;
    border-radius: 12px;
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}
/* =====================
   FIX CARRUSEL – CARDS MISMO TAMAÑO
===================== */

.services-carousel .service {
  min-width: 280px;
  max-width: 280px;
  height: 420px;                 /* 🔑 TODAS IGUALES */

  display: flex;
  flex-direction: column;

  background: linear-gradient(180deg, #171b24, #12151c);
  border-radius: 18px;
  border: 1px solid var(--border);

  overflow: hidden;
}

/* Imagen fija */
.services-carousel .service img {
  width: 100%;
  height: 200px;                 /* 🔑 */
  object-fit: cover;
  flex-shrink: 0;
}

/* Título */
.services-carousel .service h3 {
  margin: 16px 16px 8px;
  color: var(--accent);
  font-size: 18px;
}

/* Texto controlado */
.services-carousel .service p {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;

  flex-grow: 1;                  /* 🔑 rellena sin estirar */
  overflow: hidden;

  display: -webkit-box;          /* 🔑 límite de líneas */
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
/* =====================
   MODAL IMAGEN CON ZOOM
===================== */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.img-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.img-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  cursor: zoom-in;

  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Zoom activo */
.img-modal img.zoom {
  transform: scale(1.4);
  cursor: zoom-out;
}

/* Botón cerrar */
.img-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
}

.img-close:hover {
  opacity: 1;
}
/* MODAL PRESUPUESTO */
#modal-presupuesto .modal-content {
  max-width: 480px;
}

#modal-presupuesto form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#modal-presupuesto input,
#modal-presupuesto textarea {
  background: linear-gradient(180deg,#1d1f25,#16181d);
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
}

#modal-presupuesto input:focus,
#modal-presupuesto textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,183,3,.18);
}
/* =====================
   TESTIMONIOS
===================== */

.testimonials-section {
  text-align: center;
  padding: 4rem 1rem;
}

.testimonials-subtitle {
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.8;
}

.testimonials-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--card-bg, #111);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.stars {
  color: #f5c518;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.client {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #25d366);
}

.client span {
  font-size: .85rem;
  opacity: .7;
}
nav ul li a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;

  position: relative;
  overflow: hidden;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.2s ease;
}
nav ul li a:hover {
  background: rgba(255,183,3,0.12);
  color: var(--accent);
  transform: translateY(-1px);
}
nav ul li a:active {
  transform: translateY(0) scale(0.96);
}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 60%;
}
nav ul li .btn {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

nav ul li .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

nav ul li .btn:active {
  transform: translateY(0) scale(0.96);
}
/* =====================
   GALERÍA – PREMIUM
===================== */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

/* Overlay */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0),
    rgba(0,0,0,0.55)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Icono */
.gallery-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.9);
}

/* Hover */
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

.gallery-item:hover::after,
.gallery-item:hover .gallery-icon {
  opacity: 1;
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}
/* SOBRE NOSOTROS */
.sobre-nosotros {
  padding: 60px 20px;
  background: linear-gradient(180deg, #12151c, #171b24);
  border-radius: 16px;
  color: var(--text);
  text-align: center;
}

.sobre-nosotros h2 {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
}

.sobre-nosotros .intro {
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

/* CARDS DE FEATURES */
.features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  max-width: 260px;
  flex: 1 1 260px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
/* HERO */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;

  /* Bordes y estilo */
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  background: linear-gradient(180deg, #171b24, #12151c);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover efecto sutil */
.hero-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

/* Imagen dentro del hero */
.hero-image img {
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: 0 12px 35px rgba(0,0,0,0.45);
}
