/* ==========================================================================
   ESTILOS PREMIUM: MAQUINARIA DE EFECTIVO VNE (CORREGIDO Y RESPONSIVO)
   ========================================================================== */
:root {
    --vicon-green-deep: #112d20;   
    --vicon-green-accent: #007736; 
    --vicon-bg-neutral: #fbfcfb;   
    --vicon-border-fine: #e2e7e4;  
    --vicon-text-main: #1e293b;    
    --vicon-text-muted: #64748b;   
    --vicon-white: #ffffff;
}

.vicon-machine-wrapper {
    background-color: var(--vicon-bg-neutral);
    color: var(--vicon-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
    padding-bottom: 60px;
}

/* Envolturas de Bloques Alineados */
.machine-benefits,
.machine-products-section,
.machine-page-footer {
    margin: 0 auto;
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   HERO SECCIÓN (ADAPTABLE)
   ========================================================================== */
.machine-hero {
    width: 100%;
    min-height: 420px;
    height: 60vh; /* Altura proporcional a la pantalla */
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.hero-text-block {
    max-width: 700px; /* Controla la rotura de línea en PC sin usar márgenes fijos */
}

/* Color corregido a verde acentuado brillante para armonizar la marca */
.machine-hero .machine-tag {
    color: #00ff73; 
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin-bottom: 16px;
    display: inline-block;
}

.machine-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--vicon-white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 20px 0;
}

.machine-hero .machine-intro {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #e2e8f0; 
    line-height: 1.6;
}

/* ==========================================================================
   GRID DE BENEFICIOS
   ========================================================================== */
.machine-benefits {
    padding-top: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--vicon-border-fine);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Automático y fluido */
    gap: 40px;
}

.benefit-item {
    position: relative;
}

.benefit-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vicon-green-accent);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vicon-green-deep);
    margin: 0 0 12px 0;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--vicon-text-muted);
    margin: 0;
}

/* ==========================================================================
   CATÁLOGO DE PRODUCTOS (GRID ASIMÉTRICO)
   ========================================================================== */
.machine-products-section {
    padding-top: 20px;
}

.machine-product-row {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
    border-bottom: 1px solid var(--vicon-border-fine);
}

.machine-product-row:last-of-type {
    border-bottom: none;
}

/* Inversión de columnas en PC */
.machine-product-row.row-reverse {
    grid-template-columns: 55% 45%;
}
.machine-product-row.row-reverse .machine-product-image-side {
    order: 2;
}
.machine-product-row.row-reverse .machine-product-info-side {
    order: 1;
}

.machine-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.machine-device-img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0px 15px 30px rgba(17, 45, 32, 0.12));
}

.machine-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #f1f4f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vicon-border-fine);
}

.machine-image-placeholder span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vicon-text-muted);
    font-weight: 600;
}

/* Textos informativos */
.product-brand {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--vicon-green-accent);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Título de producto corregido de fucsia a verde corporativo elegante */
.machine-product-info-side h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--vicon-green-deep);
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.machine-product-info-side h2 small {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--vicon-text-muted);
    display: inline-block;
    margin-left: 8px;
}

.product-description {
    font-size: 1.05rem;
    color: var(--vicon-text-muted);
    margin-bottom: 30px;
}

.product-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.product-specs-list li {
    font-size: 0.95rem;
    color: var(--vicon-text-main);
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-specs-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: var(--vicon-green-accent);
    border-radius: 50%;
}

/* CTAs enlazados */
.product-cta-block {
    margin-top: 20px;
}

.machine-cta-link {
    font-size: 1rem;
    color: var(--vicon-green-deep) !important;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.machine-cta-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--vicon-green-accent);
    transform: scaleX(0.2);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.machine-cta-link:hover {
    color: var(--vicon-green-accent) !important;
}

.machine-cta-link:hover::after {
    transform: scaleX(1);
}

/* ==========================================================================
   FOOTER ASESORAMIENTO DE CAJA
   ========================================================================== */
.machine-page-footer {
    padding-top: 40px;
}

.footer-consulting-box {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--vicon-border-fine);
    max-width: 750px;
    margin: 0 auto;
}

.footer-consulting-box h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--vicon-green-deep);
    margin: 0 0 16px 0;
    font-weight: 700;
}

.footer-consulting-box p {
    color: var(--vicon-text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.machine-btn-primary {
    display: inline-block;
    background-color: var(--vicon-green-deep);
    color: var(--vicon-white) !important;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(17, 45, 32, 0.15);
}

.machine-btn-primary:hover {
    background-color: var(--vicon-green-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 54, 0.2);
}

/* ==========================================================================
   MEDIA QUERIES (OPTIMIZACIÓN BREAKPOINTS RESPONSIVOS)
   ========================================================================== */
@media (max-width: 960px) {
    .machine-hero {
        height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .machine-product-row, 
    .machine-product-row.row-reverse {
        grid-template-columns: 1fr !important; /* Pasa a formato lectura de un bloque */
        gap: 30px;
        padding: 50px 0;
    }
    
    /* Anula los giros de orden en tableta y móvil */
    .machine-product-row.row-reverse .machine-product-image-side,
    .machine-product-row.row-reverse .machine-product-info-side {
        order: 0;
    }
    
    .machine-device-img {
        max-height: 340px;
    }
}