* { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --primary: #8B1538;
            --secondary: #C4A962;
            --dark: #2C2C2C;
            --light: #F8F5F0;
            --white: #FFFFFF;
            --shadow: rgba(0, 0, 0, 0.1);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
        }

        html { scroll-behavior: smooth; }

        /* ── HERO ── */
        .hero {
            background: linear-gradient(135deg, var(--primary) 0%, #6B1028 100%);
            color: var(--white);
            padding: 5rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: rgba(196, 169, 98, 0.05);
            pointer-events: none;
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-text { animation: fadeInLeft 1s ease-out; }

        .hero-image-container {
            animation: fadeInRight 1s ease-out;
            position: relative;
        }

        .hero-img {
            width: 100%;
            height: auto;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            border: 5px solid var(--secondary);
            object-fit: cover;
            display: block;
        }

        .hero-image-overlay {
            position: absolute;
            bottom: -20px;
            right: -20px;
            width: 160px;
            height: 160px;
            background: var(--secondary);
            border-radius: 20px;
            z-index: -1;
            opacity: 0.3;
        }

        @keyframes fadeInRight {
            from { opacity: 0; transform: translateX(40px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes fadeInLeft {
            from { opacity: 0; transform: translateX(-40px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .hero-badge {
            display: inline-block;
            background: var(--secondary);
            color: var(--dark);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
            letter-spacing: 1px;
        }

        .hero h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .hero-description {
            font-size: 1.1rem;
            color: #FFFFFF;
            line-height: 1.8;
            margin-bottom: 2.5rem;
        }

        .hero-buttons {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .cta-button {
            display: inline-block;
            background: var(--secondary);
            color: var(--dark);
            padding: 1.1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(196, 169, 98, 0.3);
        }

        .cta-button i { margin-right: 0.5rem; }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(196, 169, 98, 0.4);
            background: #D4B972;
        }

        /* ── BANNER ── */
        .context-banner { background: var(--secondary); padding: 1.5rem 2rem; }

        .context-banner .inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 0.75rem;
            text-align: center;
        }

        .context-banner .label {
            font-size: 1rem;
            font-weight: 700;
            color: var(--dark);
        }

        .context-banner .label i { color: var(--primary); margin-right: 0.4rem; }

        .context-tags {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .context-tag {
            background: var(--primary);
            color: var(--white);
            padding: 0.3rem 1rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        /* ── SECTIONS ── */
        section { padding: 5rem 2rem; }

        .container { max-width: 1200px; margin: 0 auto; }

        .section-title { text-align: center; margin-bottom: 3rem; }

        .section-title h2 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--secondary);
        }

        .section-title p {
            font-size: 1.1rem;
            color: #666;
            max-width: 700px;
            margin: 1.5rem auto 0;
        }

        /* ── DESCRIPTION ── */
        .description { background: var(--light); }

        .description-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: start;
        }

        .description-text p {
            font-size: 1.05rem;
            line-height: 1.9;
            color: #444;
            margin-bottom: 1.2rem;
        }

        .description-aside {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .aside-box {
            background: var(--white);
            border-radius: 15px;
            padding: 1.8rem;
            border-left: 5px solid var(--secondary);
            box-shadow: 0 4px 15px var(--shadow);
        }

        .aside-box h4 {
            color: var(--primary);
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .aside-box h4 i { color: var(--secondary); }
        .aside-box p { color: #555; font-size: 0.95rem; line-height: 1.7; }

        /* ── CONTENIDOS ── */
        .contenidos { background: var(--white); }

        .contenidos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .contenido-card {
            background: var(--light);
            border-radius: 15px;
            padding: 2rem;
            border-top: 4px solid var(--secondary);
            transition: all 0.3s ease;
            display: flex;
            gap: 1.2rem;
            align-items: flex-start;
        }

        .contenido-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(139, 21, 56, 0.12);
            border-top-color: var(--primary);
        }

        .contenido-card .cont-icon {
            font-size: 2rem;
            color: var(--primary);
            flex-shrink: 0;
            margin-top: 0.2rem;
        }

        .contenido-card h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.4rem; }
        .contenido-card p { color: #666; font-size: 0.9rem; line-height: 1.6; }

        /* ── OBJECTIVES ── */
        .objectives { background: var(--light); }

        .objectives-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .objective-card {
            background: var(--white);
            border-radius: 15px;
            padding: 2rem;
            border-top: 4px solid var(--secondary);
            transition: all 0.3s ease;
            text-align: center;
            box-shadow: 0 4px 15px var(--shadow);
        }

        .objective-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(139, 21, 56, 0.15);
            border-top-color: var(--primary);
        }

        .objective-card .obj-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; display: block; }
        .objective-card h4 { color: var(--primary); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
        .objective-card p { color: #555; font-size: 0.9rem; line-height: 1.6; }

        /* ── SCENARIOS (dark) ── */
        .scenarios {
            background: linear-gradient(135deg, var(--primary) 0%, #6B1028 100%);
            padding: 5rem 2rem;
        }

        .scenarios .section-title h2 { color: var(--white); }
        .scenarios .section-title h2::after { background: var(--secondary); }
        .scenarios .section-title p { color: rgba(255,255,255,0.8); }

        .scenarios-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.2rem;
        }

        .scenario-card {
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(196, 169, 98, 0.3);
            border-radius: 15px;
            padding: 1.8rem 1.2rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .scenario-card:hover {
            background: rgba(196, 169, 98, 0.15);
            border-color: var(--secondary);
            transform: translateY(-4px);
        }

        .scenario-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 1rem; display: block; }
        .scenario-card p { font-weight: 600; color: var(--white); font-size: 0.9rem; line-height: 1.4; }

        /* ── AUDIENCE ── */
        .audience { background: var(--white); }

        .audience-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 1.2rem;
        }

        .audience-card {
            background: var(--light);
            border-radius: 15px;
            padding: 1.8rem 1rem;
            text-align: center;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
            box-shadow: 0 3px 10px var(--shadow);
        }

        .audience-card:hover {
            transform: translateY(-4px);
            border-bottom-color: var(--secondary);
            box-shadow: 0 10px 30px rgba(139, 21, 56, 0.12);
        }

        .audience-card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.75rem; display: block; }
        .audience-card h5 { font-weight: 700; color: var(--primary); font-size: 0.95rem; margin-bottom: 0.3rem; }
        .audience-card p { color: #666; font-size: 0.82rem; line-height: 1.4; }

        /* ── CERTIFICATION ── */
        .certification { background: var(--light); }

        .cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

        .cert-card {
            background: linear-gradient(135deg, var(--primary) 0%, #6B1028 100%);
            border-radius: 20px;
            padding: 2.5rem;
            color: var(--white);
            display: flex;
            gap: 1.5rem;
            align-items: flex-start;
            box-shadow: 0 10px 30px rgba(139, 21, 56, 0.3);
            transition: transform 0.3s ease;
        }

        .cert-card:hover { transform: translateY(-4px); }

        .cert-card .cert-icon { font-size: 2.5rem; color: var(--secondary); flex-shrink: 0; }
        .cert-card h4 { font-size: 1.15rem; color: var(--secondary); margin-bottom: 0.5rem; }
        .cert-card p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.6; }

        /* ── CTA ── */
        .cta-section {
            background: linear-gradient(135deg, var(--primary) 0%, #6B1028 100%);
            color: var(--white);
            text-align: center;
            padding: 5rem 2rem;
        }

        .cta-section h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--white); }
        .cta-section > .container > p { font-size: 1.2rem; margin-bottom: 2.5rem; color: rgba(255,255,255,0.9); }

        .cta-contact { font-size: 1rem; color: rgba(255,255,255,0.8); margin: 2rem 0 0.5rem; display: block; }

        .cta-phone {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            display: inline-block;
            text-decoration: none;
            margin-top: 0.5rem;
        }

        .cta-phone:hover { text-decoration: underline; }
        .cta-phone i { margin-right: 0.4rem; }

        /* ── RESPONSIVE ── */
        @media (max-width: 968px) {
            .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
            .hero-image-container { order: -1; }
            .hero h1 { font-size: 2.2rem; }
            .description-grid { grid-template-columns: 1fr; }
            .cert-grid { grid-template-columns: 1fr; }
            .contenido-card { flex-direction: column; }
            section { padding: 3rem 1.5rem; }
        }

        @media (max-width: 600px) {
            .hero { padding: 3rem 1.5rem; }
            .hero h1 { font-size: 1.8rem; }
            .section-title h2 { font-size: 2rem; }
            .audience-grid { grid-template-columns: repeat(2, 1fr); }
            .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
        }
    

/* fix-contraste-popularfx — el tema PopularFX aplica "body.popularfx-body p{color:#000}"
   y por especificidad pisa los blancos de esta pagina, dejando texto negro
   sobre fondo oscuro en algunos dispositivos. Estos selectores lo corrigen. */
body.popularfx-body .hero-description,
body.popularfx-body .cert-card p { color: #FFFFFF; }