/* Modern Home Styles - GWT00002 */

/* Hero Section with Carousel Background */
.modern-hero-with-carousel {
    position: relative;
    margin-bottom: 40px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

/* Carousel Background */
.hero-carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel-background .hero-slider-item-wrapper {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 500px !important;
    max-height: 500px !important;
}

.hero-carousel-background .single-slider-item {
    width: 100%;
}

.hero-carousel-background .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* Welcome Content on top */
.hero-welcome-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 0;
    text-align: center;
}

.hero-welcome-content .welcome-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hero-welcome-content .welcome-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorCorporativoClaro, #f39c12) 50%, var(--colorCorporativoOscuro, #d35400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-welcome-content .welcome-subtitle {
    font-size: 18px;
    color: #f5f5f5;
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1199px) {
    .modern-hero-with-carousel {
        min-height: 400px;
    }

    .hero-carousel-background .hero-slider-item-wrapper {
        height: 400px !important;
        max-height: 400px !important;
    }

    .hero-welcome-content {
        min-height: 400px;
        padding: 30px 0;
    }

    .hero-welcome-content .welcome-content {
        padding: 30px;
    }

    .hero-welcome-content .welcome-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .modern-hero-with-carousel {
        min-height: 350px;
    }

    .hero-carousel-background .hero-slider-item-wrapper {
        height: 350px !important;
        max-height: 350px !important;
    }

    .hero-welcome-content {
        min-height: 350px;
        padding: 30px 0;
    }

    .hero-welcome-content .welcome-content {
        padding: 25px;
        margin: 0 15px;
    }

    .hero-welcome-content .welcome-title {
        font-size: 32px;
    }

    .hero-welcome-content .welcome-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .modern-hero-with-carousel {
        min-height: 300px;
        border-radius: 0 0 12px 12px;
    }

    .hero-carousel-background .hero-slider-item-wrapper {
        height: 300px !important;
        max-height: 300px !important;
    }

    .hero-welcome-content {
        min-height: 300px;
        padding: 20px 0;
    }

    .hero-welcome-content .welcome-content {
        padding: 20px;
        margin: 0 10px;
        border-radius: 16px;
    }

    .hero-welcome-content .welcome-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-welcome-content .welcome-subtitle {
        font-size: 14px;
    }
}

/* Old welcome section styles (keep for compatibility) */
.welcome-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #d35400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Products Section */
.products-section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.products-section.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-icon {
    font-size: 32px;
    color: var(--colorCorporativo, #e67e22);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0;
    position: relative;
}

.section-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.section-content {
    background: white;
    padding: 20px 10px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.section-content.hide-component-title {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Info Section */
.info-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Hide component titles when displayed in home sections */
.hide-component-title .component-title-row,
.hide-component-title > .container > .row > .col-lg-7 > .section-title.mb-20,
.hide-component-title .section-title.mb-20 {
    display: none;
}

/* Slick slider arrows positioning - Override personalizacion.css */
.section-content .slick-slider .slick-prev,
.section-content .slick-slider .slick-next,
.section-content .slick-prev,
.section-content .slick-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    background: var(--colorCorporativo, #e67e22) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-size: 18px !important;
}

.section-content .slick-slider .slick-prev:hover,
.section-content .slick-slider .slick-next:hover,
.section-content .slick-prev:hover,
.section-content .slick-next:hover {
    background: var(--colorCorporativoOscuro, #d35400) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.section-content .slick-slider .slick-prev:before,
.section-content .slick-slider .slick-next:before,
.section-content .slick-prev:before,
.section-content .slick-next:before {
    color: var(--colorTextoBoton, #fff) !important;
    font-size: 18px !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.section-content .slick-slider .slick-prev:after,
.section-content .slick-slider .slick-next:after,
.section-content .slick-prev:after,
.section-content .slick-next:after {
    color: var(--colorTextoBoton, #fff) !important;
}

.section-content .slick-prev {
    left: -15px;
}

.section-content .slick-next {
    right: -15px;
}

.section-content .product-single-row-slider-wrapper {
    position: relative;
    padding: 0 10px;
}

.section-content.hide-component-title .container {
    max-width: 100%;
    padding: 0 50px;
}

/* Product cards in home sections inherit from base style.css,
   these are additional overrides for section-content context */
.section-content .single-slider-product-wrapper,
.section-content .single-slider-product {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section-content .single-slider-product__image-container {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.section-content .single-slider-product-wrapper:hover {
    border-color: var(--colorCorporativo);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.section-content .slick-slide {
    overflow: visible;
}

.section-content .slick-list {
    overflow: hidden;
    padding: 8px 0;
    margin: -8px 0;
}

@media (max-width: 768px) {

    .section-content .slick-prev,
    .section-content .slick-next {
        display: none !important;
    }

    .section-content .product-single-row-slider-wrapper {
        padding: 0;
        overflow: visible;
    }

    /* Indicador visual de scroll/deslizamiento en móvil */
    .section-content .slick-slider {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: var(--colorCorporativo, #e67e22) #f0f0f0;
        padding: 20px 0;
    }

    .section-content .slick-slider::-webkit-scrollbar {
        height: 6px;
    }

    .section-content .slick-slider::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }

    .section-content .slick-slider::-webkit-scrollbar-thumb {
        background: var(--colorCorporativo, #e67e22);
        border-radius: 3px;
    }

    /* Efecto carrusel: elemento central más grande, laterales más pequeños */
    .section-content .slick-slider .slick-slide {
        transform: scale(0.85);
        opacity: 0.6;
        transition: all 0.3s ease;
        margin: 0 5px;
    }

    .section-content .slick-slider .slick-slide.slick-center,
    .section-content .slick-slider .slick-slide.slick-current {
        transform: scale(1);
        opacity: 1;
        z-index: 2;
    }

    /* Mostrar bordes de elementos adyacentes */
    .section-content {
        overflow: hidden;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Indicador visual de "desliza para ver más" */
    .section-content::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 80%;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
        pointer-events: none;
        z-index: 5;
    }

    .section-content::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 80%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
        pointer-events: none;
        z-index: 5;
    }

    .section-content {
        position: relative;
    }

    /* Hint de deslizamiento */
    .section-content .product-single-row-slider-wrapper::after {
        content: '← Desliza →';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(230, 126, 34, 0.9);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        z-index: 10;
        animation: fadeOutHint 3s ease-in-out forwards;
        pointer-events: none;
    }

    @keyframes fadeOutHint {

        0%,
        50% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            visibility: hidden;
        }
    }
}


/* Video Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #d35400 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-header .close {
    color: white;
    opacity: 1;
    text-shadow: none;
    font-size: 28px;
}

.modal-header .close:hover {
    color: white;
    opacity: 0.8;
}

.modal-title {
    font-weight: 600;
}

.videoContainer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.videoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 32px;
    }

    .welcome-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-icon {
        font-size: 24px;
    }

    .section-content {
        padding: 20px;
    }

    .welcome-section {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-content {
        padding: 15px;
    }

    .modern-hero-section {
        border-radius: 0;
    }
}

/* =============================================
   COMPONENTE HTML  —  Prosa moderna
   ============================================= */

/* Animación de entrada */
@keyframes hcFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.html-content--anim {
    animation: hcFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Sección wrapper */
.html-content-section {
    background: #f4f6f9;
    padding: 48px 0 60px;
}

/* Tarjeta */
.html-content-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 40px rgba(0, 0, 0, 0.07);
    padding: 48px 56px 52px;
    overflow: hidden;
}

/* Barra de acento superior */
.html-content-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--colorCorporativo) 0%, color-mix(in srgb, var(--colorCorporativo) 60%, #fff) 100%);
}

/* Fallback para navegadores sin color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .html-content-accent {
        background: var(--colorCorporativo);
    }
}

/* Círculo decorativo de fondo */
.html-content-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--colorCorporativoRGB, 26, 90, 160), 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Tipografía de prosa ---- */
.html-content {
    color: #3a3a3a;
    font-size: 16px;
    line-height: 1.8;
    max-width: 100%;
}

/* Primer párrafo destacado (lead) */
.html-content p:first-of-type {
    font-size: 17.5px;
    color: #222;
    font-weight: 500;
    line-height: 1.75;
    border-left: 4px solid var(--colorCorporativo);
    padding-left: 18px;
    margin-bottom: 1.4em;
}

.html-content p {
    margin-bottom: 1.2em;
    color: #4a4a4a;
}

/* Headings */
.html-content h1,
.html-content h2,
.html-content h3,
.html-content h4,
.html-content h5,
.html-content h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: #111827;
}

.html-content h1 {
    font-size: 2rem;
}

.html-content h2 {
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.html-content h3 {
    font-size: 1.2rem;
}

.html-content h4 {
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #555;
}

.html-content h1:first-child,
.html-content h2:first-child,
.html-content h3:first-child {
    margin-top: 0;
}

/* Links */
.html-content a {
    color: var(--colorCorporativo);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
}

.html-content a:hover {
    border-bottom-color: var(--colorCorporativo);
    opacity: 0.75;
}

/* Imágenes */
.html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 2em auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Separadores */
.html-content hr {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 2.5em 0;
}

/* Listas */
.html-content ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.2em;
}

.html-content ul li {
    padding-left: 1.6em;
    position: relative;
    margin-bottom: 0.5em;
    color: #444;
}

.html-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--colorCorporativo);
    opacity: 0.7;
}

.html-content ol {
    padding-left: 1.4em;
    margin-bottom: 1.2em;
    counter-reset: ol-counter;
    list-style: none;
}

.html-content ol li {
    counter-increment: ol-counter;
    position: relative;
    padding-left: 0.5em;
    margin-bottom: 0.5em;
    color: #444;
}

.html-content ol li::before {
    content: counter(ol-counter) ".";
    font-weight: 700;
    color: var(--colorCorporativo);
    margin-right: 8px;
}

/* Citas */
.html-content blockquote {
    margin: 2em 0;
    padding: 20px 24px 20px 28px;
    border-left: 4px solid var(--colorCorporativo);
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f4f9 100%);
    border-radius: 0 12px 12px 0;
    color: #444;
    font-style: italic;
    font-size: 16.5px;
}

.html-content blockquote p {
    margin: 0;
    font-size: inherit;
    border-left: none;
    padding-left: 0;
    font-weight: normal;
}

/* Tablas */
.html-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 14.5px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.html-content th {
    background: var(--colorCorporativo);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.html-content td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.html-content tr:last-child td {
    border-bottom: none;
}

.html-content tr:nth-child(even) td {
    background: #f8fafb;
}

/* Código inline */
.html-content code {
    font-family: 'Courier New', monospace;
    font-size: 13.5px;
    background: #f1f3f7;
    padding: 2px 7px;
    border-radius: 5px;
    color: #c0392b;
    border: 1px solid #e4e8ef;
}

/* Responsive */
@media (max-width: 991px) {
    .html-content-card {
        padding: 36px 32px 40px;
    }
}

@media (max-width: 767px) {
    .html-content-section {
        padding: 28px 0 36px;
    }

    .html-content-card {
        padding: 28px 20px 32px;
        border-radius: 12px;
    }

    .html-content {
        font-size: 15px;
    }

    .html-content p:first-of-type {
        font-size: 16px;
    }

    .html-content h1 {
        font-size: 1.55rem;
    }

    .html-content h2 {
        font-size: 1.3rem;
    }

    .html-content h3 {
        font-size: 1.1rem;
    }
}

/* ===== End ComponenteHTML ===== */

/* =============================================
   FEATURE CARDS  (icon-feature-area moderno)
   ============================================= */

.feature-cards-section {
    padding: 52px 0 60px;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    position: relative;
}

.feature-cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--colorCorporativo) 40%, var(--colorCorporativo) 60%, transparent 100%);
    opacity: 0.3;
}

/* Grid de tarjetas */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Tarjeta individual */
.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--colorCorporativo);
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09), 0 20px 60px rgba(0, 0, 0, 0.07);
}

.feature-card:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Icono */
.feature-card__icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--colorCorporativoRGB, 26, 90, 160), 0.07) 0%, rgba(var(--colorCorporativoRGB, 26, 90, 160), 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(var(--colorCorporativoRGB, 26, 90, 160), 0.12) 0%, rgba(var(--colorCorporativoRGB, 26, 90, 160), 0.06) 100%);
}

.feature-card__icon img {
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
}

/* Título */
.feature-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--colorCorporativo);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Texto */
.feature-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-cards-section {
        padding: 40px 0 48px;
    }
}

@media (max-width: 575px) {
    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-cards-section {
        padding: 28px 0 36px;
    }
}

/* ===== End Feature Cards ===== */