.timeline-container {
    position: relative;
    padding: 20px;
}
/* Línea vertical */
.timeline-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #00C4B3; /* Color de la línea */
    transform: translateX(-50%);
}

/* Punto en cada fila */
.timeline-row {
    position: relative;
}

.timeline-row::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: #00C4B3; /* Color del punto */
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 750px) {
    .timeline-row::after {
        content: "";
        position: absolute;
        top: 3%;
        left: -8px;
        width: 15px;
        height: 15px;
        background-color: #00C4B3;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }
    .timeline-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 100%;
        background-color: #00C4B3; /* Color de la línea */
        transform: translateX(-50%);
    }
}
/* Para desktop (mostrar 3 imágenes por slide) */
@media (min-width: 768px) {
    .carousel-item .row {
        display: flex;
        justify-content: space-between;
    }
    .carousel-item .col-4 {
        flex: 0 0 33.33%; /* Cada imagen ocupará 1/3 del ancho en pantallas grandes */
    }
}
/* Para móvil (mostrar 1 imagen por slide) */
@media (max-width: 767px) {
    .carousel-item .row {
        display: block;
    }
    .carousel-item .col-4 {
        flex: 0 0 100%; /* Cada imagen ocupará el 100% del ancho en pantallas pequeñas */
    }
}

/* Limit the perspective decoration to its section so it cannot extend below
   the footer when the following sections are omitted. */
.service-area-4 > .shadow-shape-right {
    top: 0;
    height: 100%;
}

.perspective-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.perspective-card-link:hover {
    color: inherit;
}

.perspective-card-link:focus-visible {
    outline: 3px solid var(--theme-color);
    outline-offset: 4px;
    border-radius: 20px;
}

/* Instagram feed on the home page */
.home-instagram {
    background: #f7f9f9;
}

.home-instagram__feed {
    min-height: 1px;
}

.home-instagram__feed #sb_instagram {
    padding-bottom: 0 !important;
}

/* Keep WordPress-rendered emoji images at inline text size. */
img.emoji,
img.wp-smiley {
    display: inline !important;
    width: 1em !important;
    height: 1em !important;
    margin: 0 0.07em !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: -0.1em !important;
    box-shadow: none !important;
    background: none !important;
}
.h-200{
    max-height: 200px;
}
.slick-carousel .slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.slick-carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.background-image {
    background-size: cover;
    object-position: center;
    background-repeat: no-repeat;
}
.fs-24{
    font-size: 24px !important;
}
.h-90 {
    height: 90px !important;
    object-fit: contain;
}
.wpforms-field-container, .wpforms-container .wpforms-form *{
    border-color: #00C4B3 !important;
}
.wpforms-submit {
    background-color: #00C4B3 !important;
}

/* Estilos para las tarjetas de contacto comerciales */

.contact-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.contact-card__image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.contact-card__image img {
    width: 100%;
    height: 330px !important;
    object-fit: cover;
    object-position: center;
}

.contact-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-card__name {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.contact-card__location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #333333;
    font-size: 15px;
}

.contact-card__location i {
    color: #00C4B3;
    font-size: 16px;
}

.contact-card__info {
    margin-bottom: 25px;
    flex-grow: 1;
}

.contact-card__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-card__item i {
    color: #00C4B3;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-card__item a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card__item a:hover {
    color: #5FA8D3;
}

.contact-card__whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #00C4B3;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.contact-card__whatsapp-btn i {
    font-size: 20px;
}

.contact-card__whatsapp-btn:hover {
    background-color: #00C4B3;
    transform: scale(1.02);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .contact-card__image {
        height: 250px;
    }
    
    .contact-card__content {
        padding: 20px;
    }
    
    .contact-card__name {
        font-size: 22px;
    }
}

/* ========================================
   Página Gracias: fondo negro para logo blanco y header visible
   ======================================== */
body.page-gracias {
    background: #000000;
}

.page-gracias .page-gracias-content {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Fondo negro en la sección (clase gracias-section) */
.gracias-section {
    background: #000000 !important;
    padding-top: 5rem !important;
    padding-bottom: 4rem !important;
}

/* Logo blanco sobre fondo negro */
.page-gracias .gracias-logo a {
    display: inline-block;
}

.page-gracias .gracias-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

/* Todo el texto en blanco sobre fondo negro */
.gracias-section .gracias-label,
.gracias-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff !important;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.gracias-section .gracias-title,
.gracias-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 1.25rem;
}

.gracias-section .gracias-desc,
.gracias-desc {
    font-size: 1.0625rem;
    color: #fff !important;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gracias-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease;
}

.gracias-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: #fff;
}

/* Product brochures */
.product-brochures__panel {
    border-color: rgba(9, 105, 97, 0.2) !important;
}

.product-brochures__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--theme-color);
    color: #fff;
    font-size: 30px;
}

.product-brochures__links .global-btn {
    min-width: 210px;
    margin: 0;
}

@media (max-width: 991px) {
    .product-brochures__links .global-btn {
        width: 100%;
    }
}

/* Product lines on the home page */
.product-lines-section {
    background: #fff;
}

.product-line-card {
    background: #f5f7f7;
    border: 1px solid rgba(9, 105, 97, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-line-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(4, 45, 41, 0.12);
}

.product-line-card__image {
    height: 330px;
    overflow: hidden;
    background: linear-gradient(135deg, #e7f4f2 0%, #f9fbfb 100%);
}

.product-line-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 45, 41, 0.22), transparent 48%);
}

.product-line-card__image img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-line-card:hover .product-line-card__image img {
    transform: scale(1.035);
}

.product-line-card__number {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 1;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.product-line-card__content {
    display: flex;
    min-height: 335px;
    flex-direction: column;
}

.product-line-card__eyebrow {
    font-size: 13px;
    letter-spacing: 0.12em;
}

.product-line-card__title {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}

.product-line-card__footer {
    margin-top: auto;
}

.product-line-card__tag {
    padding: 7px 13px;
    border-radius: 100px;
    background: rgba(0, 196, 179, 0.12);
    color: var(--theme-color);
    font-size: 13px;
    font-weight: 700;
}

.product-line-card__link {
    color: var(--theme-color);
}

.product-line-card__link:hover {
    color: var(--theme-color2);
}

@media (max-width: 767px) {
    .product-line-card__image {
        height: 250px;
    }

    .product-line-card__content {
        min-height: auto;
    }

    .product-line-card__footer {
        align-items: flex-start !important;
        flex-direction: column;
    }
}