:root {
  --gte-green: #2bb673;
  --gte-yellow: #ffc300;
  --gte-blue: #35a7ff;
  --gte-dark: #0f172a;
  --gte-light: #f8fafc;
  --gte-container: 1200px;
  --hero-h-mobile: 240px;
  --hero-h-desktop: 420px;
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--gte-dark);
  background-color: var(--gte-light);
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { font-weight: 700; }
a { color: inherit; text-decoration: none; }

/* Contenedor central */
.container {
  width: 90%;
  max-width: var(--gte-container);
  margin-left: auto;
  margin-right: auto;
}

/* Encabezado fijo */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background-color 0.3s;
}
.navbar.scrolled { background-color: var(--gte-yellow); }
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--gte-dark);
}
.logo img { height: 48px; width: auto; transition: transform 0.3s; }
.logo:hover img { transform: scale(1.05); }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  position: relative;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--gte-green);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a:focus::after { width: 100%; }
.nav-links a:hover,
.nav-links a:focus { color: var(--gte-green); }

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  cursor: pointer;
}
.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--gte-dark);
  border-radius: 2px;
}

/* Menú móvil */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--gte-yellow);
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-nav a { font-weight: 600; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--hero-h-mobile);
  background-size: cover;
  background-position: center;
  color: #fff;
  margin-top: 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25); /* opacidad más ligera */
  backdrop-filter: blur(2px);
  z-index: -1;
}
/* Cuadro verde detrás del texto */
.hero .hero-content {
  background: rgba(43,182,115,0.75);
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  max-width: 80%;
  text-align: center;
}
.hero .hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.hero .hero-content p {
  font-size: 1.125rem;
  margin-bottom: 0;
  color: #e5e5e5;
}

/* Secciones generales */
section { padding: 3.5rem 0; }
section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gte-dark);
}

/* About */
.about { display: grid; gap: 2rem; }
.about-content h3 {
  margin-top: 1rem;
  color: var(--gte-green);
}
.about-image {
  border-radius: 12px;
  overflow: hidden;
}
.about-image img { transition: transform 0.3s; }
.about-image:hover img { transform: scale(1.05); }

/* Servicios */
.services { background-color: #f0f4f8; }
.service-cards { display: grid; gap: 2rem; }
.service-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.service-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s;
}
.service-card-content {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
}
.service-card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--gte-dark);
}
.service-card-content p {
  font-size: 0.95rem;
  color: #475569;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.service-card:hover .service-card-image {
  transform: scale(1.08);
}

/* Tracking */
.tracking { background-color: #fff; text-align: center; }
.tracking form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tracking input {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}
.tracking input:focus {
  border-color: var(--gte-green);
  outline: none;
}
.tracking button {
  background-color: var(--gte-yellow);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  color: var(--gte-dark);
}
.tracking button:hover { background-color: #e0ac00; }

/* Contacto */
.contact { display: grid; gap: 2rem; }
.contact-info { text-align: center; }
.contact-form { max-width: none; width: 100%; }
.contact-form form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9fafe;
  color: var(--gte-dark);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gte-green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(43,182,115,0.2);
}
.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 140px;
}
.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  background-color: var(--gte-yellow);
  border: none;
  padding: 0.9rem 2.5rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  color: var(--gte-dark);
}
.contact-form button:hover {
  background-color: #e0ac00;
  transform: translateY(-2px);
}

/* Formulario de reclamos (rediseño) */
.reclamo-form form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.reclamo-form .form-group {
  display: flex;
  flex-direction: column;
}
.reclamo-form .form-group label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gte-dark);
}
.reclamo-form .form-group input,
.reclamo-form .form-group textarea {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #f9fafe;
  font-size: 1rem;
}
.reclamo-form .form-group input:focus,
.reclamo-form .form-group textarea:focus {
  border-color: var(--gte-green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(43,182,115,0.2);
}
.reclamo-form .form-group.full {
  grid-column: 1 / -1;
}
.reclamo-form button {
  grid-column: 1 / -1;
  background-color: var(--gte-yellow);
  color: var(--gte-dark);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}
.reclamo-form button:hover { background-color: #e0ac00; }

/* Contenido interno */
.content-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: left;
}
.content-wrapper h2 {
  margin-bottom: 1rem;
  color: var(--gte-green);
}
.content-wrapper h3 {
  margin-top: 1.5rem;
  color: var(--gte-dark);
}
.content-wrapper p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.content-wrapper ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.content-wrapper li { margin-bottom: 0.5rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-question {
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover { background-color: #f7fafc; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  padding: 0 0.75rem;
  background-color: #fff;
}
.faq-answer.open {
  padding: 0.75rem;
}

/* Footer */
footer {
  background-color: var(--gte-dark);
  color: #fff;
  padding: 2.5rem 0 1rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-grid h4 {
  margin-bottom: 0.75rem;
  color: var(--gte-yellow);
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a {
  color: #d1d5db;
  font-size: 0.95rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-grid a:hover {
  color: #fff;
  transform: translateX(3px);
}
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-icons a {
  display: inline-block;
  transition: transform 0.3s;
}
.social-icons a:hover { transform: scale(1.1); }
.social-icons img {
  width: 32px;
  height: 32px;
  filter: grayscale(1);
  transition: filter 0.3s, transform 0.3s;
}
.social-icons a:hover img {
  filter: grayscale(0);
  transform: scale(1.25);
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Chatbot */
#chatbot-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--gte-green);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 12px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, background-color 0.3s;
  z-index: 1001;
}
#chatbot-button:hover {
  transform: scale(1.05);
  background-color: #238f5d;
}
#chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-width: 90vw;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1002;
}
.chatbot-header {
  background-color: var(--gte-blue);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 0.95rem;
}
.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.chatbot-body {
  padding: 16px;
  font-size: 0.9rem;
  color: var(--gte-dark);
  flex: 1;
  overflow-y: auto;
  max-height: 50vh;
}
.chatbot-input-area {
  padding: 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  background-color: #f9fafb;
}
.chatbot-input-area input {
  flex: 1;
  padding: 8px;
  font-size: 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}
.chatbot-input-area button {
  background-color: var(--gte-yellow);
  border: none;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.chatbot-input-area button:hover {
  background-color: #e0ac00;
}

/* Responsive */
@media (min-width: 640px) {
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
@media (min-width: 768px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-cards { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .hero {
    height: var(--hero-h-desktop);
  }
  .hero .hero-content h1 { font-size: 2.6rem; }
  .hero .hero-content p { font-size: 1.25rem; }
}