/* Google Font loaded from base.html */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base, "Poppins", sans-serif);
  line-height: var(--line-height, 1.6);
  color: var(--color-text, #1f2937);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.hero-lema,
.hero-sublema,
.section-title {
  font-family: var(--font-headings, "Poppins", sans-serif);
}

h1 { font-size: var(--text-h1, 2.5rem); }
h2 { font-size: var(--text-h2, 2rem); }
h3 { font-size: var(--text-h3, 1.75rem); }

button,
.btn,
.cta-button,
.cta-button-calc,
.section-badge,
.product-card-button,
.calc-button {
  font-family: var(--font-buttons, "Poppins", sans-serif);
}

.main-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-fondo-alternativo) 0%, white 50%, var(--color-fondo-alternativo) 100%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-secondary));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.floating-leaf-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 4rem;
  height: 4rem;
  opacity: 0.3;
  z-index: 1;
}

.floating-leaf-2 {
  position: absolute;
  bottom: 8rem;
  right: 4rem;
  width: 5rem;
  height: 5rem;
  opacity: 0.25;
  z-index: 1;
}

.floating-drop {
  position: absolute;
  top: 33.333333%;
  right: 25%;
  width: 3rem;
  height: 3rem;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  font-size: var(--text-button, 0.875rem);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: var(--text-h1, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: var(--letter-spacing, -0.025em);
}

.hero-subtitle {
  font-size: var(--text-base, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero-product {
  margin-top: 2rem;
}

.product-image {
  width: 12rem;
  height: 12rem;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 0.25rem;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  margin-top: 0.5rem;
  animation: pulse 2s infinite;
}

/* Description Section */
.description-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.description-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.section-badge:hover {
  transform: translateY(-2px);
}

.section-badge.blue {
  background: #dbeafe;
  color: #1e40af;
}

.section-badge.white {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.section-badge.green {
  background: rgba(3, 93, 55, 0.1);
  color: var(--color-primary);
}

.section-title {
  font-size: var(--text-h2, clamp(1.5rem, 4vw, 2.25rem));
  font-weight: 700;
  color: var(--color-text, #111827);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title.white {
  color: white;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-secondary, #6b7280);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto;
}

.description-text {
  font-size: var(--text-base, clamp(1rem, 1.5vw, 1.125rem));
  color: var(--color-text-secondary, #374151);
  line-height: var(--line-height, 1.75);
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--btn-radius, 12px);
  text-decoration: none;
  font-family: var(--font-buttons);
  font-size: var(--text-button, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px -2px rgba(3, 93, 55, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(3, 93, 55, 0.4);
}

.cta-button:active {
  transform: translateY(-1px);
}

.product-image-scroll {
  position: relative;
}

.product-showcase {
  position: relative;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent));
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.showcase-image {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.showcase-decoration-1 {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 3s infinite;
}

.showcase-decoration-2 {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 8rem;
  height: 8rem;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.15;
  animation: pulse 3s infinite 1s;
}









/* Responsive Design */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .floating-leaf-1 {
    width: 6rem;
    height: 6rem;
  }

  .floating-leaf-2 {
    width: 8rem;
    height: 8rem;
  }

  .floating-drop {
    width: 4rem;
    height: 4rem;
  }

  .product-image {
    width: 16rem;
    height: 16rem;
  }

  .description-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}



/* Animations */
@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(-50%, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(-50%, -30px, 0);
  }
  70% {
    transform: translate3d(-50%, -15px, 0);
  }
  90% {
    transform: translate3d(-50%, -4px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}















/* Estilos para el Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


    .hero-section-split {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 90vh; /* Altura mínima para ocupar la pantalla */
        padding: 8rem 2rem 4rem 2rem; /* Espaciado interno */
        background-color: #f9fafb; /* Un fondo suave */
        position: relative;
        overflow: hidden;
    }

    .hero-section-split::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 300px;
        background: linear-gradient(180deg, rgba(3,93,55,0.03) 0%, transparent 100%);
        pointer-events: none;
    }

    .hero-split-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos columnas de igual tamaño */
        align-items: center;
        gap: clamp(2rem, 4vw, 4rem); /* Espacio entre el texto y el video */
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }

    .hero-text-content {
        text-align: left; /* Alineamos el texto a la izquierda */
    }

    .hero-video-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-video-text {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        line-height: 1.7;
        opacity: 0.9;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-video-wrapper {
        border-radius: clamp(1rem, 3vw, 2rem); /* Bordes redondeados para el contenedor del video */
        overflow: hidden; /* Esconde cualquier parte del video que se salga */
        box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25); /* Sombra suave */
        transform: perspective(1000px) rotateY(-5deg); /* Efecto 3D sutil */
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .hero-video-wrapper:hover {
        transform: perspective(1000px) rotateY(0deg) scale(1.02); /* Animación al pasar el mouse */
        box-shadow: 0 35px 70px -10px rgba(0, 0, 0, 0.3);
    }

    .hero-video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que el video cubra el contenedor */
        display: block;
    }

    .hero-lema {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .hero-sublema {
        font-size: clamp(1rem, 2vw, 1.25rem);
        line-height: 1.7;
        opacity: 0.9;
        margin-bottom: 2rem;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1.5rem;
        border-radius: 50px;
        font-size: clamp(0.75rem, 1.2vw, 0.9rem);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2);
        transition: all 0.3s ease;
    }

    .hero-badge:hover {
        transform: translateY(-2px);
    }

    /* --- Adaptación para móviles (Responsive) --- */
    @media (max-width: 992px) {
        .hero-section-split {
            padding: 6rem 1.5rem 3rem 1.5rem;
            min-height: auto;
        }
        .hero-split-container {
            grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
            text-align: center;
            gap: 2.5rem;
        }
        .hero-text-content {
            order: 2; /* El texto aparecerá debajo del video */
            text-align: center;
        }
        .hero-video-column {
            order: 1; /* El video aparecerá arriba del texto */
        }
        .hero-video-wrapper {
            transform: perspective(1000px) rotateY(0deg); /* Quitamos el efecto 3D en móvil */
            max-width: 500px;
            margin: 0 auto;
        }
        .hero-badge {
            margin-left: auto;
            margin-right: auto;
        }
    }

    @media (max-width: 600px) {
        .hero-section-split {
            padding: 5rem 1rem 2.5rem 1rem;
        }
        .hero-video-wrapper {
            border-radius: 1rem;
        }
    }