* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background-size: cover;
  background-position-y: 4cm;
  background-color: #ffffff;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: transparent;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.container { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; 
  max-width: 1500px; 
  background-color: #5e4223;
  padding: 0 2rem; 
  position: relative;
}

.logo {
  font-size: 4rem; 
  color: rgb(172, 122, 65);
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
  z-index: 102;
}

.logo:hover {
  transform: scale(1.1);
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 102;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: rgb(207, 146, 77);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 2.2rem; 
  color: rgb(207, 146, 77);
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
  padding: 0.5rem 1rem;
}

nav a:hover,
nav a.active {
  color: #ff6b35;
  border-bottom: 3px solid #ff6b35;
}

/* ========== HERO SECTION ========== */
#fond {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#fond video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#fond::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(23, 29, 37, 0.5); 
  z-index: 2;
}

.marck {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%); 
  z-index: 3;
  text-align: left;
  padding: 20px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  animation: desplazar 0.5s linear forwards;
}

.marck p {
  font-size: 8rem;
  color: #b2b7b9;
  line-height: 1.2;
}

@keyframes desplazar {
  from { left: -50%; }
  to { left: 0%; }
}

/* ========== SECTION MOTO ========== */
.container2 {
  display: flex;
  justify-content: center; 
  align-items: center;
  position: relative; 
  width: 100%;
  min-height: 500px;
  padding: 40px 20px; 
  background-color: #1a1a1a;
}

.moto-img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: auto;
  transition: all 0.3s ease;
}

.moto-frente {
  width: 50%; 
  max-width: 445px;
  margin: auto;
}

.moto-dentro {
  width: 80%; 
  max-width: 1138px;
  margin: auto;
}

.hotspot {
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #df0505;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  border: 3px solid white;
  transition: all 0.3s ease;
}

.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.hotspot::after {
  content: attr(data-name);
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(201, 203, 99, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  display: none;
  font-weight: bold;
  z-index: 10;
}

.hotspot:hover::after {
  display: block;
}

.arrow {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.arrow-left {
  left: 5%;
}

.arrow-right {
  right: 5%;
}

/* ========== FOOTER ========== */
#pielogo {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 2%;
  background-color: #3f3d3a;
}

#pielogo > div {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  max-width: 960px;
  background-color: rgba(0, 0, 0, 0.555);
  border-radius: 10px;
}

.seccionpie {
  flex: 1;
  min-width: 250px;
  padding: 3%;
  text-align: center;
}

.seccionpie h1 {
  font: bold 20px arial, sans-serif;
  color: #bf930d;
}

.seccionpie p {
  margin-top: 5px;
}

.seccionpie a {
  font: bold 16px arial, sans-serif;
  color: rgb(8, 130, 91);
  text-decoration: none;
}

ul {
  list-style: none;
}

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}

.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}

.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}

.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}

.example-2 .icon-content a:hover {
  color: white;
}

.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #ff0000;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="Pinterest"] .filled,
.example-2 .icon-content a[data-social="Pinterest"] ~ .tooltip {
  background-color: #ff0202;
}

.example-2 .icon-content a[data-social="X"] .filled,
.example-2 .icon-content a[data-social="X"] ~ .tooltip {
  background-color: #171d25;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f);
}

.example-2 .icon-content a[data-social="Whatsapp"] .filled,
.example-2 .icon-content a[data-social="Whatsapp"] ~ .tooltip {
  background-color: #55ed37;
  color: rgb(155, 155, 155);
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* ========== CHAT WIDGET ========== */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(238, 90, 36, 0.4);
  transition: all 0.3s ease;
  color: white;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(238, 90, 36, 0.6);
}

.chat-toggle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

.chat-toggle.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-window.active {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chat-header {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: headerPulse 3s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.chat-header h1 {
  font-size: 18px;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.chat-header p {
  font-size: 12px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.chat-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: rgba(247, 249, 252, 0.8);
}

.message {
  margin-bottom: 12px;
  display: flex;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.message.user {
  justify-content: flex-end;
}

.message.user .message-content {
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.message.bot {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.message.user .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.bot .message-content {
  background: white;
  color: #333;
  border: 1px solid #e0e6ed;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-input {
  padding: 15px;
  background: white;
  border-top: 1px solid #e0e6ed;
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e0e6ed;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 16px;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.typing-indicator {
  display: none;
  padding: 10px 14px;
  background: white;
  border-radius: 15px;
  border-bottom-left-radius: 4px;
  max-width: 80%;
  border: 1px solid #e0e6ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #667eea;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.quick-suggestions {
  padding: 10px 15px;
  background: rgba(247, 249, 252, 0.8);
  border-top: 1px solid #e0e6ed;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.suggestion-btn {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #667eea;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.welcome-bubble {
  position: absolute;
  bottom: 80px;
  right: 70px;
  background: white;
  padding: 12px 16px;
  border-radius: 20px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  color: #333;
  max-width: 200px;
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ======================================== */

/* Tablets y pantallas medianas (max-width: 1024px) */
@media (max-width: 1024px) {
  html {
    font-size: 55%;
  }

  .logo {
    font-size: 3.5rem;
  }

  nav a {
    font-size: 1.8rem;
  }

  .marck p {
    font-size: 6rem;
  }

  .container2 {
    padding: 30px 15px;
    min-height: 400px;
  }

  .arrow {
    padding: 10px 15px;
    font-size: 20px;
  }

  .arrow-left {
    left: 2%;
  }

  .arrow-right {
    right: 2%;
  }
}

/* Tablets pequeñas y móviles (max-width: 768px) - MENÚ HAMBURGUESA */
@media (max-width: 768px) {
  html {
    font-size: 50%;
  }

  .container {
    padding: 1rem 2rem;
  }

  .logo {
    font-size: 3rem;
  }

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: flex;
  }

  /* Ocultar menú por defecto y mostrarlo como menú desplegable */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #5e4223 0%, #3d2a16 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 101;
  }

  nav.active {
    right: 0;
  }

  nav a {
    width: 100%;
    font-size: 2rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(207, 146, 77, 0.3);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }

  nav a:hover,
  nav a.active {
    border-left: 3px solid #ff6b35;
    border-bottom: 1px solid rgba(207, 146, 77, 0.3);
    background: rgba(255, 107, 53, 0.1);
    padding-left: 2rem;
  }

  /* Overlay oscuro cuando el menú está abierto */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  body.menu-open::before {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden;
  }

  .marck {
    left: 10px;
    padding: 10px;
  }

  .marck p {
    font-size: 4rem;
  }

  .container2 {
    padding: 20px 10px;
    min-height: 350px;
  }

  .moto-img {
    max-width: 90%;
  }

  .hotspot {
    width: 20px;
    height: 20px;
  }

  .hotspot::after {
    font-size: 12px;
    padding: 6px 10px;
    bottom: 30px;
  }

  #pielogo > div {
    flex-direction: column;
  }

  .seccionpie {
    min-width: 100%;
    padding: 5%;
  }

  .chat-window {
    width: calc(100vw - 30px);
    height: 60vh;
    max-height: 500px;
  }

  .welcome-bubble {
    max-width: 180px;
    font-size: 12px;
    right: 10px;
  }
}

/* Móviles (max-width: 480px) */
@media (max-width: 480px) {
  html {
    font-size: 45%;
  }

  header {
    padding: 0.5rem 0;
  }

  .container {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 2.5rem;
  }

  .menu-toggle span {
    width: 25px;
    height: 2.5px;
    margin: 3px 0;
  }

  nav {
    width: 80%;
    padding: 70px 20px 20px;
  }

  nav a {
    font-size: 1.8rem;
    padding: 1.2rem 0.8rem;
  }

  #fond {
    height: 70vh;
  }

  .marck {
    left: 5px;
    padding: 5px;
  }

  .marck p {
    font-size: 3rem;
  }

  .container2 {
    padding: 15px 5px;
    min-height: 300px;
  }

  .moto-img {
    max-width: 95%;
  }

  .arrow {
    padding: 8px 12px;
    font-size: 18px;
  }

  .arrow-left {
    left: 1%;
  }

  .arrow-right {
    right: 1%;
  }

  .hotspot {
    width: 18px;
    height: 18px;
    border: 2px solid white;
  }

  .hotspot::after {
    font-size: 10px;
    padding: 5px 8px;
    bottom: 25px;
  }

  .seccionpie h1 {
    font-size: 18px;
  }

  .example-2 .icon-content a {
    width: 45px;
    height: 45px;
  }

  .example-2 .icon-content a svg {
    width: 25px;
    height: 25px;
  }

  .chat-widget {
    bottom: 15px;
    right: 15px;
  }

  .chat-toggle {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .chat-window {
    width: calc(100vw - 20px);
    height: 70vh;
    max-height: 450px;
    bottom: 75px;
    right: -7.5px;
  }

  .chat-header h1 {
    font-size: 16px;
  }

  .chat-header p {
    font-size: 11px;
  }

  .message-content {
    font-size: 12px;
    max-width: 85%;
  }

  .quick-suggestions {
    padding: 8px 10px;
    gap: 5px;
  }

  .suggestion-btn {
    font-size: 10px;
    padding: 4px 8px;
  }

  .welcome-bubble {
    display: none !important;
  }
}

/* Móviles muy pequeños (max-width: 360px) */
@media (max-width: 360px) {
  html {
    font-size: 40%;
  }

  .logo {
    font-size: 2rem;
  }

  nav {
    width: 85%;
  }

  nav a {
    font-size: 1.6rem;
  }

  .marck p {
    font-size: 2.5rem;
  }

  .container2 {
    min-height: 250px;
  }

  .hotspot {
    width: 15px;
    height: 15px;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .chat-window {
    height: 65vh;
  }
}

/* Pantallas grandes (min-width: 1440px) */
@media (min-width: 1440px) {
  html {
    font-size: 65%;
  }

  .container {
    max-width: 1600px;
  }

  .marck p {
    font-size: 10rem;
  }

  .container2 {
    min-height: 600px;
  }
}

/* Modo landscape para móviles */
@media (max-height: 500px) and (orientation: landscape) {
  #fond {
    height: 100vh;
  }

  .marck p {
    font-size: 3rem;
  }

  .container2 {
    min-height: 300px;
  }

  .chat-window {
    height: 80vh;
  }

  nav {
    padding: 60px 20px 20px;
  }

  nav a {
    padding: 1rem 0.8rem;
  }
}