/* ============================================
   APMD - Asociación Peruana de Medios Digitales
   Custom Styles with Bootstrap
   ============================================ */

/* Variables de colores APMD */
:root {
    --apmd-yellow: #ffb609;
    --apmd-pink: #fe2552;
    --apmd-purple: #1f0c44;
    --apmd-white: #ffffff;
    --apmd-dark: #1a1a1a;
}

/* ============================================
   Global Styles
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--apmd-dark);
    line-height: 1.6;
    padding-top: 80px;
}

/* Container 95% de ancho en index */
.container {
    max-width: 1300px;
    width: 95%;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
}

.logo-header {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    color: var(--apmd-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--apmd-white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero .carousel {
    height: 100vh;
}

.hero .carousel-inner {
    height: 100vh;
}

.hero .carousel-item {
    height: 100vh;
}

/* Hero Slick Styles */
.hero-slick {
    height: calc(100vh - 80px);
    position: relative;
}

.hero-slick > div {
    height: calc(100vh - 80px);
}

.hero-slick .slick-slide {
    height: calc(100vh - 80px);
}

.hero-slick .slick-slide > div {
    height: calc(100vh - 80px);
}

/* Mostrar el primer slide antes de que Slick se inicialice */
.hero-slick > div:first-child {
    display: block !important;
}

.hero-slick.slick-initialized > div:first-child {
    display: block;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ajustar altura de las filas dentro del hero */
.hero .min-vh-100 {
    min-height: calc(100vh - 80px) !important;
}

.slide-bg-1 {
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
}

.slide-bg-2 {
    background: linear-gradient(135deg, var(--apmd-pink) 0%, var(--apmd-yellow) 100%);
}

.slide-bg-3 {
    background: linear-gradient(135deg, var(--apmd-yellow) 0%, var(--apmd-purple) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-content {
    max-width: 1000px;
}

.hero-text {
    font-size: 1.3rem;
    line-height: 1.8;
}


.hero h1 {
    color: var(--apmd-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
}


.logo-hero {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
    animation: fadeInUp 0.8s ease-out;
}

.hero-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--apmd-white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--apmd-white);
}

/* Hero Slider Controls */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hero .carousel-control-prev {
    left: 30px;
}

.hero .carousel-control-next {
    right: 30px;
}

.hero .carousel-indicators {
    bottom: 40px;
    z-index: 3;
}

.hero .carousel-indicators button {
    width: 50px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero .carousel-indicators button.active {
    background: var(--apmd-yellow);
    width: 80px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: inline-block;
    color: var(--apmd-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    opacity: 1;
    color: var(--apmd-yellow);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Formas decorativas de fondo */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--apmd-yellow);
    top: 5%;
    left: 3%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--apmd-pink);
    top: 15%;
    right: 8%;
    animation-delay: 2s;
}

.blob {
    position: absolute;
    opacity: 0.12;
    filter: blur(40px);
    animation: blobMove 25s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 200px;
    background: var(--apmd-yellow);
    border-radius: 50% 40% 60% 30% / 60% 30% 70% 40%;
    top: 2%;
    left: 1%;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 180px;
    background: var(--apmd-pink);
    border-radius: 60% 40% 30% 70% / 30% 60% 40% 70%;
    top: 50%;
    right: 2%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 50% 40% 60% 30% / 60% 30% 70% 40%;
    }
    25% {
        transform: translate(50px, -40px) rotate(90deg) scale(1.1);
        border-radius: 60% 30% 40% 70% / 40% 70% 30% 60%;
    }
    50% {
        transform: translate(-30px, 50px) rotate(180deg) scale(0.9);
        border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
    }
    75% {
        transform: translate(40px, 30px) rotate(270deg) scale(1.05);
        border-radius: 30% 70% 60% 40% / 60% 40% 70% 30%;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--apmd-yellow);
    border: none;
    color: var(--apmd-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 9, 0.3);
}

.btn-primary:hover {
    background: #e6a508;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 9, 0.4);
    color: var(--apmd-dark);
}

.btn-secondary {
    background: var(--apmd-pink);
    border: none;
    color: var(--apmd-white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 37, 82, 0.3);
}

.btn-secondary:hover {
    background: #e01d48;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 37, 82, 0.4);
    color: var(--apmd-white);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    padding: 150px 0 80px;
    color: var(--apmd-white);
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--apmd-white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--apmd-purple);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.about-image-wrapper {
    position: relative;
}

.about-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--apmd-yellow) 0%, var(--apmd-pink) 100%);
    color: var(--apmd-white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-badge i {
    font-size: 1.5rem;
}

.about-content-box {
    background: var(--apmd-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.about-content-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Home page */
.home-stats-section {
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.home-stat-card {
    background: var(--apmd-white);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 28px rgba(31, 12, 68, 0.1);
    height: 100%;
    border: 1px solid rgba(31, 12, 68, 0.06);
}

.home-stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--apmd-purple);
    line-height: 1.1;
}

.home-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.4rem;
    line-height: 1.35;
}

.home-axis-card {
    background: var(--apmd-white);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(31, 12, 68, 0.06);
    border-left: 4px solid var(--apmd-pink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-axis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 12, 68, 0.12);
}

.home-axis-card i {
    color: var(--apmd-pink);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.home-axis-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.home-axis-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.home-team-section .team-card-body {
    padding: 1.25rem 1rem 1.5rem;
}

.home-team-section .team-photo {
    width: 160px;
    height: 160px;
}

.home-team-section .team-name {
    font-size: 1rem;
}

.home-team-section .team-position {
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .home-stats-section {
        margin-top: 0;
    }

    .home-stat-card {
        padding: 1rem;
    }
}

.about-hero-banner {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    box-shadow: 0 12px 40px rgba(31, 12, 68, 0.18);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-banner-inner {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 720px;
}

.about-hero-tagline {
    color: var(--apmd-white);
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.about-feature-card {
    background: var(--apmd-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid transparent;
}

.about-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--apmd-yellow);
}

.about-feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--apmd-white);
    margin: 0 auto 1.5rem;
}

.about-feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 1rem;
}

.about-feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Benefits Section
   ============================================ */

.benefit-card {
    background: var(--apmd-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(31, 12, 68, 0.3);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--apmd-white);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 1rem;
}

.benefit-text {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   Activities Section
   ============================================ */

.activity-card {
    background: var(--apmd-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.activity-image {
    height: 200px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-placeholder {
    font-size: 4rem;
    opacity: 0.8;
}

.activity-content {
    padding: 2rem;
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.activity-date {
    color: var(--apmd-pink);
    font-weight: 500;
    margin-bottom: 1rem;
}

.activity-text {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   Partners Section
   ============================================ */
#partnersCarousel {
    padding: 2rem 0;
}

#partnersCarousel .carousel-control-prev,
#partnersCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--apmd-purple);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#partnersCarousel .carousel-control-prev:hover,
#partnersCarousel .carousel-control-next:hover {
    background: var(--apmd-pink);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

#partnersCarousel .carousel-control-prev {
    left: -25px;
}

#partnersCarousel .carousel-control-next {
    right: -25px;
}

#partnersCarousel .carousel-indicators {
    bottom: -50px;
}

#partnersCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(31, 12, 68, 0.3);
    border: none;
    margin: 0 5px;
}

#partnersCarousel .carousel-indicators button.active {
    background: var(--apmd-yellow);
    width: 30px;
    border-radius: 6px;
}

.partner-card {
    background: var(--apmd-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--apmd-purple);
    font-size: 3rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-card:hover .partner-logo {
    background: linear-gradient(135deg, var(--apmd-yellow) 0%, var(--apmd-pink) 100%);
    color: var(--apmd-white);
    transform: scale(1.05);
    border-color: rgba(255, 182, 9, 0.3);
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apmd-purple);
}

/* ============================================
   News Section
   ============================================ */

.news-card {
    background: var(--apmd-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: var(--apmd-pink);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 1rem;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--apmd-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--apmd-pink);
}


/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-dark) 100%);
    color: var(--apmd-white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--apmd-yellow) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
}

.logo-footer {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--apmd-yellow);
}

.footer-column h5 {
    font-size: 1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--apmd-yellow);
    transform: translateX(5px);
}

/* Iconos de Redes Sociales */
.social-icons h5 {
    color: var(--apmd-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--apmd-white);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--apmd-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.social-icon.twitter:hover {
    background: #000000;
    border-color: #000000;
}

/* Información de Contacto en Footer */
.contact-info-footer {
    margin-top: 1rem;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon-footer {
    font-size: 1.5rem;
    color: var(--apmd-yellow);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item-footer h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item-footer a:hover {
    color: var(--apmd-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 80px);
        height: calc(100vh - 80px);
        padding: 0;
    }
    
    .hero-slick {
        height: calc(100vh - 80px);
    }
    
    .hero-slick > div {
        height: calc(100vh - 80px);
    }
    
    .hero-slick .slick-slide {
        height: calc(100vh - 80px);
    }
    
    .hero-slick .slick-slide > div {
        height: calc(100vh - 80px);
    }
    
    .hero .min-vh-100 {
        min-height: calc(100vh - 80px) !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .logo-hero {
        max-width: 200px;
    }

    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        width: 45px;
        height: 45px;
        left: 15px;
        right: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .about-content-box {
        padding: 2rem;
    }

    .about-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1.5rem;
        display: inline-flex;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    #partnersCarousel .carousel-control-prev {
        left: 10px;
    }

    #partnersCarousel .carousel-control-next {
        right: 10px;
    }

    .benefit-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .benefit-icon {
        font-size: 2rem;
    }

}

/* Quick Link Cards */
.quick-link-card {
    background: var(--apmd-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.quick-link-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--apmd-white);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-link-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 1rem;
}

.quick-link-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Content Sections */
.content-intro {
    margin-bottom: 3rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 20px;
    color: var(--apmd-white);
}

.cta-box h3 {
    color: var(--apmd-white);
    font-size: 2rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Activity Card Large */
.activity-card-large {
    background: var(--apmd-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.activity-image-large {
    height: 250px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-placeholder-large {
    font-size: 5rem;
    opacity: 0.8;
}

.activity-content-large {
    padding: 2.5rem;
}

.activity-badge {
    display: inline-block;
    background: var(--apmd-yellow);
    color: var(--apmd-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.activity-title-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.activity-date-large {
    color: var(--apmd-pink);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.activity-text-large {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.activity-features {
    list-style: none;
    padding: 0;
}

.activity-features li {
    color: #555;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-features li i {
    color: var(--apmd-yellow);
    font-size: 1.2rem;
}

/* News Featured */
.news-featured {
    background: var(--apmd-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-featured-image {
    height: 250px;
    overflow: hidden;
}

.news-placeholder-large {
    font-size: 6rem;
    opacity: 0.8;
}

.news-featured-content {
    padding: 2rem;
}

.news-category {
    display: inline-block;
    background: var(--apmd-yellow);
    color: var(--apmd-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--apmd-purple);
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    gap: 2rem;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    align-items: center;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.news-meta .news-date,
.news-meta .news-author {
    margin-bottom: 0;
}

.news-featured-excerpt {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* News Sidebar */
.news-sidebar {
    background: var(--apmd-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-sidebar h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apmd-purple);
}

.news-item-small {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.news-item-small:last-child {
    border-bottom: none;
}

.news-date-small {
    color: var(--apmd-pink);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-title-small {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.news-link-small {
    color: var(--apmd-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-link-small:hover {
    color: var(--apmd-pink);
}

/* Contact Form */
.contact-info-box,
.contact-form-box {
    background: var(--apmd-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-info-box h2,
.contact-form-box h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--apmd-purple);
}

.contact-item-large {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item-large:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-icon-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--apmd-white);
    flex-shrink: 0;
}

.contact-details-large h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--apmd-pink);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--apmd-purple);
    text-decoration: underline;
}

.contact-form-box .form-label {
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.contact-form-box .form-control,
.contact-form-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form-box .form-control:focus,
.contact-form-box .form-select:focus {
    border-color: var(--apmd-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 182, 9, 0.25);
}

/* Director Cards */
.director-card {
    background: var(--apmd-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.director-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.director-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--apmd-white);
    overflow: hidden;
    position: relative;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.director-photo i {
    position: absolute;
    z-index: 1;
}

.director-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.director-position {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--apmd-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.director-company {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.director-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.director-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apmd-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.director-link:hover {
    transform: scale(1.1);
    color: var(--apmd-white);
    background: linear-gradient(135deg, var(--apmd-pink) 0%, var(--apmd-yellow) 100%);
}

/* Team Section */
.section-team {
    background: linear-gradient(180deg, #f4f2f8 0%, #ffffff 45%, #fafafa 100%);
    position: relative;
}

.section-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
}

.team-card {
    background: var(--apmd-white);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(31, 12, 68, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(31, 12, 68, 0.06);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(31, 12, 68, 0.14);
}

.team-card-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--apmd-purple) 0%, var(--apmd-pink) 55%, var(--apmd-yellow) 100%);
}

.team-card--lead .team-card-accent {
    height: 6px;
}

.team-card-body {
    padding: 1.75rem 1.25rem 2rem;
}

.team-photo {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    margin: 0 auto 1.25rem;
    padding: 4px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(90deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(31, 12, 68, 0.15);
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
}

.team-photo img {
    position: absolute;
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    transform: scale(1.12);
    display: block;
    border: none;
    outline: none;
    background: var(--apmd-white);
}

.team-photo.is-fallback::after {
    content: attr(data-initials);
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--apmd-white);
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--apmd-purple);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.team-position {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--apmd-pink);
    margin: 0;
    line-height: 1.45;
}

/* Staff Cards */
.staff-card {
    background: var(--apmd-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.staff-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--apmd-white);
    overflow: hidden;
    position: relative;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.staff-photo i {
    position: absolute;
    z-index: 1;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.staff-position {
    font-size: 1rem;
    font-weight: 500;
    color: var(--apmd-pink);
    margin-bottom: 0.5rem;
}

.staff-email {
    margin-bottom: 1rem;
}

.staff-email a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.staff-email a:hover {
    color: var(--apmd-pink);
}

.staff-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.staff-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apmd-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.staff-link:hover {
    transform: scale(1.1);
    color: var(--apmd-white);
    background: linear-gradient(135deg, var(--apmd-pink) 0%, var(--apmd-yellow) 100%);
}

/* Calendar */
.calendar-container {
    background: var(--apmd-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.calendar-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.calendar-item:hover {
    background: #e9ecef;
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.calendar-date {
    text-align: center;
    min-width: 80px;
}

.calendar-month {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--apmd-pink);
    text-transform: uppercase;
}

.calendar-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--apmd-purple);
    line-height: 1;
}

.calendar-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.25rem;
}

/* Activity Detail */
.activity-detail-image {
    height: 400px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.activity-detail-content h2,
.activity-detail-content h3 {
    color: var(--apmd-purple);
    font-weight: 600;
    margin-top: 2rem;
}

.activity-detail-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.program-schedule {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
}

.schedule-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    min-width: 120px;
    font-weight: 600;
    color: var(--apmd-pink);
    font-size: 1rem;
}

.schedule-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.schedule-content p {
    color: #666;
    margin: 0;
}

.info-box {
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    color: var(--apmd-white);
    padding: 2rem;
    border-radius: 15px;
}

.info-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.info-box strong {
    color: var(--apmd-white);
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--apmd-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-sidebar .sidebar-card {
    padding: 0;
    padding-top: 1.5rem;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
}

.news-sidebar .sidebar-card:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.sidebar-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--apmd-purple);
}

.other-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-link {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.event-link h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.25rem;
}

.event-link p {
    color: #666;
    margin: 0;
}

/* News Detail */
.news-detail {
    background: var(--apmd-white);
    padding: 0;
}

.news-detail-image {
    height: 400px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 50%, var(--apmd-yellow) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.news-detail-meta .news-category,
.news-detail-meta .news-date,
.news-detail-meta .news-author {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-detail-meta .news-category {
    margin-bottom: 0;
}

.news-detail-meta .news-date,
.news-detail-meta .news-author {
    color: #666;
    font-size: 0.9rem;
}

.news-detail-content {
    padding: 2rem 0;
}

.news-detail-content h2 {
    color: var(--apmd-purple);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-detail-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.news-share {
    border-top: 2px solid #eee;
}

.news-share h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 1rem;
}

.news-share .btn {
    border-color: var(--apmd-purple);
    color: var(--apmd-purple);
    background: transparent;
    transition: all 0.3s ease;
}

.news-share .btn:hover {
    background: var(--apmd-purple);
    color: var(--apmd-white);
    border-color: var(--apmd-purple);
    transform: translateY(-2px);
}

.activity-sidebar .btn:not(.btn-primary) {
    border-color: var(--apmd-purple);
    color: var(--apmd-purple);
    background: transparent;
    transition: all 0.3s ease;
}

.activity-sidebar .btn:not(.btn-primary):hover {
    background: var(--apmd-purple);
    color: var(--apmd-white);
    border-color: var(--apmd-purple);
    transform: translateY(-2px);
}

.activity-sidebar .btn-primary {
    background: var(--apmd-yellow);
    border: none;
    color: var(--apmd-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.activity-sidebar .btn-primary:hover {
    background: #e6a508;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 9, 0.4);
    color: var(--apmd-dark);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-list a:hover {
    color: var(--apmd-pink);
    transform: translateX(5px);
}

.category-list a::before {
    content: "→";
    color: var(--apmd-yellow);
    font-weight: bold;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #eee;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: var(--apmd-purple);
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-label {
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--apmd-purple);
    box-shadow: 0 0 0 0.2rem rgba(31, 12, 68, 0.1);
}

.modal-body .form-check-label {
    color: #666;
    font-size: 0.9rem;
}

.modal-header .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 1.5em;
    height: 1.5em;
    padding: 0.5em;
    background-size: 1.5em;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-header .btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

/* Activity Image */
.activity-image {
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-image-large {
    height: 250px;
    overflow: hidden;
}

.activity-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News Image */
.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured-image {
    height: 250px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-image {
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Partner Logo */
.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Partner Detail Page */
.partner-detail-logo {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.partner-detail-logo img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.partner-badges .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.service-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--apmd-yellow);
}

.service-item i {
    font-size: 1.5rem;
}

.contact-info-sidebar {
    margin-top: 1rem;
}

.contact-item-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.contact-item-sidebar:last-child {
    border-bottom: none;
}

.contact-item-sidebar i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item-sidebar strong {
    display: block;
    color: var(--apmd-purple);
    margin-bottom: 0.25rem;
}

.contact-item-sidebar a {
    color: var(--apmd-pink);
    transition: all 0.3s ease;
}

.contact-item-sidebar a:hover {
    color: var(--apmd-purple);
}

.other-partners {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-link {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.partner-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: inherit;
}

.partner-logo-small {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.partner-logo-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Partner Card Link */
.partner-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.partner-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.partner-card-link:hover .partner-name {
    color: var(--apmd-pink);
}

/* Benefit Image */
.benefit-image {
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    margin-bottom: 1rem;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-detail-image {
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.benefit-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button View More */
.btn-view-more {
    display: inline-block;
    color: var(--apmd-yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-view-more:hover {
    color: var(--apmd-pink);
    transform: translateX(5px);
}

/* Benefit Detail */
.benefit-detail-content h2,
.benefit-detail-content h3 {
    color: var(--apmd-purple);
    font-weight: 600;
    margin-top: 2rem;
}

.benefit-detail-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.studies-list {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.study-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.study-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.study-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin-bottom: 0.5rem;
}

.study-item p {
    color: #666;
    margin: 0;
}

/* News Card Link */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-card-link:hover .news-title {
    color: var(--apmd-pink);
}

.news-card-link:hover .news-image img {
    transform: scale(1.05);
}

/* Activity Card Link */
.activity-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.activity-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.activity-card-link:hover .activity-title {
    color: var(--apmd-pink);
}

.activity-card-link:hover .activity-image img {
    transform: scale(1.05);
}

.activity-card-link-large {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.activity-card-link-large:hover {
    text-decoration: none;
    color: inherit;
}

.activity-card-link-large:hover .activity-title-large {
    color: var(--apmd-pink);
}

.activity-card-link-large:hover .activity-image-large img {
    transform: scale(1.05);
}

/* News Featured Link */
.news-featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.news-featured-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-featured-link:hover .news-featured-title {
    color: var(--apmd-pink);
}

.news-featured-link:hover .news-featured-image img {
    transform: scale(1.05);
}

/* News Content */
.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Carousel adjustments for index */
.carousel-item {
    padding: 1rem 0;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    color: var(--apmd-purple);
    border-color: #dee2e6;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: var(--apmd-pink);
    background-color: #f8f9fa;
    border-color: var(--apmd-pink);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-color: var(--apmd-pink);
    color: var(--apmd-white);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
}

/* News Navigation */
.news-navigation {
    padding-top: 2rem;
}

.nav-news-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-news-link:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.nav-news-next:hover {
    transform: translateX(5px);
}

.nav-news-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apmd-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-news-content {
    flex: 1;
}

.nav-news-label {
    display: block;
    font-size: 0.85rem;
    color: var(--apmd-pink);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.nav-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin: 0;
}

/* Activity Navigation */
.activity-navigation {
    padding-top: 2rem;
}

.nav-activity-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-activity-link:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.nav-activity-next:hover {
    transform: translateX(5px);
}

.nav-activity-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apmd-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-activity-content {
    flex: 1;
}

.nav-activity-label {
    display: block;
    font-size: 0.85rem;
    color: var(--apmd-pink);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.nav-activity-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apmd-purple);
    margin: 0;
}

/* Related News/Activities - Full Width Sections */
.related-news,
.related-activities {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.related-news h3,
.related-activities h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--apmd-purple);
}

/* Activity Image Hover */
.activity-image img {
    transition: transform 0.3s ease;
}

/* News Image Hover */
.news-image img {
    transition: transform 0.3s ease;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Slick Carousel Custom Styles
   ============================================ */
/* Slick List y Track - Padding para sombras */
.slick-list {
    margin: 0 -15px;
    padding: 20px 15px;
}

.slick-track {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.slick-slide {
    padding: 0 15px;
    height: auto;
}

.slick-slide > div {
    height: 100%;
}

/* Hero no necesita padding extra */
.hero-slick .slick-list {
    margin: 0;
    padding: 0;
}

.hero-slick .slick-slide {
    padding: 0;
}

/* Ocultar flechas por defecto */
.slick-prev,
.slick-next {
    display: none !important;
}

/* Mostrar flechas solo en hero y partners */
.hero-slick .slick-prev,
.hero-slick .slick-next,
.partners-slick .slick-prev,
.partners-slick .slick-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: var(--apmd-purple);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: none;
    color: var(--apmd-white);
}

.hero-slick .slick-prev:hover,
.hero-slick .slick-next:hover,
.partners-slick .slick-prev:hover,
.partners-slick .slick-next:hover {
    background: var(--apmd-pink);
    transform: scale(1.1);
}

.partners-slick .slick-prev {
    left: -25px;
}

.partners-slick .slick-next {
    right: -25px;
}

.slick-prev:before,
.slick-next:before {
    display: none;
}

.slick-prev i,
.slick-next i {
    font-size: 1.5rem;
    color: var(--apmd-white);
}

/* Dots Styles */
.slick-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    width: auto;
}

.slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    background: rgba(31, 12, 68, 0.3);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-indent: -9999px;
    overflow: hidden;
}

.slick-dots li button:before {
    display: none;
}

.slick-dots li button:hover {
    background: rgba(31, 12, 68, 0.6);
}

.slick-dots li.slick-active button {
    background: var(--apmd-yellow);
    width: 30px;
    border-radius: 6px;
}

/* Hero Slick Styles */
.hero-slick .slick-prev,
.hero-slick .slick-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-slick .slick-prev:hover,
.hero-slick .slick-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-slick .slick-prev {
    left: 30px;
}

.hero-slick .slick-next {
    right: 30px;
}

.hero-slick .slick-dots {
    bottom: 80px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: auto;
    z-index: 1;
}

.hero-slick .slick-dots li button {
    width: 50px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-slick .slick-dots li button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-slick .slick-dots li.slick-active button {
    background: var(--apmd-yellow);
    width: 80px;
    border-radius: 3px;
}

/* Responsive Slick */
@media (max-width: 768px) {
    /* Evitar scroll horizontal global */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Evitar scroll horizontal en carousels */
    .slick-list {
        margin: 0 -10px;
        padding: 20px 10px;
        overflow: hidden;
    }
    
    .slick-slide {
        padding: 0 10px;
    }
    
    /* Hero no necesita padding extra en mobile */
    .hero-slick .slick-list {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    
    .hero-slick .slick-slide {
        padding: 0;
    }
    
    /* Contenedor de secciones con carousels */
    .section .container {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .container-fluid {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .slick-prev {
        left: 10px;
    }

    .slick-next {
        right: 10px;
    }

    .hero-slick .slick-prev {
        left: 15px;
    }

    .hero-slick .slick-next {
        right: 15px;
    }

    .hero-slick .slick-prev,
    .hero-slick .slick-next {
        width: 45px;
        height: 45px;
    }
    
    /* Ocultar flechas de partners en mobile */
    .partners-slick .slick-prev,
    .partners-slick .slick-next {
        display: none !important;
    }
}

/* ============================================
   Sobre APMD - Contexto del sector digital
   ============================================ */
.section-apmd-context {
    background: linear-gradient(180deg, #ffffff 0%, #f4f2f8 100%);
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.section-apmd-context .section-header {
    margin-bottom: 3rem;
}

.section-apmd-context .section-title {
    color: var(--apmd-purple);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-apmd-context .section-subtitle {
    color: #6b6280;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.context-block {
    border-radius: 24px;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

.context-block-gradient {
    background: linear-gradient(90deg, var(--apmd-purple) 0%, var(--apmd-pink) 48%, var(--apmd-yellow) 100%);
    color: var(--apmd-white);
    box-shadow: 0 16px 48px rgba(31, 12, 68, 0.22);
}

.context-block-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--apmd-white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.context-block-intro {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    line-height: 1.75;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 920px;
}

.context-quote-pill {
    background: var(--apmd-white);
    color: var(--apmd-purple);
    border-radius: 50px;
    padding: 1rem 1.75rem;
    max-width: 900px;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
}

.context-registry-section {
    text-align: center;
}

.context-registry-header {
    max-width: 960px;
    margin: 0 auto 2rem;
}

.context-registry-section .context-block-intro {
    margin-left: auto;
    margin-right: auto;
}

.context-registry-grid {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.context-registry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 100%;
    padding: 0 0.75rem;
}

.context-registry-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1;
    text-align: center;
}

.context-registry-item h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--apmd-white);
    width: 100%;
}

.context-registry-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.92;
    margin: 0;
    max-width: 300px;
}

.context-axes-section {
    text-align: center;
}

.context-axes-header {
    max-width: 960px;
    margin: 0 auto 2rem;
}

.context-axes-section .context-block-intro {
    margin-left: auto;
    margin-right: auto;
}

.context-axes-grid {
    margin-top: 0.25rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.context-axes-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.context-axes-row-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.context-axes-row-bottom .context-axis {
    flex: 0 1 calc(33.333% - 1.75rem);
    max-width: 340px;
    min-width: 240px;
}

.context-axis {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.context-axis-icon {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
    display: block;
    opacity: 0.95;
    text-align: center;
}

.context-axis h4 {
    width: 100%;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--apmd-white);
}

.context-axis p {
    margin: 0;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    line-height: 1.6;
    opacity: 0.9;
    max-width: 320px;
}

.context-chart-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apmd-white);
    margin-bottom: 0.25rem;
}

.context-chart-note {
    font-size: 0.9rem;
    opacity: 0.85;
    color: var(--apmd-white);
}

.context-stat-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: center;
}

.context-stat-pill {
    background: var(--apmd-white);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.context-stat-number {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--apmd-purple);
    line-height: 1.1;
}

.context-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.35rem;
    line-height: 1.4;
}

.context-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.context-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.4fr) 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.context-bar-name {
    font-size: 0.85rem;
    line-height: 1.3;
}

.context-bar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    height: 14px;
    overflow: hidden;
}

.context-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.bar-purple { background: var(--apmd-purple); }
.bar-orange { background: var(--apmd-yellow); }
.bar-peach { background: #ffc48a; }
.bar-salmon { background: #ff8a9b; }
.bar-red { background: #e63946; }
.bar-pink { background: #f4a4c0; }

.context-bar-value {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 2.5rem;
    text-align: right;
}

.context-vbar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.25rem);
    min-height: 280px;
    padding: 0 0.5rem;
}

.context-vbar-col {
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 250px;
}

.context-vbar-value {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.context-vbar {
    width: 100%;
    max-width: 70px;
    border-radius: 8px 8px 0 0;
    margin-top: auto;
}

.bar-search { background: var(--apmd-yellow); }
.bar-social { background: var(--apmd-pink); }
.bar-inapp { background: #ff9eb5; }
.bar-banners { background: #c4b5fd; }
.bar-video { background: #fde047; }
.bar-influencers { background: var(--apmd-purple); }

.context-vbar-name {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.25;
    opacity: 0.9;
}

.context-donut {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto;
    background: conic-gradient(
        var(--apmd-yellow) 0% calc(var(--p1) * 1%),
        var(--apmd-purple) calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
        #ff8c42 calc((var(--p1) + var(--p2)) * 1%) calc((var(--p1) + var(--p2) + var(--p3)) * 1%),
        #a63d4a calc((var(--p1) + var(--p2) + var(--p3)) * 1%) 100%
    );
    position: relative;
}

.context-donut::after {
    content: '';
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--apmd-purple) 0%, var(--apmd-pink) 100%);
}

.context-donut-legend li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-digital { background: var(--apmd-yellow); }
.legend-tv { background: var(--apmd-purple); }
.legend-print { background: #ff8c42; }
.legend-radio { background: #a63d4a; }

.context-reg-card {
    background: var(--apmd-white);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    color: var(--apmd-purple);
}

.context-reg-card h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--apmd-purple);
}

.context-reg-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.context-role-box {
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    text-align: center;
}

.context-role-box h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--apmd-white);
}

.context-role-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.context-role-box li {
    padding: 0.5rem 0 0.5rem 1.25rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.98rem;
}

.context-role-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--apmd-yellow);
    font-weight: bold;
}

@media (max-width: 992px) {
    .context-axes-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .context-axes-row-bottom .context-axis {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .context-block {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .context-bar-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .context-bar-name {
        font-size: 0.8rem;
    }

    .context-vbar-chart {
        flex-wrap: wrap;
        min-height: auto;
    }

    .context-vbar-col {
        flex: 0 0 calc(33.333% - 0.75rem);
        max-width: none;
        height: 200px;
    }

    .context-vbar-name {
        font-size: 0.65rem;
    }
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--apmd-white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: var(--apmd-white);
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
}
