
/* ========== VARIABLES GENERALES ========== */
:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-red: #B22222; /* rojo oscuro firebrick */
  --color-gray-light: #CCCCCC;
  --font-main: 'Barlow', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== HEADER ========== */
header {
  background-color: #111;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #333;
  z-index: 1000;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo-text .sub {
  font-weight: bold;
  font-size: 1.2rem;
}

nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: #333;
}

/* ========== MENÚ HAMBURGUESA ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background-color: red;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === CONTENEDOR PRINCIPAL === */
.container1 {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  animation: fadeIn 1s ease-in-out;
  
}

/* ================= FORMULARIO DE CONTACTO ================= */
#contacto {
  max-width: 800px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background-color: #000; /* fondo negro sólido */
  border-radius: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
  color: #eee; /* texto principal más claro */
}

#contacto:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
}

#contacto h2 {
  font-size: 2.2rem;
  color: #ff4b4b;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1.2px;
}

#contacto h3 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
  color: #f0f0f0;
  font-weight: 700;
}

#contacto p {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid #444;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fefefe;
  background-color: #111;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder,
textarea::placeholder {
  color: #888;
  font-style: italic;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff4b4b;
  box-shadow: 0 0 8px #ff4b4baa;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.botones-formulario {
  text-align: center;
  margin-top: 1.8rem;
}

button[type="submit"] {
  background-color: #b22222;
  color: white;
  padding: 0.85rem 3rem;
  border: none;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(178, 34, 34, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #9e1a1a;
  box-shadow: 0 8px 25px rgba(158, 26, 26, 0.8);
  transform: translateY(-3px);
  outline: none;
}

.btn-wsp {
  display: inline-block;
  margin-top: 1.2rem;
  background-color: #25d366;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  box-shadow: 0 3px 10px #25d366aa;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.btn-wsp:hover,
.btn-wsp:focus {
  background-color: #1ebd5a;
  box-shadow: 0 6px 18px #1ebd5aaa;
  outline: none;
}

#mensaje-envio {
  margin-top: 1.8rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ff4b4b;
  min-height: 1.5rem;
}
/* ================= FAQ Section (Estilo Moderno Mejorado) ================= */
.faq-section {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 3rem 2rem;
  border-radius: 20px;
  max-width: 900px;
  margin: 4rem auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.faq-section:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #b22222;
  font-weight: 900;
  letter-spacing: 1.3px;
}

/* Preguntas */
.faq-question {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  user-select: none;
  margin-bottom: 1rem;
}

.faq-question:hover,
.faq-question:focus {
  background-color: #fcecec;
  outline: none;
  box-shadow: 0 6px 18px rgba(178, 34, 34, 0.2);
}

.faq-question::after {
  content: '➕';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #b22222;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  content: '➖';
  transform: translateY(-50%);
}

/* Respuestas */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.5s ease, padding 0.4s ease;
  background-color: #fff7f7;
  border-left: 5px solid #b22222;
  border-radius: 0 0 12px 12px;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
}

.faq-answer p,
.faq-answer ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: #555;
}

.faq-answer ul {
  list-style-type: disc;
}


/* Responsive para móvil */
@media (max-width: 768px) {
  #contacto, .faq-section {
    padding: 2rem 1rem;
    margin: 1.5rem auto;
    max-width: 95%;
  }

  #contacto h2, .faq-section h2 {
    font-size: 1.8rem;
  }

  #contacto h3 {
    font-size: 1.3rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  button[type="submit"] {
    width: 100%;
  }

  .btn-wsp {
    width: 100%;
    padding: 0.75rem 0;
    text-align: center;
  }
}


 

/* Efecto mágico en enlaces del nav */
nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #B22222; /* rojo firebrick */
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover,
nav a:focus {
  color: #ff6b6b;
  animation: navGlow 1s infinite alternate;
}

nav a:hover::before,
nav a:focus::before {
  width: 100%;
}

/* Brillo suave animado */
@keyframes navGlow {
  0% {
    text-shadow: 0 0 5px #ff6b6b, 0 0 10px #b22222, 0 0 15px #ff6b6b;
  }
  100% {
    text-shadow: 0 0 10px #ff6b6b, 0 0 20px #b22222, 0 0 30px #ff6b6b;
  }
}
@media (max-width: 1024px) {
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Navegación fija lateral */
nav {
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  color: #fff;
  z-index: 1000;
  border-radius: 0 0 0 20px;
}

/* Estado abierto del nav */
nav.open {
  transform: translateX(0);
}

/* Lista vertical del nav */
nav ul {
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  list-style: none;
  display: flex; /* para que flex-direction funcione */
}

/* Items del menú */
nav li {
  border-bottom: 1px solid #444;
}

/* Último item sin borde */
nav li:last-child {
  border-bottom: none;
}

/* Links del menú */
nav a {
  color: #fff;
  display: block;
  padding: 1.2rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  user-select: none;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 0, 0, 0.3);
  outline: none;
}

/* Botón hamburguesa */
.hamburger {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: black;
  padding: 0.6rem;
  border-radius: 8px;
  box-shadow: 0 0 10px var(--color-red);
  z-index: 1100;
}



}

@media (max-width: 768px) {

  /* Box-sizing para todo */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  

  nav {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding-top: 80px;
    color: #fff;
    z-index: 1000;
    border-radius: 0 0 0 20px;
  }

  nav.open {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    list-style: none;
  }

  nav li {
    border-bottom: 1px solid #444;
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    color: #fff;
    display: block;
    padding: 1.2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    user-select: none;
  }

  nav a:hover,
  nav a:focus {
    background-color: rgba(255, 0, 0, 0.3);
    outline: none;
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
     background-color: black;
    padding: 0.6rem;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--color-red);
    z-index: 1100;
  }


  #por-que-vender-con-nosotros h2 {
    font-size: 2rem;
  }

  .testimonios h2 {
    font-size: 1.8rem;
  }

  .conocenos h3 {
    font-size: 1.8rem;
  }

  .formulario-wrapper {
    padding: 1.5rem 1.2rem;
  }

  .map-container iframe {
    height: 250px;
  }
  
}
