
/* --- TOP BAR --- */
.top-bar-premium {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.top-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
}

.top-social {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 1.2rem;
}

.top-social a {
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.top-social a:hover {
    transform: scale(1.15);
}

/* --- HEADER PREMIUM --- */
.sticky-nav {
    height: 120px !important;
    display: flex;
    align-items: center;
    background: white !important;
    border-bottom: 8px solid white !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    padding: 0 !important;
    z-index: 1000;
}

.nav-container-premium {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-nav .logo {
    height: auto !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.sticky-nav .logo img {
    height: 95px !important;
    width: auto !important;
    max-height: none !important;
    transition: var(--transition);
}

.sticky-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.sticky-nav .nav-links li {
    position: relative;
    padding: 1rem 0;
}

.sticky-nav .nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Dropdown Submenu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 260px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    border: 1px solid #f1f5f9;
}

.sticky-nav .nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--secondary) !important;
    font-size: 0.85rem !important; /* Letra más pequeña */
    font-weight: 500 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #FFF9F5;
    color: var(--primary) !important;
    padding-left: 1.8rem;
}

.sticky-nav .nav-links a.active, .sticky-nav .nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-cursos-premium {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.2);
    transition: var(--transition);
}

.btn-cursos-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 90, 0, 0.3);
    background: var(--primary-dark);
}

.btn-login-premium {
    background: transparent;
    color: var(--secondary) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login-premium:hover {
    background: #FFF5F0;
    color: var(--primary) !important;
}

/* WhatsApp Header Button */
.btn-whatsapp-header {
    width: 45px;
    height: 45px;
    background-color: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-header:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background-color: #20BA5A;
}

/* --- SERVICE DETAIL PAGE (SPLIT SCREEN) --- */
.service-detail-section {
    padding: 80px 5% 40px;
    background-color: #fdfdfb;
}

.service-detail-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.service-info-col {
    padding-right: 2rem;
}

.service-title {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.service-description-block {
    margin-bottom: 2.5rem;
}

.service-description-block h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-description-block p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.service-subtitle {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.service-item-icon {
    width: 50px;
    height: 50px;
    background: #FFF5F0;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 90, 0, 0.1);
}

.service-item-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-item-text strong {
    display: block;
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.service-image-col {
    position: sticky;
    top: 150px;
}

.image-wrapper-premium {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(19, 38, 58, 0.12);
    margin-bottom: 3rem;
}

.image-wrapper-premium img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.image-wrapper-premium:hover img {
    transform: scale(1.03);
}

.service-cta-wrapper {
    text-align: center;
}

.btn-service-cta {
    background: var(--primary);
    color: white !important;
    padding: 1.5rem 3rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    box-shadow: 0 15px 35px rgba(255, 90, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-service-cta:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(255, 90, 0, 0.4);
    background: var(--primary-dark);
}

.cta-hint {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- TEAM CTA BLOCK (HOME) --- */
.team-cta-premium {
    padding: 120px 5%;
    background-color: #fff;
}

.team-cta-container {
    max-width: 1300px;
    margin: 0 auto;
}

.team-cta-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    background: #FFF9F5;
    padding: 4rem;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(19, 38, 58, 0.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.02);
}

.team-cta-text {
    flex: 1;
}

.cta-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 90, 0, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-cta-text h2 {
    font-size: 3rem;
    color: var(--secondary);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.team-cta-text h2 span {
    color: var(--primary);
}

.team-cta-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.btn-team-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-team-cta:hover {
    background: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(255, 90, 0, 0.3);
}

.team-cta-visual {
    flex: 1;
}

.team-visual-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.team-visual-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.team-visual-wrapper:hover img {
    transform: scale(1.05);
}

/* --- MATERIAL CTA BLOCK (HOME) REDESIGN --- */
.material-cta-premium {
    padding: 100px 5% 150px;
    background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
    position: relative;
    overflow: hidden;
}

.material-cta-premium::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.material-cta-container {
    max-width: 1300px;
    margin: 0 auto;
}

.material-cta-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    background: white;
    padding: 5rem;
    border-radius: 50px;
    box-shadow: 0 40px 100px rgba(19, 38, 58, 0.08);
    border: 1px solid rgba(255, 90, 0, 0.1);
    position: relative;
    z-index: 1;
}

.cta-tag {
    background: #FF5A00;
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(255, 90, 0, 0.25);
}

.material-cta-text {
    flex: 1.2;
}

.material-cta-text h2 {
    font-size: 3.8rem;
    color: var(--secondary);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 800;
}

.material-cta-text h2 span {
    color: #FF5A00;
    display: block;
}

.material-cta-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.btn-material-cta {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #FF5A00 0%, #FF8A00 100%);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(255, 90, 0, 0.3);
}

.btn-material-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(255, 90, 0, 0.4);
}

.material-cta-visual {
    flex: 1;
}

.material-visual-wrapper {
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(-8deg); /* Efecto 3D sutil */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.material-visual-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.material-visual-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.material-visual-wrapper:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .material-cta-content { flex-direction: column-reverse; text-align: center; padding: 3rem; }
}

/* --- LANDING REDESIGN PREMIUM --- */
.hero-impact {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFF0E5 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px 10%;
    position: relative;
    overflow: hidden;
}

.hero-impact-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
}

/* --- SECTION HEADERS GLOBAL --- */
.section-header-premium {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 5%;
}

.section-header-premium h2 {
    font-size: 2.8rem !important;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-impact-text {
    flex: 1;
}

.hero-impact-text h1 {
    font-size: 3.8rem;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-impact-text h1 span {
    color: var(--primary);
}

.hero-impact-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.8;
}

.hero-impact-image {
    flex: 1;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(19, 38, 58, 0.15);
    transition: transform 0.6s ease;
}

.hero-impact-image img {
    width: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-impact-image:hover img {
    transform: scale(1.05);
}

/* Subtle Hero Button */
.btn-hero-subtle {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 2.2rem;
    border-radius: 50px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-subtle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.2);
}

/* --- SECTION SUBTITLES --- */
.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Services Grid (Home) */
.services-premium-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 4rem auto 0;
}

/* Resources Grid (Material Gratuito) */
.resources-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 4rem auto 0;
}

.service-card-premium {
    background: #FFF9F5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(19, 38, 58, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(19, 38, 58, 0.03);
}

.service-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(19, 38, 58, 0.12);
}

.service-card-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 90, 0, 0.4), rgba(255, 90, 0, 0.6));
    transition: var(--transition);
}

.thumb-overlay-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
    opacity: 1;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-card-content {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #FFF9F5;
    gap: 1.8rem;
}

.service-card-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    opacity: 0.9;
    transition: var(--transition);
}

.service-card-premium:hover .service-card-icon {
    transform: scale(1.1);
    color: var(--primary);
}

/* Team Grid */
.team-section {
    padding: 100px 10%;
    background: #F8FAFC;
}

.team-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1.5px solid #E2E8F0;
    background: white;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-card-full {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(19, 38, 58, 0.03);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.team-card-full:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(19, 38, 58, 0.12);
}

.team-card-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- TEAM MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 38, 58, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--secondary);
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.modal-body {
    display: flex;
    height: 100%;
}

.modal-image {
    flex: 1;
    background: #FFF9F5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.modal-info-cv {
    flex: 1.4;
    padding: 0;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.modal-info-cv img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- RESOURCE CARDS (VERTICAL PREMIUM) --- */
.resource-card-premium {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #F1F5F9;
}

.resource-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(19, 38, 58, 0.1);
}

.resource-thumb {
    width: 100%;
    padding: 20px;
    background: white;
}

.resource-thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: block;
}

.resource-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-content h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.btn-download-full {
    display: block;
    width: 100%;
    background: #FF7A3D; /* Naranja del ejemplo */
    color: white !important;
    text-align: center;
    padding: 1.2rem;
    border-radius: 15px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 122, 61, 0.2);
}

.btn-download-full:hover {
    background: #e6692e;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 122, 61, 0.3);
}

.service-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.service-item-icon {
    width: 45px;
    height: 45px;
    background: #FFF9F5;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(255, 90, 0, 0.08);
}

.service-item-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-item-text strong {
    display: block;
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem; /* Espacio reducido entre título y descripción */
}

@media (max-width: 1300px) {
    .services-premium-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 3rem; }
}

@media (max-width: 992px) {
    .services-premium-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    .services-premium-grid { grid-template-columns: 1fr !important; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 850px) {
    .modal-body { flex-direction: column; }
    .modal-image { padding: 40px; }
    .modal-info-cv { padding: 0; overflow-y: visible; } /* Permite que el contenido fluya */
    .modal-content { 
        max-height: 95vh; 
        overflow-y: auto; /* Habilita scroll para el modal completo en móvil */
        border-radius: 20px;
    }
    .modal-close { top: 10px; right: 10px; width: 35px; height: 35px; }
}

@media (max-width: 1300px) {
    .team-grid { grid-template-columns: repeat(4, 1fr); }
    .services-premium-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
    .resources-premium-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-container-premium { padding: 0 40px; }
    .sticky-nav .nav-links { gap: 1rem; }
    .sticky-nav .nav-links a { font-size: 0.85rem; }
    .team-cta-content { gap: 3rem; padding: 3rem; }
}

@media (max-width: 992px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-impact-container { flex-direction: column-reverse; text-align: center; gap: 3rem; }
    .hero-impact-text h1 { font-size: 3.8rem; }
    .section-header-premium h2 { font-size: 2.8rem !important; }
    .services-premium-grid { grid-template-columns: repeat(2, 1fr); }
    .resources-premium-grid { grid-template-columns: repeat(2, 1fr); }
    .sticky-nav .nav-links { display: none; }
    .team-cta-content { flex-direction: column; text-align: center; }
    
    /* Subpages Fix */
    .service-detail-container { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        text-align: center;
    }
    .service-title { font-size: 2.2rem; }
    .service-info-col { padding-right: 0; }
    .service-list { text-align: left; }
    .service-image-col { position: static; order: -1; }
    .image-wrapper-premium { margin-bottom: 2rem; }
}

@media (max-width: 600px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-impact { padding-top: 120px; }
    .services-premium-grid { grid-template-columns: 1fr; }
    .resources-premium-grid { grid-template-columns: 1fr; }
    .top-bar-premium { display: none; }
    
    .sticky-nav { height: 90px !important; }
    .sticky-nav .logo img { height: 60px !important; }
    .nav-actions { gap: 0.8rem; }
    .btn-cursos-premium { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
    .btn-whatsapp-header { width: 38px; height: 38px; font-size: 1.2rem; }
    


/* Text Adjustments for Mobile */
.section-main-title { font-size: 2.2rem; }
    
    .team-filters { gap: 0.6rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
    .filter-btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    
    .service-title { font-size: 1.8rem; margin-bottom: 0.8rem; }
    .service-subtitle { font-size: 1.5rem; margin: 1.5rem 0 1rem; }
    .service-description-block p { font-size: 1rem; line-height: 1.5; margin-bottom: 0.8rem; }
    .service-item { margin-bottom: 1rem; }
    .service-item-text { line-height: 1.4; }
    .service-item-text strong { margin-bottom: 0.2rem; }
    .service-detail-section { padding-top: 20px; padding-bottom: 20px; }
    .resources-section { padding: 20px 5% !important; }
    
    .btn-service-cta { 
        padding: 0.8rem 2rem; 
        font-size: 0.95rem; 
        width: auto; 
        display: inline-flex; 
        margin: 0 auto;
    }
    .service-cta-wrapper { text-align: center; }
}

/* --- MOBILE NAVIGATION DRAWER --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

@media (max-width: 992px) {
    .nav-container-premium { position: relative; }
    .mobile-nav-toggle { display: block; order: 3; }
    .sticky-nav .nav-links { display: none; }

    /* Centrar Acceder exactamente entre Logo y Sandwich */
    .nav-actions {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-actions .btn-login-premium {
        position: static;
        transform: none;
        margin: 0 auto; /* Centrado perfecto entre logo y sandwich */
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .nav-actions .btn-cursos-premium,
    .nav-actions .btn-whatsapp-header {
        display: none !important;
    }
}

/* --- SOCIAL FEED SECTION --- */
.social-feed-premium {
    padding: 80px 5%;
    background-color: #fdfdfb;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 3rem auto;
}

.social-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    aspect-ratio: 1 / 1;
    transition: var(--transition);
    display: block;
}

.social-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.social-item:hover img {
    transform: scale(1.08);
}

.social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 38, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 2rem;
}

.social-item:hover .social-overlay {
    opacity: 1;
}

.social-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-social-outline {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: none;
    cursor: pointer;
}

.btn-social-dark {
    background: var(--secondary);
    color: white !important;
}

.btn-social-dark:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
}

.btn-social-insta {
    background: linear-gradient(135deg, #FF5A00 0%, #FF8A00 100%);
    color: white !important;
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.2);
}

.btn-social-insta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 90, 0, 0.4);
    filter: brightness(1.1);
}

@media (max-width: 992px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .social-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .btn-social-outline {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 2001;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 40px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; /* Habilitar scroll */
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    background: white; /* Asegura fondo blanco puro para el logo */
    margin: -2.5rem -2rem 3.5rem; /* Extiende al borde */
    padding: 2.5rem 2rem 1rem;
}

.mobile-menu-header .logo img {
    height: 65px;
    display: block;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary);
    cursor: pointer;
    opacity: 0.6;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.mobile-menu-links > li > a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.mobile-menu-links a:hover {
    color: var(--primary);
}

/* Submenu Mobile (Collapsible) */
.mobile-menu-sublinks {
    list-style: none;
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 1rem;
    border-left: 2px solid #f1f5f9;
}

.mobile-menu-sublinks.active {
    display: flex; /* Se muestra al activar */
}

.mobile-menu-sublinks a {
    text-decoration: none;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-light) !important;
    display: block;
    padding: 0.3rem 0;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mobile-menu-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.btn-mobile-whatsapp {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.15);
}

/* --- EXTRA MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    /* Section Spacing */
    .material-cta-premium, 
    .social-feed-premium, 
    .team-cta-premium,
    #servicios { 
        padding: 50px 5% !important; 
    }

    /* Title Sizes */
    .material-cta-text h2 { 
        font-size: 2.2rem !important; 
        margin-bottom: 1.2rem;
    }
    
    .section-header-premium h2,
    .section-main-title { 
        font-size: 2.0rem !important; 
        margin-bottom: 0.8rem !important;
    }

    .hero-impact-text h1 { 
        font-size: 2.3rem !important; 
        line-height: 1.1;
    }
    
    .section-header-premium { 
        margin-bottom: 1.8rem !important; 
    }

    /* Container Adjustments */
    .material-cta-content { 
        padding: 2.5rem 1.5rem; 
        gap: 2.5rem; 
        border-radius: 30px;
    }
    
    .cta-tag { 
        margin-bottom: 1.2rem; 
        padding: 0.4rem 1.2rem; 
        font-size: 0.75rem;
    }

    .social-grid {
        margin: 1.5rem auto;
        gap: 0.8rem;
    }
    
    .social-actions {
        margin-top: 1.8rem;
        gap: 0.8rem !important;
    }
}