* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: 'Montserrat', sans-serif;
  color: white;
  background-color: #000;
  background:
    linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)),
    url('/sieteveintitres/images/piezas723.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Redes sociales */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-left img {
  height: 60px;
  display: block;
  object-fit: contain;
  transition: filter 0.3s ease;
  filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 20px #ff0080);
}

.social-bar {
  display: flex;
  gap: 10px;
}

.social-bar a {
  width: 35px;
  height: 35px;
  background-color: white;
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.social-bar a:hover {
  background-color: #55ffe2;
  color: white;
}

.logo a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 50, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 999;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

nav .nav-links {
  display: inline-block;
}

nav a {
  margin-left: 1rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff0080;
}

.contacto-btn {
  background: #ff0080;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.contacto-btn:hover {
  background: white;
  color: #ff0080 !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.profile-menu-container {
  position: relative;
  margin-left: 1rem;
  display: inline-block;
}

.perfil-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

.perfil-btn i {
  font-size: 18px;
  background-color: white;
  color: black;
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
}

.perfil-btn i:hover {
  background-color: #55ffe2;
  color: white;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #ff0080;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.profile-dropdown a {
  display: block;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.profile-dropdown a:hover {
  background-color: #ff0080;
  color: white;
}

/* FORMULARIO */
.contacto-container {
  width: 90%;
  max-width: 800px;
  padding: 30px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.contacto-container h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 30px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

form input,
form select,
form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #888;
  padding: 10px;
  color: white;
  font-size: 16px;
  outline: none;
  width: 100%;
}

option {
  background-color: #000;
}

form textarea {
  grid-column: span 2;
  resize: none;
  height: 100px;
}

.btn-enviar {
  font-family: 'Montserrat', sans-serif;
  grid-column: span 2;
  padding: 15px;
  font-size: 18px;
  background-color: #1a0dab;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  border-radius: 5px;
}

.btn-enviar:hover {
  background-color: #0000cc;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 4rem;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

/* Footer */
.footer {
  background-color: #0a0a0a;
  color: #cccccc;
  padding: 60px 5% 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  gap: 40px;
  align-items: flex-start;
}

.footer-logo {
  flex: 1.5;
  min-width: 250px;
}

.footer-logo h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #00f0c0;
  margin: 0 0 5px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer h3 {
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: block;
}

.footer-links a:hover {
  color: #00f0c0;
  transform: translateX(8px);
}

.footer-contact p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #cccccc;
}

.footer-contact a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #00f0c0;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #282828;
  font-size: 0.8rem;
  color: #777;
}

.footer-bottom p {
  margin: 5px 0;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #00f0c0;
}

/* =============================================== */
/* ============= AJUSTES RESPONSIVOS ============ */
/* =============================================== */

/* === TABLET Y MENÚ HAMBURGUESA === */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  nav .nav-links,
  nav .profile-menu-container {
    display: none;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 20, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  nav.show {
    display: flex;
  }

  nav.show .nav-links,
  nav.show .profile-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav a {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    width: 80%;
    text-align: center;
    border-radius: 5px;
  }
  
  .profile-menu-container {
    margin: 1.5rem 0;
    width: 80%;
  }
  .perfil-btn {
    width: 100%;
  }
  .perfil-btn i {
    font-size: 24px;
    padding: 12px;
  }
  .profile-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    display: none;
    width: 100%;
    margin-top: 1rem;
    border: none;
    background: #222;
  }
  .profile-dropdown.show {
    display: block;
  }
}

/* === MÓVIL (TAMAÑO MEDIO) === */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
  }

  form {
    grid-template-columns: 1fr;
  }

  form textarea,
  .btn-enviar {
    grid-column: span 1;
  }

  .contacto-container {
    padding: 1.5rem; 
    width: 95%; 
  }

  .contacto-container h2 {
    font-size: 2.2rem;
  }
  
  form input, form select, form textarea {
    font-size: 15px; 
  }
}

/* === MÓVIL (TAMAÑO PEQUEÑO) === */
@media (max-width: 480px) {

  .header-left .logo,
  .header-left .social-bar {
    display: none;
  }

  .contacto-container {
    padding: 1rem;
    width: 100%;
    background: transparent;
    border-radius: 0;
  }
  
  section {
    padding-top: 80px; 
  }

  .contacto-container h2 {
    font-size: 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links a {
    text-align: center;
  }
  .footer-links a:hover {
    transform: none; 
  }
}