/* ============================================================
   Página: Servicios y Publicidad
   Colores institucionales: #00C1D7, #005481, #FFC700, #FFFFFF
   ============================================================ */

/* Cabecera / Hero */
.pub-hero {
    background: linear-gradient(135deg, #005481 0%, #00C1D7 100%);
    color: #ffffff;
    padding: 72px 0 86px;
    position: relative;
    overflow: hidden;
}

.pub-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    background: rgba(255, 199, 0, 0.20);
    border-radius: 50%;
}

.pub-hero::before {
    content: "";
    position: absolute;
    left: -70px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.pub-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.pub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 0.35rem 0.95rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.pub-hero h1 {
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.pub-hero h1 span {
    color: #FFC700;
}

.pub-hero p {
    font-size: 1.08rem;
    opacity: 0.95;
    margin-bottom: 1.6rem;
}

.pub-hero .btn-pub-primary {
    background: #FFC700;
    color: #005481;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 0.7rem 1.6rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.pub-hero .btn-pub-primary:hover {
    transform: translateY(-2px);
    color: #005481;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Contenedor principal */
.pub-wrapper {
    max-width: 1100px;
    margin: -40px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 15px 60px;
}

.pub-intro {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 84, 129, 0.12);
    border: 1px solid #eef2f6;
    padding: 2rem 2.25rem;
    color: #3f4a57;
    line-height: 1.85;
    text-align: justify;
}

.pub-intro strong {
    color: #005481;
}

/* Títulos de sección */
.pub-section-title {
    text-align: center;
    margin: 3rem 0 2rem;
}

.pub-section-title h2 {
    color: #005481;
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.pub-section-title .pub-underline {
    width: 70px;
    height: 4px;
    background: #FFC700;
    border-radius: 4px;
    margin: 0 auto 0.75rem;
}

.pub-section-title p {
    color: #64748b;
    margin: 0 auto;
    max-width: 620px;
}

/* Tarjetas de beneficios */
.pub-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 8px 24px rgba(0, 84, 129, 0.07);
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 4px solid #00C1D7;
}

.pub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(0, 84, 129, 0.15);
}

.pub-card .pub-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 193, 215, 0.12);
    color: #005481;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.pub-card h3 {
    color: #005481;
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.pub-card p {
    color: #5b6675;
    font-size: 0.94rem;
    line-height: 1.7;
    margin: 0;
}

/* Formatos publicitarios */
.pub-format {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
    height: 100%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pub-format:hover {
    border-color: #00C1D7;
    box-shadow: 0 10px 26px rgba(0, 193, 215, 0.14);
}

.pub-format .pub-format-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #005481;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.pub-format h4 {
    color: #005481;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pub-format p {
    color: #5b6675;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.pub-note {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 1.25rem;
}

/* Pasos */
.pub-steps {
    counter-reset: step;
}

.pub-step {
    text-align: center;
    padding: 0 0.75rem;
    position: relative;
}

.pub-step .pub-step-num {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #005481 0%, #00C1D7 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    box-shadow: 0 8px 20px rgba(0, 84, 129, 0.22);
}

.pub-step h4 {
    color: #005481;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.pub-step p {
    color: #5b6675;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* CTA de contacto */
.pub-cta {
    margin-top: 3rem;
    background: linear-gradient(135deg, #005481 0%, #0076a8 60%, #00C1D7 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 84, 129, 0.25);
}

.pub-cta::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 200px;
    height: 200px;
    background: rgba(255, 199, 0, 0.18);
    border-radius: 50%;
}

.pub-cta > * {
    position: relative;
    z-index: 1;
}

.pub-cta h2 {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.pub-cta p {
    opacity: 0.95;
    max-width: 620px;
    margin: 0 auto 1.4rem;
}

.pub-cta .pub-email {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #FFC700;
    color: #005481;
    font-weight: 800;
    border-radius: 30px;
    padding: 0.75rem 1.7rem;
    text-decoration: none;
    font-size: 1.02rem;
    transition: transform 0.2s ease;
}

.pub-cta .pub-email:hover {
    transform: translateY(-2px);
    color: #005481;
}

.pub-tagline {
    text-align: center;
    color: #005481;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 2.5rem;
}

/* Botón volver */
.pub-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #005481;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pub-back:hover {
    color: #00C1D7;
}

/* Responsive */
@media (max-width: 575.98px) {
    .pub-hero {
        padding: 52px 0 70px;
    }

    .pub-hero h1 {
        font-size: 1.7rem;
    }

    .pub-wrapper {
        margin-top: -28px;
    }

    .pub-intro {
        padding: 1.5rem 1.25rem;
    }

    .pub-section-title h2 {
        font-size: 1.4rem;
    }
}
