/* Ecosistema All In One — GastroChat PRO */
.master-platform {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    padding: clamp(3rem, 6vw, 5rem) 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(255, 140, 66, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 50%, rgba(255, 215, 0, 0.08), transparent),
        linear-gradient(180deg, #ffffff 0%, #f8f9fa 45%, #fff9f4 100%);
    overflow: hidden;
}
.master-platform::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff8c42' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
}
.master-platform > .container { position: relative; z-index: 1; }
.master-platform--embedded {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--background-light, #f8f9fa);
}
#ecosistema { scroll-margin-top: 6rem; }

/* Modo catálogo — plataforma.php (sin duplicar hero comercial de index) */
.master-platform--plat-catalog {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.master-platform--plat-catalog .eco-hero-pro--catalog {
    margin-bottom: 1.5rem;
}
.master-platform--plat-catalog .eco-title--catalog {
    font-size: clamp(1.45rem, 3.2vw, 1.95rem);
    margin-bottom: 0.65rem;
}
.master-platform--plat-catalog .eco-catalog-hint {
    max-width: 40rem;
    margin: 0 auto 1.15rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-gray, #5a6a7a);
}
.master-platform--plat-catalog .eco-stat-row {
    margin-top: 0.25rem;
}

/* Modo catálogo — servicios.php (sin duplicar hero comercial de index) */
.master-platform--svc-catalog {
    background: linear-gradient(180deg, #ffffff 0%, var(--background-light, #f8f9fa) 100%);
    border-top: 3px solid var(--accent-orange, #ff8c42);
    padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.master-platform--svc-catalog .master-platform-cta {
    margin-top: 1.75rem;
}

.eco-hero-pro { text-align: center; max-width: 58rem; margin: 0 auto 2rem; }
.eco-pro-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ff8c42 0%, #e85d04 100%);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(255, 140, 66, 0.35);
}
.master-platform .eco-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #b85a18;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.eco-hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    line-height: 1.7;
    color: var(--text-gray, #555);
    margin: 0.75rem auto 1.25rem;
}
.master-platform .eco-title {
    text-align: center;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    color: var(--text-dark, #2c3e50);
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.15;
}
.eco-stat-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.eco-stat-row li {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 140, 66, 0.25);
    border-radius: 999px;
}
.eco-stat-row strong { color: #c45a12; }

.eco-legal-banner {
    max-width: 58rem;
    margin: 0 auto 2.25rem;
    padding: 1.55rem 1.7rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(255, 215, 0, 0.22), transparent 50%),
        radial-gradient(ellipse 60% 80% at 0% 100%, rgba(255, 140, 66, 0.14), transparent 45%),
        linear-gradient(135deg, #fffdf9 0%, #fff6ee 42%, #ffedd8 100%);
    color: #3a4a5c;
    box-shadow:
        0 12px 40px rgba(255, 140, 66, 0.16),
        0 0 0 1px rgba(255, 140, 66, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 140, 66, 0.48);
}
.eco-legal-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 45%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.14), transparent);
    transform: rotate(12deg);
    pointer-events: none;
}
.eco-legal-banner p {
    margin: 0.65rem 0 1rem;
    font-size: 0.98rem;
    line-height: 1.72;
    position: relative;
    z-index: 1;
    color: #4a5568;
}
.eco-legal-banner strong {
    color: #b85a18;
    font-weight: 700;
}
.eco-legal-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8c42 0%, #e86a1a 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(255, 140, 66, 0.35);
    position: relative;
    z-index: 1;
}
.eco-legal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
.eco-legal-chips li {
    margin: 0;
    padding: 0;
}
.eco-legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.38rem 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(255, 140, 66, 0.42);
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.eco-legal-chip:hover,
.eco-legal-chip:focus-visible {
    background: rgba(255, 140, 66, 0.12);
    border-color: #ff8c42;
    color: #b85a18;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.2);
    outline: none;
}
.eco-legal-chip:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.45);
}
.eco-legal-chip-ext {
    font-size: 0.72em;
    opacity: 0.85;
    line-height: 1;
}

.eco-hero-pro .eco-eyebrow {
    margin-bottom: 0.4rem;
}
.eco-cms-claim {
    max-width: 58rem;
    margin: 0.5rem auto 1.25rem;
    padding: 1.25rem 1.45rem 1.15rem;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff9f4 0%, #ffffff 42%, #fff4e8 100%);
    border: 2px solid rgba(255, 140, 66, 0.45);
    box-shadow: 0 16px 48px rgba(255, 140, 66, 0.14);
}
.eco-cms-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8c42, #e86a1a);
    color: #fff;
    margin-bottom: 0.65rem;
}
.eco-cms-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.12rem, 2.4vw, 1.38rem);
    line-height: 1.35;
    color: #1a2d42;
    font-weight: 800;
}
.eco-cms-text {
    margin: 0 auto 1rem;
    max-width: 50rem;
    font-size: 0.97rem;
    line-height: 1.72;
    color: #445566;
}
.eco-cms-text strong {
    color: #c45a12;
}
.eco-cms-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.eco-cms-points li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.eco-stat-row li {
    list-style: none;
}
#ecosistema button.eco-feature-chip {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    pointer-events: auto !important;
    position: relative;
    z-index: 3;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.36rem 0.72rem;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 140, 66, 0.35);
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.eco-stat-row button.eco-feature-chip {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 140, 66, 0.25);
}
button.eco-feature-chip strong {
    color: #c45a12;
    font-weight: 800;
}
button.eco-feature-chip:hover,
button.eco-feature-chip:focus-visible {
    border-color: rgba(255, 140, 66, 0.6);
    box-shadow: 0 4px 14px rgba(255, 140, 66, 0.18);
    color: #b85a18;
    outline: none;
}
button.eco-feature-chip:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.45), 0 4px 14px rgba(255, 140, 66, 0.12);
}
#ecosistema .master-accordion details.eco-acc-open > ul,
#ecosistema .master-accordion details[open] > ul {
    display: block;
}
#ecosistema .master-accordion details.eco-acc-open summary,
#ecosistema .master-accordion details[open] summary {
    color: var(--accent-orange, #ff8c42);
}
#ecosistema .master-accordion details.eco-acc-open summary::after,
#ecosistema .master-accordion details[open] summary::after {
    content: '−';
}
.eco-target-flash {
    animation: eco-target-pulse 2.2s ease-out;
}
@keyframes eco-target-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.45); }
    35% { box-shadow: 0 0 0 6px rgba(255, 140, 66, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0); }
}
.master-accordion details.eco-target-flash {
    border-radius: 12px;
}
.eco-legal-banner.eco-target-flash {
    border-color: #ff8c42;
}
.master-pillar--cms {
    border-color: rgba(255, 140, 66, 0.55);
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.master-platform .master-lead {
    max-width: 54rem;
    margin: 0 auto 1.75rem;
    text-align: center;
    font-size: clamp(1rem, 2.2vw, 1.14rem);
    line-height: 1.75;
    color: var(--text-gray, #555);
}
.eco-promo-line {
    max-width: 52rem;
    margin: 0 auto 2rem;
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #2c3e50;
    background: linear-gradient(135deg, #fff9f4 0%, #ffffff 100%);
    border: 1px solid rgba(255, 140, 66, 0.35);
    border-radius: 14px;
}

.master-pillars {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.master-pillar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-light, #e8e8e8);
    border-radius: 18px;
    padding: 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.master-pillar:hover,
.master-pillar:focus-within {
    transform: translateY(-6px);
    border-color: var(--accent-orange, #ff8c42);
    box-shadow: 0 20px 48px rgba(255, 140, 66, 0.18);
}
.master-pillar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100%;
    padding: 1.1rem 0.8rem;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    pointer-events: auto !important;
    background: transparent;
    border: none;
    outline: none;
}
.master-pillar-link:focus-visible {
    outline: 2px solid rgba(255, 140, 66, 0.7);
    outline-offset: -2px;
}
.master-pillar--legal {
    border-color: rgba(44, 62, 80, 0.4);
    background: linear-gradient(165deg, #eef3f8 0%, #ffffff 100%);
}
.master-pillar-icon {
    font-size: 1.85rem;
    display: block;
    margin-bottom: 0.45rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.master-pillar-link h3,
.master-pillar h3 {
    font-size: 0.88rem;
    line-height: 1.3;
    color: var(--text-dark, #2c3e50);
    margin: 0 0 0.35rem;
    font-weight: 800;
}
.master-pillar-link p,
.master-pillar p {
    font-size: 0.76rem;
    color: var(--text-gray, #666);
    line-height: 1.45;
    margin: 0;
}
.master-pillar--highlight {
    border-color: rgba(255, 140, 66, 0.45);
    background: linear-gradient(165deg, #fffaf6 0%, #ffffff 100%);
}

.master-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.master-audience-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-light, #e0e0e0);
    padding: 1.5rem 1.35rem 1.1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}
.master-audience-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; color: var(--text-dark, #2c3e50); font-weight: 800; }
.master-audience-card .audience-tagline {
    font-size: 0.88rem;
    color: var(--text-gray, #666);
    margin-bottom: 1rem;
    line-height: 1.5;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 140, 66, 0.2);
}
.master-accordion { border-top: 1px solid var(--border-light, #e8e8e8); }
.master-accordion details {
    border-bottom: 1px solid var(--border-light, #e8e8e8);
    scroll-margin-top: 6rem;
}
.master-accordion details[id^="eco-"] {
    scroll-margin-top: 6.5rem;
}
#eco-legal-banner {
    scroll-margin-top: 6rem;
}
#master-audience-grid {
    scroll-margin-top: 5rem;
}
.master-accordion summary {
    cursor: pointer;
    list-style: none;
    padding: 0.95rem 0.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark, #2c3e50);
}
.master-accordion summary::-webkit-details-marker { display: none; }
.master-accordion summary::after { content: '+'; float: right; color: var(--accent-orange, #ff8c42); font-weight: 800; }
.master-accordion details[open] summary::after { content: '−'; }
.master-accordion details[open] summary { color: var(--accent-orange, #ff8c42); }
.master-accordion ul { margin: 0 0 1rem; padding: 0 0 0 1.15rem; font-size: 0.87rem; color: var(--text-gray, #555); line-height: 1.6; }
.master-accordion li { margin-bottom: 0.42rem; }
.master-accordion li strong { color: var(--text-dark, #2c3e50); }

.master-platform-cta {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
}

/* Botones homogéneos con sección operativa (fondo claro: no usar texto blanco) */
.master-platform .master-platform-cta .btn {
    min-width: 12rem;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.master-platform .master-platform-cta .btn-primary {
    background: #ffd700;
    color: #2c3e50;
    border: 2px solid #ffd700;
}

.master-platform .master-platform-cta .btn-primary:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.35);
}

.master-platform .master-platform-cta .btn-secondary {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #ff8c42;
    box-shadow: 0 2px 12px rgba(255, 140, 66, 0.2);
}

.master-platform .master-platform-cta .btn-secondary:hover {
    background: #ff8c42;
    color: #ffffff;
    border-color: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.35);
}

@media (max-width: 1200px) {
    .master-pillars { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .master-pillars { grid-template-columns: repeat(2, 1fr) !important; }
    .master-audience-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 420px) {
    .master-pillars { grid-template-columns: 1fr !important; }
}
