:root {
  --green-main: #0F5A2A;
  --green-soft: #1F7A46;
  --gold-accent: #D4AF37;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================= BODY ========================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  font-family: 'Inter', sans-serif;
}

/* Seguridad extra contra scroll lateral */
img {
  max-width: 100%;
  height: auto;
}

/* ========================= CONTAINER ========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem;
}

/* ========================= LOGO FLOTANTE ========================= */
.logo-float {
  position: fixed;
  top: 15px;
  left: 20px;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  border: 4px solid var(--gold-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.logo-float img {
  width: 70%;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Mano señalando */
.hand-pointer {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  animation: handBounce 1.5s infinite;
  display: none;
}

@keyframes handBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========================= HEADER ========================= */
.header {
  background: #f1f1f1;
  border-bottom: 4px solid var(--green-main);
  position: sticky;
  top: 0;
  z-index: 250;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.2rem 0;
}

nav {
  display: flex;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* ========================= HERO SLIDER ========================= */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: linear-gradient(-45deg, #0F5A2A, #1F7A46, #6A5ACD, #FF8C00);
  background-size: 400% 400%;
  animation: gradientMove 18s ease infinite;
  z-index: 1;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

/* ========================= SLIDE INNER ========================= */
/* TEXTO SLIDER - TODOS LOS TAMAÑOS */
.slide-text,
.slide-text h1,
.slide-text p {
  color: white;
}

.slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 2rem;
  padding: 0 2rem;
}

.slide-inner.left { flex-direction: row; }
.slide-inner.right { flex-direction: row-reverse; }

/* TEXTO 60% */
.slide-text {
  flex: 0 0 60%;
  max-width: 60%;
}

.slide-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
}

.slide-text p {
  margin-top: .8rem;
  font-size: 1.05rem;
}

/* IMAGEN 40% */
.slide-image {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  justify-content: center;
}

.slide-image img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* ========================= FEATURES ========================= */
.features {
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.8rem;
}

.card {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: 14px;
  border-left: 5px solid var(--green-main);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.card-icon-sello {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid var(--gold-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
}

/* ========================= FOOTER ========================= */
.footer {
  background: var(--green-main);
  color: white;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-bottom {
  background: var(--gold-accent);
  text-align: center;
  padding: .8rem 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--green-main);
  font-family: 'Poppins', sans-serif;
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 768px) {

  /* Mostrar mano solo en móvil / tablet */
  .hand-pointer {
    display: block;
  }

  /* SLIDER */
  .slide-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .slide-text {
    order: 1;
    max-width: 100%;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,.45);
  }

  .slide-text h1,
  .slide-text p {
    color: white;
  }

  .slide-image {
    order: 2;
    max-width: 100%;
  }

  /* NAV MÓVIL */
  nav {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    flex-direction: column;
    width: 240px;
    display: none;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    z-index: 350;
    border-radius: 12px;
    overflow-y: auto;
    max-height: 80vh;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid #eee;
  }

  nav a:last-child {
    border-bottom: none;
  }
}













