/**
 * Estilos para la Página de Inicio
 * Incluye: Hero, Features, Services, Products, Stats, Testimonials, Blog y CTA
 * Paleta Corporativa Arya: Verde #1ea894 + Azul #1b6983
 */

/* ============================================
   FULL WIDTH — Eliminar límites del tema GeneratePress
   ============================================ */

body:has(.home-page-wrapper),
body:has(.home-page-wrapper) .site,
body:has(.home-page-wrapper) #page,
body:has(.home-page-wrapper) .site-content,
body:has(.home-page-wrapper) #content {
    background: var(--color-background) !important;
}

body:has(.home-page-wrapper) .grid-container,
body:has(.home-page-wrapper) .site-main,
body:has(.home-page-wrapper) .inside-article,
body:has(.home-page-wrapper) .entry-content,
body:has(.home-page-wrapper) article,
body:has(.home-page-wrapper) .entry-header,
body:has(.home-page-wrapper) .post-image {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body:has(.home-page-wrapper) .home-page-wrapper {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* ============================================
   GENERAL
   ============================================ */

.home-page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.home-hero {
    position: relative;
    min-height: 100vh;       /* fallback navegadores antiguos */
    min-height: 100svh;      /* small viewport height: descuenta barras del navegador en móvil */
    min-height: 100dvh;      /* dynamic viewport height: se adapta en tiempo real al tamaño de pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 54, 83, 1) 0%, #1b6983 50%, #185458 100%);
    overflow: hidden;
}

/* Hero Slider Container - Debe estar encima del fondo */
.home-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

/* Overlay con degradado - Encima del slider */
.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 2, 20, 0.80) 0%, rgba(15, 60, 70, 0.65) 40%, rgba(10, 40, 60, 0.50) 70%, rgba(0, 0, 0, 0.40) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Individual Slides */
.home-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    will-change: opacity;
}

.home-hero-slide.active {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 1; /* Asegurar que la slide activa esté encima */
}

/* Transición Fade (por defecto) */
.slider-transition-fade .home-hero-slide {
    transition: opacity 1.5s ease-in-out;
}

/* Transición Slide - También usa opacity pero con transform opcional */
.slider-transition-slide .home-hero-slide {
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.05);
}

.slider-transition-slide .home-hero-slide.active {
    transform: scale(1);
}

/* Hexagon Pattern - DESACTIVADO
.home-hero-hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(30, 168, 148, 0.6);
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 30%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 30%, transparent 100%);
}
*/

.home-hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 80px 20px;
}

.home-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-hero-text {
    max-width: 800px;
    text-align: center;
}

.home-hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.home-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.hero-title-highlight {
    color: #1ea894;
    text-shadow: 0 0 30px rgba(30, 168, 148, 0.5);
}

.home-hero-highlight {
    display: block;
    background: linear-gradient(90deg, #1ea894, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 40px;
    max-width: 600px;
}

.home-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-hero-button.primary {
    background: rgba(30, 168, 148, 0.25);
    color: #fff;
    border: 1.5px solid rgba(30, 168, 148, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(30, 168, 148, 0.2);
}

.home-hero-button.primary:hover {
    background: rgba(30, 168, 148, 0.4);
    border-color: rgba(30, 168, 148, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30, 168, 148, 0.35);
}

.home-hero-button.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.home-hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
}

.home-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   ABOUT/PRESENTACIÓN SECTION
   ============================================ */

.home-about {
    padding: 160px 0;
    background: linear-gradient(135deg, #140428 0%, #1b2a3d 50%, #1b6983 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.home-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(30, 168, 148, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Partículas flotantes */
.home-about-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-about-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: about-float 8s ease-in-out infinite;
    opacity: 0.12;
}

.home-about-particles span:nth-child(1) { width: 500px; height: 500px; background: radial-gradient(circle, #1ea894, transparent); top: -15%; left: -8%; animation-delay: 0s; }
.home-about-particles span:nth-child(2) { width: 350px; height: 350px; background: radial-gradient(circle, #1b6983, transparent); bottom: -10%; right: -5%; animation-delay: 2s; }
.home-about-particles span:nth-child(3) { width: 220px; height: 220px; background: radial-gradient(circle, #2dd4bf, transparent); top: 25%; right: 8%; animation-delay: 4s; }
.home-about-particles span:nth-child(4) { width: 160px; height: 160px; background: radial-gradient(circle, #1ea894, transparent); bottom: 15%; left: 12%; animation-delay: 1s; }
.home-about-particles span:nth-child(5) { width: 120px; height: 120px; background: radial-gradient(circle, #1b6983, transparent); top: 55%; left: 45%; animation-delay: 3s; }
.home-about-particles span:nth-child(6) { width: 90px;  height: 90px;  background: radial-gradient(circle, #1ea894, transparent); top: 10%; right: 28%; animation-delay: 5s; }

@keyframes about-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.04); }
}

.home-about-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-about-logo img {
    width: 100%;
    max-width: 720px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(30, 168, 148, 0.35));
}

.home-about-text {
    flex: 1;
    text-align: left;
}

.home-about-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 25px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #a8eddf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-about-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin: 0 0 20px;
}

.home-about-description:last-child {
    margin-bottom: 0;
}

/* Responsive - About Section */
@media (max-width: 768px) {
    .home-about {
        padding: 70px 0;
    }

    .home-about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .home-about-logo img {
        max-width: 340px;
    }

    .home-about-text {
        text-align: center;
    }

    .home-about-title {
        font-size: 28px;
    }

    .home-about-description {
        font-size: 16px;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.home-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.home-section-label {
    display: inline-block;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.home-section-title {
    font-size: 42px;
    font-weight: 800;
    color: #140428;
    margin: 0 0 15px;
    line-height: 1.2;
}

.home-section-description {
    font-size: 18px;
    color: #746d7d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.home-features {
    padding: 100px 0;
    background: #f7fafc;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.home-feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.home-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.home-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.home-feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #140428;
    margin: 0 0 15px;
}

.home-feature-description {
    font-size: 16px;
    color: #746d7d;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.home-services {
    padding: 100px 0;
    background: #f7fafc;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .home-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.home-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    text-decoration: none;
    color: inherit;
}

.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.13);
    color: inherit;
    text-decoration: none;
}

.home-service-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
}

.home-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.home-service-card:hover .home-service-image img {
    transform: scale(1.07);
}

.home-service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35));
    pointer-events: none;
}

.home-service-icon-placeholder {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-service-icon-placeholder span {
    font-size: 60px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

.home-service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

.home-service-content {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-service-title {
    font-size: 17px;
    font-weight: 700;
    color: #140428;
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-service-excerpt {
    font-size: 13.5px;
    color: #746d7d;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-service-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sc, #1ea894);
    font-weight: 600;
    font-size: 13px;
    transition: gap 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.home-service-card:hover .home-service-link {
    gap: 8px;
}

.home-no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #746d7d;
    font-size: 17px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.home-products {
    padding: 100px 0;
    background: #fff;
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .home-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.home-product-badge.sale {
    background: #e53e3e;
    color: #fff;
}

.home-product-badge.featured {
    background: #1ea894;
    color: #fff;
}

.home-product-card.is-featured {
    box-shadow: 0 8px 30px rgba(30, 168, 148, 0.2);
    border: 1.5px solid rgba(30, 168, 148, 0.3);
}

.home-product-price--consult {
    color: #746d7d;
    font-style: italic;
    font-size: 13px;
}

.price-original {
    text-decoration: line-through;
    color: #a0aec0;
    font-size: 13px;
    margin-right: 6px;
}

.price-sale {
    color: #e53e3e;
    font-weight: 700;
    font-size: 17px;
}

.home-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.home-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.home-product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f7fafc;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.05);
}

.home-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    color: #fff;
}

.home-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #48bb78;
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-product-badge.out-of-stock {
    background: #f56565;
}

.home-product-content {
    padding: 25px;
}

.home-product-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.home-product-title a {
    color: #140428;
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-product-title a:hover {
    color: #1ea894;
}

.home-product-desc {
    font-size: 12.5px;
    color: #746d7d;
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: transparent;
    color: #1ea894;
    border: 1.5px solid #1ea894;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    border-radius: 50px;
    transition: background 0.22s ease, color 0.22s ease, gap 0.2s ease;
    letter-spacing: 0.02em;
}

.home-product-button:hover {
    background: #1ea894;
    color: #fff;
    gap: 8px;
}

.home-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #746d7d;
    font-size: 18px;
}

/* ============================================
   STATS SECTION
   ============================================ */

.home-stats {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #140428 0%, #1b2a3d 50%, #1b6983 100%);
}

.home-stats-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(30, 168, 148, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Partículas flotantes - Stats */
.home-stats-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.home-stats-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: stats-float 8s ease-in-out infinite;
    opacity: 0.12;
}
.home-stats-particles span:nth-child(1) {
    width: 100px; height: 100px;
    background: radial-gradient(circle, #1ea894, transparent 70%);
    top: 10%; left: 5%;
    animation-delay: 0s;
}
.home-stats-particles span:nth-child(2) {
    width: 180px; height: 180px;
    background: radial-gradient(circle, #1b6983, transparent 70%);
    top: 60%; left: 20%;
    animation-delay: 1.5s;
}
.home-stats-particles span:nth-child(3) {
    width: 120px; height: 120px;
    background: radial-gradient(circle, #2dd4bf, transparent 70%);
    top: 20%; right: 15%;
    animation-delay: 3s;
}
.home-stats-particles span:nth-child(4) {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #1ea894, transparent 70%);
    bottom: -80px; right: 5%;
    animation-delay: 0.8s;
    opacity: 0.07;
}
.home-stats-particles span:nth-child(5) {
    width: 80px; height: 80px;
    background: radial-gradient(circle, #185458, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: 4s;
}
.home-stats-particles span:nth-child(6) {
    width: 220px; height: 220px;
    background: radial-gradient(circle, #1b6983, transparent 70%);
    bottom: 10%; left: 35%;
    animation-delay: 2s;
    opacity: 0.08;
}
@keyframes stats-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.04); }
}

.home-stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.home-stat-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.home-stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(30, 168, 148, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.home-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 168, 148, 0.25), rgba(27, 105, 131, 0.25));
    border: 1px solid rgba(30, 168, 148, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1ea894;
    margin-bottom: 4px;
}

.home-stat-number {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #a8eddf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-stat-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.home-testimonials {
    padding: 100px 0;
    background: #fff;
}

.home-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.home-testimonial-card {
    background: #f7fafc;
    padding: 40px;
    border-radius: 16px;
    border-left: 4px solid #1ea894;
    transition: all 0.3s ease;
}

.home-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.home-testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.home-testimonial-stars svg {
    color: #ffd700;
}

.home-testimonial-stars svg[fill="none"] {
    color: #d1d5db; /* Color para estrellas vacías */
}

.home-testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #140428;
    margin: 0 0 25px;
    font-style: italic;
}

.home-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-testimonial-author strong {
    font-size: 16px;
    color: #140428;
    font-weight: 600;
}

.home-testimonial-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #746d7d;
}

.home-testimonial-source svg {
    flex-shrink: 0;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.home-blog {
    padding: 100px 0 160px;
    background: #f7fafc;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.home-blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Imagen */
.home-blog-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 70%;
    background: #f0f0f0;
}

.home-blog-card-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-blog-card:hover .home-blog-card-image img {
    transform: scale(1.05);
}

/* Placeholder cuando no hay imagen */
.home-blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(30, 168, 148, 0.1) 0%, 
        rgba(27, 105, 131, 0.1) 100%);
    color: #1ea894;
    position: absolute;
    top: 0;
    left: 0;
}

.home-blog-card-placeholder svg {
    opacity: 0.3;
    transition: all 0.4s ease;
}

.home-blog-card:hover .home-blog-card-placeholder svg {
    opacity: 0.5;
    transform: scale(1.1);
}

/* Contenido */
.home-blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta información */
.home-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #746d7d;
}

.home-blog-card-date,
.home-blog-card-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-blog-card-date svg,
.home-blog-card-reading-time svg {
    opacity: 0.7;
}

/* Título */
.home-blog-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #140428;
}

.home-blog-card-title a {
    color: #140428;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-blog-card:hover .home-blog-card-title a {
    color: #1ea894;
}

/* Excerpt */
.home-blog-card-excerpt {
    color: #746d7d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: auto;
    padding-bottom: 20px;
}

/* Footer */
.home-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.home-blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #140428;
}

.home-blog-card-author img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.home-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1ea894;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-blog-card-link:hover {
    gap: 8px;
}

.home-blog-card-link svg {
    transition: transform 0.3s ease;
}

.home-blog-card-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   SECTION CTA BUTTONS
   ============================================ */

.home-section-cta {
    text-align: center;
    margin-top: 60px;
}

.home-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(30, 168, 148, 0.3);
}

.home-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 168, 148, 0.4);
}

/* ============================================
   BRANDS CAROUSEL SECTION
   ============================================ */

/* ============================================
   BRANDS SECTION
   ============================================ */
.home-brands {
    padding: 72px 0 80px;
    background: #f7fafc;
    overflow: hidden;
}

.home-brands .home-section-header {
    margin-bottom: 48px;
}

/* Marquee wrapper with fade edges */
.home-brands-marquee-wrapper {
    position: relative;
    overflow: hidden;
}

.home-brands-marquee-wrapper::before,
.home-brands-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.home-brands-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f7fafc, transparent);
}

.home-brands-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f7fafc, transparent);
}

/* Infinite scroll track */
@keyframes brands-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-brands-marquee {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: brands-scroll 28s linear infinite;
}

.home-brands-marquee:hover {
    animation-play-state: paused;
}

/* Individual brand item — sin tarjeta, logo directo */
.home-brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    transition: transform 0.3s ease;
}

.home-brand-item:hover {
    transform: translateY(-3px);
}

.home-brand-item img {
    width: auto;
    height: 250px;
    max-width: 250px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.35s ease;
}

.home-brand-item:hover img {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
    .home-brands {
        padding: 56px 0 64px;
    }
    .home-brand-item {
        padding: 0 16px;
    }
    .home-brand-item img {
        height: 40px;
        max-width: 120px;
    }
    .home-brands-marquee-wrapper::before,
    .home-brands-marquee-wrapper::after {
        width: 60px;
    }
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.home-final-cta {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #1b6983 0%, #185458 100%);
    text-align: center;
}

/* Hexagon Pattern en Final CTA */
.home-final-cta-hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(30, 168, 148, 0.15);
    z-index: 1;
    pointer-events: none;
}

.home-final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.home-final-cta-content {
    position: relative;
    z-index: 3;
}

.home-final-cta-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.home-final-cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-final-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid transparent;
    letter-spacing: 0.02em;
}

.home-final-cta-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.home-final-cta-button.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #fff;
    border-color: rgba(37, 211, 102, 0.6);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.home-final-cta-button.whatsapp:hover {
    background: rgba(37, 211, 102, 0.32);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
    border-color: rgba(37, 211, 102, 0.85);
}

.home-final-cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.home-final-cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .home-hero-title {
        font-size: 38px;
    }

    .home-section-title {
        font-size: 36px;
    }

    .home-final-cta-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .home-hero-content {
        padding: 40px 16px;
    }

    .home-hero-title {
        font-size: 32px;
    }

    .home-hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .home-hero-label {
        font-size: 12px;
        padding: 6px 16px;
    }

    .home-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .home-hero-button {
        width: auto;
        min-width: 200px;
        justify-content: center;
        padding: 10px 22px;
        font-size: 13px;
    }

    .home-section-title {
        font-size: 28px;
    }

    .home-section-description {
        font-size: 15px;
    }

    .home-section-header {
        margin-bottom: 40px;
    }

    .home-features,
    .home-services,
    .home-products,
    .home-stats,
    .home-testimonials,
    .home-blog {
        padding: 50px 0;
    }

    .home-final-cta {
        padding: 60px 0;
    }

    .home-final-cta-title {
        font-size: 24px;
    }

    .home-final-cta-description {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .home-final-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .home-final-cta-button {
        width: auto;
        min-width: 220px;
        justify-content: center;
        padding: 10px 22px;
        font-size: 13px;
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .home-stat-item {
        padding: 24px 12px;
    }

    .home-stat-icon {
        width: 48px;
        height: 48px;
    }

    .home-stat-number {
        font-size: 36px;
    }

    .home-stat-label {
        font-size: 12px;
    }

    .home-section-cta {
        margin-top: 40px;
    }

    .home-cta-button {
        padding: 12px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-hero-title {
        font-size: 26px;
    }

    .home-hero-subtitle {
        font-size: 15px;
    }

    .home-section-title {
        font-size: 24px;
    }

    .home-final-cta-title {
        font-size: 22px;
    }

    .home-features-grid,
    .home-services-grid,
    .home-products-grid,
    .home-testimonials-grid,
    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-stat-number {
        font-size: 30px;
    }

    .home-stat-icon {
        width: 40px;
        height: 40px;
    }

    .home-stat-icon svg {
        width: 20px;
        height: 20px;
    }
}
