/* VARIABLES DE COLOR */
:root {
    --primary-orange: #ffc40d;
    --primary-orange-hover: #fac423;
    --secondary-blue: #2c3e50;
    --background-color: #f8f9fa;
    --table-background-color: #ffffff;
    --text-color: #34495e;
    --border-color: #eaeded;
    --color-check: #27ae60;
    --color-cross: red;
    /* Nuevas Variables para Badges */
    --badge-new-green: #287843;
    --badge-popular-yellow: #f5cf4d;
    --badge-vip-red: #fa4a4c;
    --badge-sellout-pink: #be717d;
    /* Color para "Likely to Sell Out" */

    --color-primario-naranja: #fac423;
    /* Accent */
    --color-shadow: rgba(44, 62, 80, 0.15);
    --color-texto-oscuro: #333333;
    --color-fondo-claro: #fcfcfc;
}

.comparison-table-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ****************************************************** */
/* CORRECCIÓN DE ANCHO: Columnas equitativas (1:1:1:1)   */
/* ****************************************************** */
.comparison-table {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(
            /* Ajustado de 1.5fr a 1fr */
            3,
            minmax(250px, 1fr));
    width: 100%;
}

.table-cell,
.plan-header,
.feature-label {
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--table-background-color);
}

.feature-label {
    justify-content: flex-start;
    font-weight: 600;
    font-size: 0.95rem;
    border-right: 1px solid var(--border-color);
    position: sticky;
    left: 0;
    z-index: 2;
}

/* ICONO dentro de FEATURE LABEL */
.feature-label i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--primary-orange);
}

/* ESTILO: Esquina Superior Izquierda con Imagen de Fondo */
.plan-header.feature-label {
    background-image: url('../images/santa_cruz_cuadrado.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: sticky;
    left: 0;
    z-index: 3;
    font-size: 0;
}

.plan-header {
    text-align: center;
    flex-direction: column;
    border-bottom: 3px solid var(--border-color);
    position: relative;
}

.plan-header:not(:first-child) {
    border-left: 1px solid var(--border-color);
}

.plan-header h2 {
    margin-top: 2rem;
    line-height: 1em;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}



.plan-header .plan-description {
    font-size: 0.9rem;
    color: #666;
    min-height: 40px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-blue);
}

.price span {
    font-size: 1rem;
    font-weight: 500;
}

.price-offer {
    font-size: 0.9rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.table-cell {
    border-left: 1px solid var(--border-color);
}

.table-cell .icon {
    font-size: 1.5rem;
}

.table-cell .fa-check-circle {
    color: var(--color-check);
}

.table-cell .fa-times-circle {
    color: var(--color-cross);
}

.cta-button {
    text-align: center;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 80%;
    margin-top: 1rem;
}

.cta-primary {
    background-color: var(--primary-orange);
    color: #fff;
}

.cta-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: scale(1.05);
}

.cta-secondary {
    background-color: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.cta-secondary:hover {
    background-color: var(--primary-orange);
    color: #fff;
}

.is-recommended {
    background-color: #fffaf5;
}

.plan-header.is-recommended {
    border-bottom-color: var(--primary-orange);
}

.recommended-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1.0rem;
    /* Más padding horizontal y vertical */
    border-radius: 50px;
    font-size: 0.8rem;
    /* Ligeramente más pequeño para textos más largos */
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    /* Evita que el texto se rompa en varias líneas */
}

/* CLASES DE COLORES PARA BADGES */
.badge-new {
    background-color: var(--badge-new-green);
}

.badge-popular {
    background-color: var(--badge-popular-yellow);
    color: #fff !important;
}

.badge-vip {
    background-color: var(--badge-vip-red);
}

.badge-sellout {
    background-color: var(--badge-sellout-pink);
}






/********************/
/* CONTENEDOR PRINCIPAL */
.pricing-grid-container {
    display: flex;
    /* Se usa flex para el wrap */
    flex-wrap: wrap;
    /* Importante para el responsive */
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    /* Espacio entre tarjetas */
    justify-content: center;
    align-items: stretch;
    padding: 30px;
    font-family: var(--fuente-principal), sans-serif;
}

/* TARJETA PROFESIONAL */
.pricing-card-professional {
    background-color: #ffffff;
    border-radius: 8px;
    /* Borde cuadrado suave */
    box-shadow: 0 10px 30px var(--color-shadow);
    overflow: hidden;
    /* Flex-basis para que 3 tarjetas encajen en un ancho de 1200px con un gap de 30px */
    flex: 1 1 300px;
    max-width: 350px;
    /* Limita el ancho en desktop */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card-professional:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.25);
}

/* ENCABEZADO */
.pricing-header-pro {
    color: var(--color-gray-dark);
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 5px solid var(--color-primario-naranja);
    position: relative;
}

.pricing-header-pro h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-secondary-blue);
}

.pricing-header-pro p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 5px 0 15px;
    color: #7f8c8d;
    min-height: 40px;
}

/* BLOQUE DE PRECIO */
.price-block {
    padding: 15px 0 0;
    line-height: 1;
}

.price-actual {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primario-naranja);
    margin: 0;
}

.price-reg {
    font-size: 1rem;
    color: #ccc;
    margin-top: 5px;
    font-weight: 500;
}

/* DESTACADO / BADGE */
.highlight-badge {
    background-color: var(--color-primario-naranja);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- CLASES AUXILIARES DE COLOR PARA BADGES --- */
.badge-new {
    background-color: var(--badge-new-green);
}

.badge-popular {
    background-color: var(--badge-popular-yellow);
    color: var(--color-secondary-blue) !important;
}

.badge-vip {
    background-color: var(--badge-vip-red);
}

.badge-sellout {
    background-color: var(--badge-sellout-pink);
}

/* ----------------------------------------------- */

/* === ESTILOS PARA LOGOS DE CONFIANZA === */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.trust-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trust-icon2 {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trust-icon3 {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* CONTENIDO (INCLUIDO/NO INCLUIDO) */
.pricing-content-pro {
    display: flex;
    padding: 25px 20px;
    gap: 20px;
    flex-grow: 1;
}

.feature-section {
    flex-basis: 50%;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Estilos de título y borde para "Incluido" */
.included-list .list-title {
    color: var(--color-check);
    border-color: var(--color-check);
}

/* Estilos de título y borde para "No Incluido" */
.not-included-list .list-title {
    color: var(--color-cross);
    border-color: var(--color-cross);
}

.feature-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-section li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    display: flex;
    align-items: flex-start;
}

/* Estilo del icono */
.feature-icon {
    font-size: 1rem;
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

.included-icon {
    color: var(--color-check);
}

.not-included-icon {
    color: var(--color-cross);
}


/* === PIE DE PÁGINA Y BOTONES (CTA y WhatsApp) === */
.pricing-footer-pro {
    padding: 20px;
    text-align: center;
    border-top: 1px dashed #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.book-now-button {
    display: inline-block;
    background-color: var(--color-primario-naranja);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--color-primario-naranja);
    flex-shrink: 0;
}


.book-now-button:hover {
    background-color:#fac423;
    color: white;
    transform: translateY(-1px);
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    border: 2px solid #25D366;
    flex-shrink: 0;
}

.whatsapp-button i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.whatsapp-button:hover {
    background-color: #3ec86e;
    transform: translateY(-1px);
}








/* ----------------------------------- */
/* Estilos del Contenedor Principal */
/* ----------------------------------- */
.equipo-container {
    text-align: center;
    font-family: var(--fuente-principal);
    background-color: #ffffff;
    /* Fondo blanco o claro */
}

.equipo-titulo h2 {
    font-size: 2.5em;
    color: var(--color-texto-oscuro);
    margin-bottom: 10px;
    font-weight: 700;
}

.equipo-titulo p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* ----------------------------------- */
/* Contenedor de Tarjetas (Responsive Grid) */
/* ----------------------------------- */
.tarjetas-wrapper {
    display: flex;
    gap: 30px;
    /* Espacio entre las tarjetas */
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------- */
/* Estilos de la Tarjeta Individual */
/* ----------------------------------- */
.tarjeta-miembro {
    background-color: var(--color-fondo-claro);
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    /* Para que las tarjetas tengan la misma altura */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tarjeta-miembro:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--color-shadow);
}

/* Foto del Miembro */
.foto-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: #f1f1f1;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--color-primario-naranja);
    /* Borde naranja llamativo */
}

.foto-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nombre y Cargo */
.tarjeta-miembro h3 {
    font-size: 1.5em;
    color: var(--color-texto-oscuro);
    margin: 0 0 5px;
    font-weight: 600;
}

.tarjeta-miembro .cargo {
    color: var(--color-primario-naranja);
    font-size: 0.9em;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 500;
}

/* Contenedor de Botones de Contacto */
.contacto-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Estilos de los Enlaces/Botones */
.enlace-contacto {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--color-texto-oscuro);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

.enlace-contacto:hover {
    background-color: var(--color-primario-naranja);
    color: #ffffff;
    border-color: var(--color-primario-naranja);
}

.enlace-contacto i {
    margin-right: 5px;
}

/* Estilo especial para el botón de WhatsApp (opcional) */
.whatsapp-btn {
    background-color: #25d366;
    /* Verde de WhatsApp */
    color: #ffffff;
    border-color: #25d366;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

/* Información Adicional (Teléfono/Web) */
.info-adicional {
    font-size: 0.85em;
    color: #888;
    margin-top: auto;
    /* Empuja al final de la tarjeta */
    padding-top: 15px;
    border-top: 1px solid #eee;
    width: 100%;
}

.certificaciones-container {
    max-width: 1200px;
    width: 100%;
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    /* Separación si hay contenido antes */
}

/* -------------------------------------- */
/* TÍTULO Y TEXTO SUPERIOR */
/* -------------------------------------- */
.certificaciones-titulo {
    text-align: center;
    margin-bottom: 50px;
}

.certificaciones-titulo h3 {
    font-weight: 800;
    /* Extra Bold */
    color: #1f2937;
    /* Gris oscuro */
    line-height: 1.4;
    margin: 0 auto;
    max-width: 800px;
}

/* -------------------------------------- */
/* CONTENEDOR DE TARJETAS (RESPONSIVE GRID) */
/* -------------------------------------- */
.logos-wrapper {
    display: grid;
    /* Por defecto 2 columnas para móviles */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
}


/* -------------------------------------- */
/* ESTILO DE CADA TARJETA/MIEMBRO */
/* -------------------------------------- */
.tarjeta-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    text-align: center;
    width: 100%;
}

/* -------------------------------------- */
/* CONTENEDOR DE IMAGEN (Logo) */
/* -------------------------------------- */
.logo-placeholder {
    height: 96px;
    width: 96px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* -------------------------------------- */
/* ESTILO DEL BOTÓN */
/* -------------------------------------- */
    .btn-info {
      display: inline-block;
      padding: 8px 16px;
      font-size: 0.875rem;
      font-weight: 600;
      color: #ffffff;
      background-color: var(--color-primario-naranja);
      /* Naranja */
      border-radius: 9999px;
      box-shadow: 0 4px 6px rgba(255, 196, 13, 0.3);
      transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none;
      margin-top: auto;
    }

    .btn-info:hover {
      background-color: var(--color-primario-naranja);
      /* Naranja más oscuro */
      transform: translateY(-2px);
      box-shadow: 0 6px 8px rgba(255, 196, 13, 0.4);
      text-decoration: none;

    }



/* ============================================== */
@media (min-width: 993px) {

    /* Ajuste de título de la tabla de precio para escritorio */
    .plan-header h2 {
        font-size: 1.4rem;
    }
}

/* RESPONSIVIDAD (Tablet ancha, 1100px) */
@media (max-width: 1100px) {

    /* Ajuste de ancho de la tarjeta para que las 3 encajen */
    .pricing-card-professional {
        flex: 1 1 280px;
        max-width: 320px;
    }
}

/* RESPONSIVIDAD (Tablet estándar, 992px) */
@media (max-width: 992px) {

    /* TABLA DE COMPARACIÓN (Scroll Horizontal) */
    .comparison-table {
        min-width: 900px;
        /* Mantiene la tabla ancha para el scroll */
    }

    /* TARJETAS DE PRECIO (Diseño de 2 columnas) */
    .pricing-grid-container {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }

    .pricing-card-professional {
        /* Permite 2 columnas (50% del ancho - gap) */
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* OTROS ELEMENTOS (Logos) */
@media (min-width: 768px) {
    .logos-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {

    /* CORRECCIÓN CRÍTICA: La tabla debe dejar de forzar el ancho en móvil */
    /* Esto evita el scroll horizontal forzado por la tabla en el body entero */
    .comparison-table-wrapper {
        overflow-x: auto;
        /* Mantenemos el scroll horizontal SOLO en la tabla */
    }

    .comparison-table {
        min-width: 100%;
        /* El ancho mínimo de la tabla debe ser 100% en móvil */
    }

    /* TARJETAS DE PRECIO (Apilamiento vertical) */
    .pricing-grid-container {
        /* Asegura que ocupe el espacio disponible y no tenga ancho forzado */
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        padding: 15px !important;
        /* Mantenemos el padding, pero con !important */
        box-sizing: border-box;
        /* Asegura que padding no afecte el ancho total */
    }

    /* TARJETAS INDIVIDUALES: Ocupan el 100% del contenedor */
    .pricing-card-professional {
        /* Anula cualquier regla de 50% de ancho de la tableta */
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 10px 0 !important;
        /* Asegura que no haya márgenes laterales */
        box-sizing: border-box;
    }

    /* CORRECCIÓN: Contenido interno de la tarjeta (el que se estira) */
    .pricing-content-pro {
        /* Esto apila las secciones "Incluye" y "No Incluye" */
        flex-direction: column !important;
        gap: 20px !important;
        padding: 15px !important;
    }

    .price-actual {
        font-size: 2rem;
    }

    .pricing-footer-pro {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .book-now-button,
    .whatsapp-button {
        width: 100% !important;
        /* Que los botones ocupen el 100% del ancho */
        text-align: center !important;
    }
}

/* Ajuste de tamaño de logo para pantallas más grandes */
@media (min-width: 640px) {
    .logo-placeholder {
        height: 128px;
        width: 128px;
    }
}