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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f2f2f2;
  color: #111;
  line-height: 1.7;
  padding: 40px;
}

/* ---------- CABECERA ---------- */

/* ===========================
   HEADER COMPLETO RETRO
   =========================== */

.site-header {
  padding: 20px 0;
  border-bottom: 3px solid #000;
  margin-bottom: 40px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

/* Flex interno para alinear texto y dropdown */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* responsive */
}

/* Texto del header */
.header-texto h1 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
  letter-spacing: -1px;
}

.header-texto h2 {
  font-size: 1rem;
  color: #333;
  font-weight: 450;
  margin-top: 5px;
  letter-spacing: 0.7px;
}

/* ===========================
   DROPDOWN RETRO
   =========================== */

.dropdown {
  position: relative;
  margin-left: auto;
}

/* Botón del dropdown */
.dropbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #fff;
  color: #000;
  border: 3px solid #000;
  cursor: pointer;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.12s ease-in-out, box-shadow 0.12s, background 0.12s, color 0.12s;
}

/* Icono hamburguesa */
.dropbtn svg {
  width: 28px;
  height: 28px;
}

/* Hover del botón */
.dropbtn:hover {
  transform: translate(-3px,-3px);
  box-shadow: 9px 9px 0 #000;
  background: #f0f0f0;
}

/* Mantener estilos de botón y dropdown igual que antes */
.dropdown-content {
  display: none; /* se controla por JS */
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  z-index: 999;
}
.dropdown-content a {
  display: block;
  padding: 14px 16px;
  background: #e6e6e6;
  border-bottom: 2px solid #000;
  color: #111;
  text-decoration: none;
  font-weight: 800;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: #dcdcdc; }


/* Animación dropdown */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Items del menú */
.dropdown-content a {
  display: block;
  padding: 14px 16px;
  background: #e6e6e6;
  border-bottom: 2px solid #000;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  transition: background 0.15s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: #dcdcdc;
}

/* Mostrar menú al hover de botón o del contenido */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* ===========================
   RESPONSIVE HEADER
   =========================== */
@media (max-width: 650px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-texto h1 {
    font-size: 2.2rem;
  }

  .header-texto h2 {
    font-size: 1rem;
  }

  .dropdown-content {
    right: auto;
    left: 0;
    width: 100%;
  }
}

/* ---------- SECCIONES ---------- */
main {
  max-width: 950px;
  margin: 0 auto;
}

section {
  margin-bottom: 50px;
  padding: 25px 30px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.1s ease-in-out;
}

section:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

section h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 800;
  background: #000;
  color: #fff;
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

section p {
  margin-bottom: 10px;
  color: #111;
}

/* ---------- LISTAS Y GRIDS ---------- */
ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

ul li {
  background: #e6e6e6;
  padding: 10px 15px;
  border: 2px solid #000;
  font-weight: 600;
  box-shadow: 3px 3px 0 #000;
}

ul li:hover {
  background: #dcdcdc;
}

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

.grid div {
  background-color: #e6e6e6;
  padding: 10px 15px;
  border: 2px solid #000;
  font-weight: 500;
  box-shadow: 3px 3px 0 #000;
}

.grid div:hover {
  background: #dcdcdc;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 3px solid #000;
}

footer nav a {
  text-decoration: none;
  color: #000;
  font-weight: 700;
  margin: 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 650px) {
  body {
    padding: 20px;
  }

  header h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 20px;
  }

  ul, .grid {
    grid-template-columns: 1fr;
  }
}

 table {
      width: 100%;
      border-collapse: collapse;
      border: none;
    }
    td {
      border: none;
      padding: 8px 12px;
      vertical-align: top;
      width: 50%;
    }

    /* ---------- FORMULARIO DE CONTACTO ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  border: 2px solid #000;
  padding: 25px 30px;
  box-shadow: 6px 6px 0 #000;
}

form label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #000;
  font-size: 1rem;
  font-family: inherit;
  background: #f5f5f5;
  box-shadow: 3px 3px 0 #000;
}

form input:focus,
form textarea:focus {
  background: #fff;
  outline: none;
}

form button {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

/* ---------- TIPO DE CONSULTA (checkboxes) ---------- */
.tipo-consulta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.tipo-consulta label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.tipo-consulta input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #000; /* color negro para las casillas */
  cursor: pointer;
}

/* ===========================
   DROPDOWN RETRO ESTILO PORTFOLIO
   (Compatible con tu HTML original)
   =========================== */






/* =======================
   CARRUSEL RETRO / PORTFOLIO
   ======================= */

.carrusel-retro {
  margin: 40px 0 60px;
  padding: 25px 30px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.1s ease-in-out;
}

.carrusel-retro:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

.carrusel-retro h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 800;
  background: #000;
  color: #fff;
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

/* CONTENEDOR PRINCIPAL */
.carrusel-contenedor {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Botones izquierda/derecha */
.carrusel-btn {
  height: 50px;
  background: #272727;               /* FONDO NEGRO */
  color: #fff;                    /* FLECHA BLANCA */
  border: 2px solid #000;
  font-weight: 900;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 5px 10px;
  margin: 10px 10px;
    box-shadow: 0px 0px 0 #ffffff;
  transition: transform 0.1s, background 0.1s, color 0.1s;
}

/* Hover */
.carrusel-btn:hover {
  background: #fff;               /* FONDO BLANCO */
  color: #000000;                    /* FLECHA NEGRA */
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

/* Estado activo (presionado) */
.carrusel-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #000;
}


/* Carrusel deslizante */
.carrusel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.carrusel::-webkit-scrollbar {
  display: none; /* invisible */
}

/* Tarjeta retro */
.slide-retro {
  min-width: 320px;
  background: #e6e6e6;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
  transition: transform 0.1s, box-shadow 0.1s;
}

.slide-retro:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #000;
}

.slide-retro img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carrusel brutalista */
.carrusel-top {
  display: flex;
  align-items: center;
  gap: 8px; /* menos separación */
  margin-bottom: 10px;
}

.carrusel-top h3 {
  font-size: 1.4rem;
  font-weight: 800;
  background: #000;
  color: #fff;
  padding: 5px 10px; /* padding más ajustado */
  height: 50px;
  display: flex;
  align-items: center;
  margin: 0;
}

.carrusel-btn {
  background: #000;
  color: #fff;
  border: 3px solid #000;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 0 16px; /* más padding interno horizontal */
  height: 50px;    /* mismo alto que h3 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: 0.12s ease-in-out;
}

.carrusel-btn:hover {
  background: #fff;
  color: #000;
  transform: translate(-2px, -2px);
}

/* Contenedor del carrusel */
.carrusel-contenedor {
  overflow: hidden; /* nada de scroll visible */
}

/* Carrusel interno */
.carrusel {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
  scroll-behavior: smooth;
  overflow: hidden; /* scrollbar invisible */
}

/* Tarjetas */
.slide-retro {
  flex: 0 0 calc(50% - 10px); /* 2 imágenes por vista */
  background: #e6e6e6;
  border: 2px solid #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-retro img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* la imagen completa */
  display: block;
}


 form {
      max-width: 600px;
      margin: 2rem auto;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      padding: 1rem;
      border: 1px solid #ccc;
      border-radius: 12px;
      background: #fafafa;
    }
    input, textarea, button {
      font-size: 1rem;
      padding: 0.6rem 0.8rem;
      border: 1px solid #bbb;
      border-radius: 8px;
    }
    label { font-size: 0.95rem; }
    button {
      background: #222;
      color: white;
      border: none;
      cursor: pointer;
      transition: 0.2s;
    }
    button:hover {
      background: #444;
    }