/* ================= RESET ================= */
/* Scroll del HTML */
html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  padding-top: 30px;
  background-color: #000;
}

/* ================= BOX SIZING GLOBAL ================= */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Logo */
.logo {
  position: absolute;
  left: 20px;
}

.logo img {
  height: 52px;
}

/* Menu */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #F4A300;
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  left: 20px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

/* ================= DROPDOWN BASE ================= */
.dropdown-menu {
  display: none !important;
}

.dropdown {
  position: relative;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 5px;
}

.arrow {
  font-size: 14px;
  font-weight: bold;
  color: #F4A300;
  cursor: pointer;
}

/* ================= DESKTOP (HOVER REAL) ================= */
@media (hover: hover) and (pointer: fine) {

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    padding: 15px 0;
    min-width: 220px;
    flex-direction: column;
    gap: 15px;
  }

  .dropdown-menu a {
    padding: 0 20px;
    font-size: 13px;
  }

  .dropdown:hover .dropdown-menu {
    display: flex !important;
  }
}

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

  /* ================= NAVBAR ================= */
  .nav-container {
    justify-content: space-between;
    max-width: 100%;
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
    position: static;
    margin-left: 20px;
  }

  .logo {
    position: static;
    margin-right: 20px;
  }

  .logo img {
    height: 38px;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    display: none;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  /* ================= DROPDOWN MOBILE ================= */
  .dropdown {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu {
    position: static;
    padding-left: 15px;
    gap: 15px;
  }

  .dropdown.active .dropdown-menu {
    display: flex !important;
  }

  .dropdown.active .arrow {
    transform: rotate(180deg);
  }

  /* ================= ABOUT ================= */
  .about-content {
    flex-direction: column;
  }

  .about-image img {
    max-width: 100%;
  }

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

  /* ================= SERVICIOS (ORDEN CORRECTO) ================= */
  .service-item,
  .service-item.reverse {
    flex-direction: column !important;
    align-items: center;
    gap: 25px;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  /* TEXTO PRIMERO */
  .service-text {
    order: 1;
    max-width: 100%;
  }

  .service-text p {
    text-align: justify;
  }

  /* IMAGEN DESPUÉS */
  .service-image {
    order: 2;
    width: 100%;
  }

  .service-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  :root {
    --floating-safe-bottom: 130px;
  }

  .whatsapp-float {
    width: 65px;
    height: 65px;
  }

  .whatsapp-float img {
    width: 34px;
    height: 34px;
  }

  /*Acomodar el formulario*/
  .contact-wrapper {
    max-width: 100%;
    padding: 0 16px;
  }

  .contact-form {
    padding: 10px;
  }
}

/* ================= HERO ================= */
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 20px;
  gap: 18px;
}

.hero-logo img {
  max-width: 400px;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-logo img:hover {
    transform: scale(1.05);
  }
}

/* ================= CTA HERO WHATSAPP ================= */

.hero-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #F4A300;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-whatsapp-btn img {
  width: 18px;
  height: 18px;
}

.hero-whatsapp-btn:hover {
  background-color: #d18b00;
  transform: translateY(-1px);
}

/* ================= SECCIONES ================= */
.section {
  background-color: #000;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section h2 {
  color: #F4A300;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.section p {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
}

/* ---------- QUIÉNES SOMOS ---------- */

.about {
  text-align: left;
}

.about-content {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin-top: 30px;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
}

.about-text {
  max-width: 600px;
}

.about-text strong {
  color: #F4A300;
  font-weight: 600;
}

.about-text p {
  text-align: justify;
  margin-bottom: 15px;
}

.about-description {
  font-weight: 500;
}

/* ---------- SERVICIOS DESKTOP ---------- */

.services {
  text-align: left;
}

.services strong {
  color: #F4A300;
  font-weight: 600;
}

.services h3 {
  color: #F4A300;
  font-size: 24px;
  margin-bottom: 30px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
}

.service-item.reverse {
  flex-direction: row-reverse;
}

.service-text {
  max-width: 500px;
}

.service-text p {
  text-align: justify;
}

.service-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
}

/* ================= FIX SCROLL ANCLAS ================= */
:target {
  scroll-margin-top: 70px;
}

/* Formulario de contacto */

.contact-section {
  padding: 60px 20px 40px;
  background-color: #000000;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #F4A300;
}

.contact-form {
  width: 100%;
  background-color: #ffffff;
  padding: 30px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;  
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #F4A300;
}

.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.btn-submit {
  width: 100%;
  padding: 8px;
  background-color: #F4A300;
  border: none;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
  background-color: #d18b00;
}

.form-status {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.form-status.error {
  color: #c62828;
}

.form-status.success {
  color: #2e7d32;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
}


/* Botón de WhatsApp */
:root {
  --floating-safe-bottom: 110px;
}

.whatsapp-float {
  position: fixed;
  bottom: var(--floating-safe-bottom);
  right: 20px;
  width: 70px;
  height: 70px;
  z-index: 1000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

/* Instagram */
.instagram-contact {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.instagram-contact h3 {
  margin-bottom: 10px;
  font-size: 14px;
  color: #F4A300;
}

.instagram-contact img {
  width: 46px;
  height: 46px;
  transition: transform 0.3s ease;
}

.instagram-contact img:hover {
  transform: scale(1.1);
}

/* Footer */

.footer {
  background-color: #000;
  color: #ccc;
  padding: 40px 20px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand h3 {
  color: #f5a800; /* mismo amarillo del sitio */
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 13px;
  color: #aaa;
}

.footer-info {
  text-align: center;
  font-size: 13px;
  color: #999;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a i {
  font-size: 16px;
}

.footer-contact a:hover {
  color: #f5a800;
}

.footer-dev a {
  color: #999;
  text-decoration: none;
}

.footer-dev a:hover {
  color: #f5a800;
}


@media (max-width: 768px) {
  .footer {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .footer-brand,
  .footer-info,
  .footer-contact,
  .footer-location {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer-contact a {
    justify-content: center;
  }
}
