:root {
  --primary: #d60000;              /* rojo principal */
  --primary-dark: #a50000;
  --dark: #111827;
  --dark-soft: #1f2933;
  --light: #f9fafb;
  --gray: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.18);
  --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #000;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* CONTENEDOR GENERAL */
.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
}

/* ------------ HEADER -------------- */

.logo-img {
  height: 180px;
  width: auto;
  object-fit: contain;
}

.main-header {
  background: #ffffff !important;
  border-bottom: 1px solid #000 !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.main-nav a {
  color: #000 !important;
  padding: .35rem .75rem;
  border-radius: .4rem;
  font-size: 0.95rem;
  transition: .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
}

/* -------- HERO -------- */

.hero {
  background: #ffffff !important;
  color: #000 !important;
  padding: 2.5rem 0 1rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Columna izquierda */

.hero-text {
  max-width: 620px;
}

.hero-tag {
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: .75rem;
}

.hero-text h1 {
  color: #000 !important;
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-text h1 span {
  color: #d60000 !important;
  font-weight: 800;
}

.hero-sub {
  font-size: 1rem;
  color: #000 !important;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.hero-badges span {
  border: 1px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* ---- HERO CARD (CUADRO DERECHA) ---- */

.hero-card {
  background: #ffffff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  max-width: 320px;
  box-shadow: var(--shadow-soft);
  justify-self: end;
  align-self: flex-start;
}

.hero-card * {
  color: #000 !important;
  opacity: 1 !important;
}

.hero-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.hero-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.hero-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.hero-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #d60000;
}

.hero-card .btn-primary {
  background-color: #d60000 !important;
  color: #ffffff !important;
  border-color: #d60000 !important;
}

.hero-card .btn-primary:hover {
  background-color: #a50000 !important;
}

/* IMAGEN HERO */

.hero-image {
  margin-top: 1.8rem;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero-image img {
  width: 50%;
  border-radius: 12px;
}

/* BOTONES GENERALES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.4rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: .2s;
}

.btn-primary {
  background: #d60000 !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(214, 0, 0, 0.4);
}

.btn-primary:hover {
  background: #a50000 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(214, 0, 0, 0.5);
}

.btn-outline {
  background: #fff;
  border: 1px solid #000 !important;
  color: #000 !important;
}

.btn-outline:hover {
  background: #000 !important;
  color: #fff !important;
}

.full-width {
  width: 100%;
}

/* SECCIONES GENERALES */

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-title {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 600px;
  color: var(--gray);
  font-size: 0.98rem;
}

/* NOSOTROS + STATS */

.nosotros-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.nosotros-layout p {
  color: var(--gray);
  font-size: 0.96rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* CARDS SERVICIOS */

.cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

/* FORMULARIO COTIZACIÓN (WHATSAPP) */

.cotizacion-form {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(214, 0, 0, 0.7);
  outline-offset: 1px;
  border-color: transparent;
}

.form-row {
  display: grid;
  gap: 1rem;
}

/* CLIENTES (LOGOS) */

.clients-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.client-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.client-row img {
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
  filter: none !important;
}

/* ========== CARRUSEL MONTAGES ========== */

.carousel {
  position: relative;
  max-width: 500px;       /* ANTES 900px → ahora mitad */
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-track {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #000;
  height: 280px;          /* Altura controlada */
}

.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  z-index: 2;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flechas */
.carousel-btn {
  background: #000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

.carousel-btn:hover {
  background: #444;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .carousel {
    max-width: 100%;
    flex-direction: column;
  }

  .carousel-track {
    height: 220px;
  }
}

/* ====== FOOTER LAYOUT ====== */

.footer {
  background-color: #020617;
  color: #e5e7eb;
  margin-top: 2rem;
  position: relative; /* para posicionar social-icons */
}

.footer-layout {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 1.5rem;
}

/* Texto de contacto en columnas, normalito */
.footer-block h4 {
  margin-top: 0;
}

/* Cada línea de contacto */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

/* Iconos pequeños (whats, tel, mail) */
.icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  display: inline-block;
}

/* Iconos grandes (redes sociales) */
.icon-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  display: inline-block;
}

/* Redes sociales: a la derecha y en horizontal */
.social-icons {
  position: absolute;
  right: 4rem;                 /* separación del borde derecho */
  top: 50%;                    /* más o menos a la altura del bloque */
  transform: translateY(-35%); /* ajusta fino la altura, puedes jugar con -30%, -40% */
  display: flex;
  gap: 0.75rem;
}

/* Franja inferior del footer (ya la tenías) */
.footer-bottom {
  border-top: 1px solid rgba(55, 65, 81, 0.8);
  padding: 0.8rem 0 1.2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}
.nav-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    display: none;
  }

  .main-nav.nav-open {
    display: flex;
  }
}
/* ====== HAMBURGUESA + MENÚ DROPDOWN (SIEMPRE) ====== */

.header-content{
  position: relative; /* necesario para que el dropdown se posicione bien */
}

/* Botón hamburguesa */
.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 22px;
  cursor: pointer;
}

/* Menú: oculto por defecto */
.main-nav{
  display: none;              /* <- clave */
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 35px rgba(0,0,0,.12);
  z-index: 9999;

  flex-direction: column;
  gap: 6px;
}

/* Cuando está abierto */
.main-nav.nav-open{
  display: flex;
}

/* Links dentro del dropdown */
.main-nav a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #000;
}

.main-nav a:hover{
  background: #000;
  color: #fff;
}
