/* ==========================================================================
   PELLET LANDING PAGE STYLES
   ========================================================================== */

/* ——— GENERAL SECTIONS ——— */
.pellet-section {
    padding: 60px 0;
}
.pellet-section-bg-white { background-color: var(--blanco); }
.pellet-section-bg-gray { background-color: var(--fondo); }

@media (min-width: 768px) {
    .pellet-section {
        padding: 80px 0;
    }
}

/* ============== HERO LAYOUT — REVISADO ============== */
.pellet-hero {
    min-height: 100dvh;
    background: linear-gradient(to bottom, #F1F5F9 0%, #FFFFFF 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 120px 0 60px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 2;
    animation: heroFadeSlideUp 1s var(--ease-out-ui) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroFadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-label-new {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--naranja);
}

.pellet-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    line-height: 1.0;
    margin: 0;
    text-transform: uppercase;
    color: var(--azul);
    text-align: center;
}

.pellet-hero h1 .text-naranja {
    color: var(--naranja);
}

.pellet-hero .hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gris-acero);
    max-width: 650px;
    margin: 0;
    line-height: 1.6;
}

.pellet-hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

/* Botones primario y secundario */
.btn-primary-new {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--naranja);
    color: var(--blanco);
    padding: 14px 32px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    transition: all 0.3s var(--ease-out-ui);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-new:hover {
    background-color: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary-new {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: transparent;
    border: 1px solid var(--gris-linea);
    color: var(--azul);
    padding: 14px 32px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-ui);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-new:hover {
    border-color: var(--naranja);
    color: var(--naranja);
    transform: translateY(-2px);
}


/* ——— EL PROBLEMA (Anti-Slop) ——— */
.problema-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: flex-start;
}
.problema-header {
    position: sticky;
    top: 100px;
}
.problema-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gris-linea);
}
.problema-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--gris-linea);
}
.problema-item-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--naranja);
    line-height: 1;
}
.problema-item-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--azul);
    margin-bottom: 12px;
}
.problema-item-content p {
    color: var(--negro);
    line-height: 1.6;
    max-width: 50ch;
}
@media (min-width: 1024px) {
    .problema-split { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* ——— COMO FUNCIONA (Anti-Slop) ——— */
.proceso-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 64px;
}
.proceso-step {
    position: relative;
    padding-top: 24px;
    border-top: 2px solid var(--naranja);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
}
.proceso-num {
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: var(--font-display);
    font-size: 8rem;
    color: var(--azul);
    opacity: 0.04;
    line-height: 1;
    z-index: -1;
    pointer-events: none;
}
.proceso-step h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--azul);
}
.proceso-step p {
    color: var(--negro);
    font-size: 1rem;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .proceso-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
    .proceso-step:nth-child(even) { margin-top: 64px; }
}

/* ——— PLANTAS LLAVE EN MANO (Anti-Slop) ——— */
.plantas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 64px;
}
.planta-card {
    background: var(--blanco);
    border-radius: 0;
    border: 1px solid var(--gris-linea);
    padding: 48px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out-ui);
}
.planta-card:hover {
    transform: translateY(-8px);
}
.planta-card.destacada {
    border: 2px solid var(--naranja);
}
.badge-popular {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--naranja);
    color: var(--blanco);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
}
.planta-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gris-acero);
    font-weight: 600;
    margin-bottom: 8px;
}
.planta-nombre {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--azul);
    margin-bottom: 4px;
}
.planta-capacidad {
    font-size: 0.9rem;
    color: var(--naranja);
    font-weight: 500;
    margin-bottom: 24px;
}
.planta-precio-wrap {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gris-linea);
    padding-bottom: 24px;
}
.planta-precio {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--azul);
    line-height: 1;
}
.planta-precio-sufijo {
    font-size: 0.875rem;
    color: var(--gris-acero);
    margin-left: 4px;
}
.planta-tiempo {
    font-size: 0.85rem;
    color: var(--negro);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.planta-lista {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}
.planta-lista li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    font-size: 0.95rem;
    color: var(--negro);
    line-height: 1.4;
    border-bottom: 1px solid var(--fondo);
}
.planta-lista li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.planta-lista li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--naranja);
    font-weight: bold;
}
.planta-ideal {
    background: var(--fondo);
    padding: 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--azul-claro);
    margin-bottom: 24px;
    line-height: 1.5;
}
.forma-pago-box {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    background: var(--azul);
    color: var(--blanco);
    border-radius: 8px;
}
.forma-pago-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--naranja);
}
.forma-pago-desc {
    font-size: 0.85rem;
    color: var(--gris-linea);
}

@media (min-width: 1024px) {
    .plantas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ——— CASO DISTINTO (CUSTOM) ——— */
.pellet-custom {
    background: var(--azul);
    color: var(--blanco);
    text-align: center;
}
.pellet-custom .section-title { color: var(--blanco); }
.pellet-custom p {
    max-width: 700px;
    margin: 24px auto;
    font-size: 1.125rem;
    color: var(--gris-linea);
    line-height: 1.6;
}

/* ——— CASOS REALES ——— */
.caso-real-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15,42,61,0.05);
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}
.caso-real-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.caso-real-content {
    padding: 32px;
}
.caso-real-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--azul);
    line-height: 1.5;
    margin-bottom: 16px;
}
.caso-real-author {
    font-weight: 600;
    color: var(--naranja);
}
.casos-placeholders {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}
.caso-placeholder {
    background: var(--blanco);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed var(--gris-linea);
    color: var(--gris-acero);
}

@media (min-width: 768px) {
    .caso-real-card { flex-direction: row; }
    .caso-real-img { width: 40%; height: auto; }
    .caso-real-content { width: 60%; padding: 48px; display: flex; flex-direction: column; justify-content: center;}
    .casos-placeholders { grid-template-columns: 1fr 1fr; }
}

/* ——— POR QUE PROPLANTA ——— */
.porque-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}
.porque-card {
    background: var(--fondo);
    padding: 32px;
    border-radius: 4px;
    border-top: 3px solid var(--azul);
}
.porque-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--naranja);
    margin-bottom: 12px;
}
.porque-card p {
    color: var(--negro);
    font-size: 0.95rem;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .porque-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ——— FAQ ACORDEON ——— */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}
.faq-item {
    border-bottom: 1px solid var(--gris-linea);
}
.faq-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--azul);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s var(--ease-out-ui);
}
.faq-btn:hover { color: var(--naranja); }
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s var(--ease-out-ui);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--naranja);
}
.faq-content {
    display: none;
    padding-bottom: 32px;
}
.faq-content p {
    color: var(--negro);
    line-height: 1.6;
}

/* ——— COTIZACION FORM MULTI-STEP ——— */
.cotizacion-wrap {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
}
.cotizacion-info {
    flex: 1;
}
.cotizacion-info .section-title { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 16px; }
.cotizacion-info-sub {
    font-size: 1.125rem;
    color: var(--azul-claro);
    margin-bottom: 32px;
}
.cotizacion-bullets {
    list-style: none;
}
.cotizacion-bullets li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--negro);
}
.cotizacion-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--naranja);
    font-weight: bold;
    font-size: 1.2rem;
}

.cotizacion-form-container {
    flex: 1.2;
    background: var(--blanco);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(15,42,61,0.1);
}

.form-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gris-linea);
    border-radius: 3px;
    transition: background 0.3s ease;
}
.progress-bar.active {
    background: var(--naranja);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.form-step.active {
    display: block;
}

.form-step-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--azul);
    margin-bottom: 8px;
}
.form-step-sub {
    font-size: 0.9rem;
    color: var(--gris-acero);
    margin-bottom: 24px;
}

.pellet-form-group {
    margin-bottom: 20px;
}
.pellet-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--azul);
}
.pellet-form-group input[type="text"],
.pellet-form-group input[type="email"],
.pellet-form-group input[type="tel"],
.pellet-form-group select,
.pellet-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gris-linea);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--fondo);
    transition: all 0.3s ease;
}
.pellet-form-group input:focus,
.pellet-form-group select:focus,
.pellet-form-group textarea:focus {
    outline: none;
    border-color: var(--naranja);
    background: var(--blanco);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.pellet-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--gris-linea);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.checkbox-item:hover, .radio-item:hover {
    background: var(--fondo);
}
.checkbox-item input, .radio-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--naranja);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gris-linea);
}
.btn-prev {
    background: transparent;
    border: none;
    color: var(--gris-acero);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 12px 24px;
    transition: color 0.3s ease;
}
.btn-prev:hover {
    color: var(--azul);
}

.error-message {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}
.has-error .error-message {
    display: block;
}
.has-error input {
    border-color: #EF4444;
}

@media (min-width: 1024px) {
    .cotizacion-wrap { flex-direction: row; }
    .cotizacion-form-container { padding: 48px; }
    .checkbox-grid { grid-template-columns: 1fr 1fr; }
}

/* ——— GRACIAS PAGE ——— */
.gracias-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
}
.gracias-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--azul);
    line-height: 1.1;
    margin-bottom: 24px;
}
.gracias-hero p {
    font-size: 1.25rem;
    color: var(--negro);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.gracias-bullets {
    list-style: none;
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: left;
}
.gracias-bullets li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--negro);
}
.gracias-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--naranja);
    font-weight: bold;
    font-size: 1.2rem;
}
.whatsapp-urgente {
    display: block;
    margin-top: 24px;
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
}
.whatsapp-urgente:hover { text-decoration: underline; }

/* ============== HORIZONTAL SCROLLING STRIP CAROUSEL ============== */
.hero-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 24px 0 40px 0;
    background: transparent;
    z-index: 1;
}

.carousel-overlay-left {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(50px, 15vw, 200px);
    height: 100%;
    background: linear-gradient(to right, #FFFFFF 10%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.carousel-overlay-right {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(50px, 15vw, 200px);
    height: 100%;
    background: linear-gradient(to left, #FFFFFF 10%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollStrip 45s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-group {
    display: flex;
    gap: 24px;
    padding-right: 24px;
}

.carousel-card {
    width: 340px;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(15, 42, 61, 0.08);
    transition: transform 0.4s var(--ease-out-ui), box-shadow 0.4s var(--ease-out-ui);
    cursor: pointer;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-ui);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.72) 100%);
    z-index: 2;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.card-badge {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--blanco);
    margin: 0;
    line-height: 1.2;
}

/* Hover effects */
.carousel-card:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 42, 61, 0.16);
}

.carousel-card:hover img {
    transform: scale(1.05);
}

/* Seamless Loop Animation */
@keyframes scrollStrip {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation-play-state: paused;
    }
}

@media (max-width: 768px) {
    .carousel-card {
        width: 300px;
        height: 400px;
    }
    .carousel-group {
        gap: 16px;
        padding-right: 16px;
    }
}





/* === SECCIÓN CASOS REALES — LAYOUT 2 COLUMNAS === */

.casos-section {
  padding: 80px 0;
  background: var(--blanco);
}

.casos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.casos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Columna izquierda */
.casos-texto {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.casos-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--naranja);
  text-transform: uppercase;
}

.casos-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.0;
  color: var(--azul);
  margin: 0;
}

.casos-cita {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--azul);
  font-style: italic;
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--naranja);
}

.casos-cliente {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--naranja);
  margin: 0;
}

.casos-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-casos-primario {
  display: inline-block;
  padding: 14px 28px;
  background: var(--naranja);
  color: var(--blanco);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.25s var(--ease-out-ui);
}

.btn-casos-primario:hover {
  background: var(--naranja-hover);
}

.btn-casos-secundario {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--azul);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  border: 1.5px solid var(--gris-linea);
  transition: border-color 0.25s var(--ease-out-ui), color 0.25s var(--ease-out-ui);
}

.btn-casos-secundario:hover {
  border-color: var(--naranja);
  color: var(--naranja);
}

/* Columna derecha: video */
.casos-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--negro);
}

.casos-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}



/* === HERO VIDEO FONDO === */

.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Contenedor del iframe de fondo */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Iframe sobredimensionado para cubrir todo el hero */
.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Ancho mínimo para cubrir: relación 16:9 desde el alto */
  width: 177.78vh; /* 16/9 * 100vh */
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw; /* 9/16 * 100vw */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* Overlay: gradiente de arriba (transparente) a abajo (negro semiopaco) */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

/* Contenido posicionado */
.hero-video-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 72px 40px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.hero-video-texto {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-video-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0;
  color: var(--blanco);
  margin: 0;
  letter-spacing: 0.01em;
}

.hero-video-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 540px;
}

/* Botones */
.hero-video-acciones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.btn-hero-primario {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--naranja);
  color: var(--blanco);
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.25s var(--ease-out-ui);
}

.btn-hero-primario:hover {
  background: var(--naranja-hover);
}

.btn-hero-secundario {
  display: inline-block;
  padding: 16px 28px;
  background: transparent;
  color: var(--blanco);
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  transition: border-color 0.25s var(--ease-out-ui);
}

.btn-hero-secundario:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   SECCIÓN RESPONSIVE CONSOLIDADA — Smart-Phones y Tablets
   ========================================================================== */

@media (max-width: 768px) {
  /* --- REGLAS GENERALES Y ESPACIADOS --- */
  .pellet-section {
    padding: 56px 0;
  }
  .section-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .container {
    padding: 0 16px;
  }

  /* --- 1. HERO CON VIDEO DE FONDO --- */
  .hero-video-section {
    height: 100vh;
    height: 100svh;
    min-height: 100svh;
  }
  .hero-video-iframe {
    width: 177.78vh;
    width: 177.78svh;
    height: 100vh;
    height: 100svh;
    min-height: 56.25vw;
  }
  .hero-video-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px 56px 16px;
    gap: 24px;
  }
  .hero-video-texto {
    gap: 16px;
  }
  .hero-video-titulo {
    font-size: clamp(36px, 8vw, 48px);
  }
  .hero-video-subtitulo {
    font-size: clamp(14px, 4vw, 16px);
    max-width: 100%;
  }
  .hero-video-acciones {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
  }
  .btn-hero-primario,
  .btn-hero-secundario {
    flex: 1 1 140px;
    min-height: 48px;
    padding: 14px 20px;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }

  /* --- 2. SECCIÓN PLANTAS (cards) --- */
  .planta-card {
    width: 100%;
    padding: 32px 20px;
    border-radius: 12px;
  }
  .planta-card .btn-primary,
  .planta-card .btn-secondary {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
  }

  /* --- 3. SECCIÓN CASOS REALES (2 columnas) --- */
  .casos-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .casos-video-wrapper {
    max-height: 420px;
    order: -1; /* video va primero */
  }
  .casos-acciones {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-casos-primario,
  .btn-casos-secundario {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
  }
  .casos-cita {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 16px;
  }



  /* --- 5. FORMULARIO MULTI-PASO DE COTIZACIÓN --- */
  .cotizacion-form-container {
    padding: 24px 16px;
  }
  .pellet-form-group input,
  .pellet-form-group select,
  .pellet-form-group textarea {
    font-size: 16px !important; /* evita auto-zoom */
  }
  .checkbox-item, .radio-item {
    min-height: 48px;
    padding: 12px 16px;
  }
  .checkbox-item input, .radio-item input {
    min-width: 20px;
    min-height: 20px;
  }
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  .form-actions button,
  .btn-prev {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-prev {
    border: 1.5px solid var(--gris-linea);
    border-radius: 9999px;
    background: var(--blanco);
    color: var(--azul);
  }
  .form-progress {
    gap: 6px;
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   AJUSTES PARA MÓVILES PEQUEÑOS (480px o menos)
   ========================================================================== */

@media (max-width: 480px) {
  .hero-video-titulo {
    font-size: clamp(34px, 10vw, 42px);
  }
  .hero-video-content {
    padding: 0 16px 40px 16px;
    gap: 20px;
  }
  .planta-card {
    padding: 24px 16px;
  }
  .form-step-heading {
    font-size: 1.3rem;
  }
}






