/* =========================
   WRAPPER
   ========================= */

.apfc-services-wrap{
	width:100%;
	background-color:#f4f4f4;
}

.apfc-services {
    margin: 0 auto;
    padding: 16px;
	padding-top:48px;
	max-width: 1382px;
}

/* =========================
   TABS
   ========================= */

.apfc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
	background-color:#f5f5f5;
	border-radius: 10px;
}

.apfc-tab {
    flex: 1;
    padding: 18px !important;
    background: #fff;
    border: 0 !important;
    outline: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600 !important;
	font-size: 18px !important;
    color: #444;
    transition: background .15s ease, color .15s ease;
}

/* No activo */
.apfc-tab:not(.active) {
    background: #fff;
    color: #555;
}

/* Activo */
.apfc-tab.active {
    background-image: linear-gradient(90deg, #8C1A17 0%, #CD122D 60%) !important;
    color: #fff;
}

/* Hover (no activo) */
.apfc-tab:not(.active):hover {
    background-image: linear-gradient(90deg, #8C1A17 0%, #CD122D 60%) !important;
    color: #fff;
}

/* Blindaje contra estilos del theme */
.apfc-tab,
.apfc-tab:hover,
.apfc-tab:focus,
.apfc-tab:active {
    border: 0 !important;
    box-shadow: none !important;
}

/* =========================
   TAB CONTENT
   ========================= */

.apfc-tab-content {
    display: none;
}

.apfc-tab-content.active {
    display: block;
}

/* =========================
   SERVICE LAYOUT (DESKTOP)
   ========================= */

.apfc-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 40px;
	background-color:#fff;
	border-radius:16px;
	overflow: hidden;
	min-height:400px;
}

/* Alternancia */
.apfc-service.reverse {
    direction: rtl;
}

.apfc-service.reverse > * {
    direction: ltr;
}

/* Imagen */
.apfc-service-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Contenido */
.apfc-service-content{
	padding:32px 42px;
}

.apfc-service-content h2 {
    margin-bottom: 16px;
}

.apfc-service-description {
    line-height: 1.5;
}

/* =========================
   CHECKLIST
   ========================= */

.apfc-service-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.apfc-service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.apfc-check {
    width: 23px;
    height: 23px;
    min-width: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #999;
    border-radius: 999px;
    color: #999;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
	margin-top: -1px;
}

/* =========================
   CTA BUTTON
   ========================= */

.apfc-service-cta {
    margin-top: 24px;
}

.apfc-btn {
    display: inline-block;
    background: #CD122D;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background .15s ease;
}

.apfc-btn:hover {
    background: #DD223D;
    color: #fff;
    text-decoration: none !important;
}

.apfc-service-image {
    width: 100%;
    height: 100%;
    min-height: 320px; /* ajusta según diseño */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.apfc-check {
    width: 26px;      /* ⬅️ MÁS GRANDE = más padding visual */
    height: 26px;
    flex: 0 0 26px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apfc-check-icon {
    width: 17px;      /* ⬅️ SVG más pequeño */
    height: 17px;
}

.apfc-check-icon path {
    stroke-width: 3; /* aquí controlas el “grosor” real */
}

/* Estado base: oculto */
.apfc-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(50px);
}

/* Visible */
.apfc-tab-content.active {
  display: block;
}

/* Animación al entrar */
.apfc-tab-content.is-animating {
  animation: apfcFadeUp 600ms ease forwards;
}

@keyframes apfcFadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .apfc-tab-content,
  .apfc-tab-content.is-animating {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}



/* =========================
   RESPONSIVE
   ========================= */


/* Mobile */
@media (max-width: 990px) {

    /* Tabs */
    .apfc-tabs {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .apfc-tab {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        border-radius: 12px;
    }

    /* Layout */
    .apfc-service {
        grid-template-columns: 1fr;
        
        margin-bottom: 44px;
    }

    /* Reset alternancia */
    .apfc-service.reverse {
        direction: ltr;
    }

    /* Typography */
    .apfc-service-content h2 {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .apfc-service-description {
        font-size: 16px;
    }

    .apfc-service-list {
        margin-top: 16px;
    }

    /* CTA full width */
    .apfc-btn {
        width: 100%;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .apfc-service-content h2 {
        font-size: 20px;
    }
}
