* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2c2420;
    line-height: 1.6;
    background-color: #faf7f0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ==================== HEADER ==================== */
.header {
    background: #e5d94f;
    border-top: 6px solid #2c2420;
    
}

.header .container {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar {
    background: #2c2420;
    color: #d4c9b8;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 25px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info i, .social-links a {
    margin-right: 8px;
    color: #e5d94f;
}

.social-links a {
    margin-left: 15px;
    color: #d4c9b8;
    transition: color 0.3s;
    text-decoration: none;
}

.social-links a:hover { color: #e5d94f; }

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 260px;
}

.logo {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text h1 {
    font-size: 30px;
    color: #2c2420;
    font-weight: 700;
    line-height: 1.3;
    
}

.text p {
    font-size: 14px;
    color: #2c2420;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 30px;
    
}

.nav a {
    text-decoration: none;
    color: #2c2420;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s;
}

.nav a.active,
.nav a:hover { color: white; }

.nav a.active::after,
.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #2c2420;
    background: none;
    border: none;
    padding: 8px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #e5d94f;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.mobile-menu.show { right: 0; }

.mobile-menu a {
    text-decoration: none;
    color: #2c2420;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.mobile-menu a.active,
.mobile-menu a:hover {
    color: white;
    border-bottom: 2px solid white;
    padding-left: 10px;
}

.close-btn {
    align-self: flex-end;
    font-size: 32px;
    cursor: pointer;
    color: #2c2420;
    background: none;
    border: none;
    padding: 5px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.close-btn:hover {
    color: white;
    transform: scale(1.1);
}

/* ==================== CARRUSEL ==================== */
.carousel-section {
    position: relative;
    min-height: 550px;
    height: 85vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slides {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e5d94f;
    color: #2c2420;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn:hover {
    background: #2c2420;
    color: #e5d94f;
    transform: translateY(-3px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #e5d94f;
    color: #2c2420;
}

.prev { left: 20px; }
.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #e5d94f;
    width: 30px;
    border-radius: 10px;
}

/* ==================== FRASE ==================== */
.frase {
    background: #2c2420;
    padding: 50px 0;
    text-align: center;
}

.frase i {
    font-size: 2rem;
    color: #e5d94f;
    margin-bottom: 15px;
}

.frase p {
    font-size: 1.3rem;
    font-weight: 500;
    color: #f0ebe0;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

/* ==================== SECCIÓN NIVELES ==================== */
.niveles {
    padding: 80px 0;
    background: #f0ebe0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c2420;
}

.section-header h2 span { color: #c8bc2a; }

.section-header .line {
    width: 60px;
    height: 3px;
    background: #e5d94f;
    margin: 15px auto;
}

.section-header p {
    color: #5a4a3a;
    max-width: 600px;
    margin: 0 auto;
}

.niveles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.nivel-card {
    background: #faf7f0;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e0d5c0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

.nivel-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.nivel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
    background: #fffdf8;
    border-color: #e5d94f;
}

.nivel-card .icon {
    width: 80px; height: 80px;
    background: #e5d94f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.nivel-card .icon i {
    font-size: 2rem;
    color: #2c2420;
}

.nivel-card:hover .icon { background: #2c2420; }
.nivel-card:hover .icon i { color: #e5d94f; }

.nivel-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2c2420;
}

.nivel-card p { color: #6b5a48; font-size: 0.9rem; }

/* ==================== ESPACIOS ==================== */
.espacios {
    padding: 0 0 80px;
    background: #f8f4eb;
    position: relative;
    overflow: hidden;
}

.espacios::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(circle at 5% 15%, rgba(229,217,79,0.08) 0%, transparent 40%),
        radial-gradient(circle at 95% 80%, rgba(44,36,32,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.espacios-hero-bar {
    height: 8px;
    background: linear-gradient(90deg, #e5d94f 0%, #c8bc2a 50%, #e5d94f 100%);
    margin-bottom: 0;
}

.espacios .container {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.espacios-header h2 { font-size: 2.4rem; }

.espacios-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 50px;
    background: transparent;
    color: #5a4a3a;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border: 0px;
    background-color: #e4dfd4de;
}

.filtro-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.filtro-btn:hover {
    color: #2c2420;
    background: #e5d94f;
    transform: translateY(-2px);
}

.filtro-btn:hover i { transform: scale(1.2); }

.filtro-btn.active {
    background: #e5d94f;
    color: #2c2420;
    box-shadow: 0 6px 20px rgba(44,36,32,0.25);
    transform: translateY(-2px);
}

.filtro-btn.active i { color: #2c2420; }

.espacios-count {
    text-align: center;
    font-size: 0.82rem;
    color: #8a7a68;
    margin-bottom: 40px;
    font-weight: 500;
}

.espacios-count span {
    font-weight: 700;
    color: #2c2420;
    font-size: 1rem;
}

.espacios-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.espacio-card-new {
    background: #faf7f0;
    border-radius: 22px;
    overflow: hidden;
    border: 1.5px solid #e4dcc8;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    box-shadow: 0 4px 16px rgba(44,36,32,0.06);
}

.espacio-card-new.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.espacio-card-new.hidden {
    display: none;
}

.espacio-card-new:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 45px rgba(44,36,32,0.14);
    border-color: #e5d94f;
}

.espacio-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.espacio-card-new:hover .card-bg-image {
    transform: scale(1.08);
}

.card-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,36,32,0.3) 0%, rgba(44,36,32,0.6) 100%);
    z-index: 1;
}

.card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(229,217,79,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.card-icon i {
    font-size: 1.2rem;
    color: #2c2420;
}

.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 2;
    color: white;
}

.card-content-overlay h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.card-content-overlay p {
    font-size: 0.75rem;
    opacity: 0.9;
    color: white;
}

.espacio-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(44,36,32,0.85);
    color: #e5d94f;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 3;
}

.badge-actividades {
    color: #7ecfb3;
}

.badge-talleres {
    color: #f0a070;
}

.espacio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44,36,32,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 4;
}

.espacio-card-new:hover .espacio-overlay { opacity: 1; }

.espacio-ver-btn {
    background: #e5d94f;
    color: #2c2420;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    transform: translateY(10px);
}

.espacio-card-new:hover .espacio-ver-btn { transform: translateY(0); }

.espacio-ver-btn:hover {
    background: #faf7f0;
    transform: scale(1.05);
}

.espacio-card-body {
    padding: 22px 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.espacio-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #e5d94f;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.espacio-icon-wrap i {
    font-size: 1.1rem;
    color: #2c2420;
}

.espacio-card-new:hover .espacio-icon-wrap {
    background: #2c2420;
}

.espacio-card-new:hover .espacio-icon-wrap i {
    color: #e5d94f;
}

.icon-actividades {
    background: rgba(126,207,179,0.2);
    border: 1.5px solid rgba(126,207,179,0.4);
}

.icon-actividades i { color: #3a9b7a; }

.espacio-card-new:hover .icon-actividades {
    background: #3a9b7a;
}

.espacio-card-new:hover .icon-actividades i { color: #fff; }

.icon-talleres {
    background: rgba(240,160,112,0.15);
    border: 1.5px solid rgba(240,160,112,0.35);
}

.icon-talleres i { color: #c06830; }

.espacio-card-new:hover .icon-talleres {
    background: #c06830;
}

.espacio-card-new:hover .icon-talleres i { color: #fff; }

.espacio-card-info { flex: 1; }

.espacio-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c2420;
    margin-bottom: 6px;
    line-height: 1.3;
}

.espacio-card-info p {
    font-size: 0.83rem;
    color: #6b5a48;
    line-height: 1.55;
    margin-bottom: 12px;
}

.espacio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.espacio-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0ebe0;
    border: 1px solid #e0d5c0;
    color: #5a4a3a;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.espacio-tags span i {
    font-size: 0.65rem;
    color: #c8bc2a;
}

.espacios-vacio {
    text-align: center;
    padding: 60px 20px;
    color: #8a7a68;
}

.espacios-vacio i {
    font-size: 3rem;
    color: #d4c9a8;
    margin-bottom: 15px;
    display: block;
}

.espacios-vacio p {
    font-size: 1rem;
    font-weight: 500;
}

/* ==================== MODAL ==================== */
.espacio-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20,15,10,0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.espacio-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.espacio-modal {
    background: #faf7f0;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    position: relative;
}

.espacio-modal-overlay.open .espacio-modal {
    transform: translateY(0) scale(1);
}

.espacio-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: rgba(44,36,32,0.8);
    border: none;
    border-radius: 50%;
    color: #e5d94f;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.espacio-modal-close:hover {
    background: #2c2420;
    transform: rotate(90deg) scale(1.1);
}

.espacio-modal-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.modal-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.modal-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,36,32,0.4) 0%, rgba(44,36,32,0.7) 100%);
}

.modal-icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(229,217,79,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.modal-icon-overlay i {
    font-size: 1.3rem;
    color: #2c2420;
}

.espacio-modal-body {
    padding: 28px 30px 32px;
}

.espacio-modal-badge {
    display: inline-block;
    background: #2c2420;
    color: #e5d94f;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.espacio-modal-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c2420;
    margin-bottom: 10px;
}

.espacio-modal-body p {
    font-size: 0.9rem;
    color: #5a4a3a;
    line-height: 1.65;
    margin-bottom: 18px;
}

.espacio-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.espacio-modal-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0ebe0;
    border: 1px solid #e0d5c0;
    color: #5a4a3a;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.espacio-modal-tags span i {
    font-size: 0.7rem;
    color: #c8bc2a;
}

/* ==================== VALORES ==================== */
.valores {
    padding: 80px 0;
    background: #f0ebe0;
}

.valores .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.valores-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.valores-content.animated {
    opacity: 1;
    transform: translateX(0);
}

.valores-img {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.valores-img.animated {
    opacity: 1;
    transform: translateX(0);
}

.valores-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c2420;
}

.valores-content h2 span { color: #c8bc2a; }

.valores-content p {
    color: #5a4a3a;
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: justify;
}

.valores-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.valores-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #2c2420;
}

.valores-list i {
    color: #c8bc2a;
    font-size: 1.1rem;
}

.btn-secundario {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #2c2420;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #e5d94f;
    transition: all 0.3s;
}

.btn-secundario:hover {
    background: #2c2420;
    border-color: #2c2420;
    color: #e5d94f;
}

.valores-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

/* ==================== PROGRENTIS SECTION ==================== */
.progrentis-section {
    padding: 80px 0 70px;
    background: #FDF6EC;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #E02020;
}

.pg-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 0 30px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.pg-left { width: 100%; }

.pg-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pg-logo-flame { flex-shrink: 0; }

.pg-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.pg-logo-text { line-height: 1.1; }

.pg-logo-name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.pg-logo-name sup { font-size: 10px; color: #E02020; vertical-align: super; }

.pg-logo-sub {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
}

.pg-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 18px;
}

.pg-hero-title span { color: #E02020; }

.pg-hero-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 32px;
}

.pg-comp-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.pg-comp-title span { color: #E02020; }

.pg-comp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
}

.pg-comp-card {
    background: #fff;
    border-radius: 14px;
    padding: 15px 8px 12px;
    text-align: center;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.pg-comp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.pg-comp-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 8px;
    color: #fff;
}

.pg-ci-red   { background: linear-gradient(135deg, #E02020, #ff6b6b); }
.pg-ci-orange{ background: linear-gradient(135deg, #F5A623, #ffcc44); }
.pg-ci-gold  { background: linear-gradient(135deg, #F5C842, #ffe066); }
.pg-ci-pink  { background: linear-gradient(135deg, #E02020, #ff4080); }
.pg-ci-blue  { background: linear-gradient(135deg, #4FACFE, #00f2fe); }
.pg-ci-teal  { background: linear-gradient(135deg, #F5A623, #F5C842); }

.pg-comp-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #E02020;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(224,32,32,0.35);
}

.pg-btn:hover {
    background: #C01A1A;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(224,32,32,0.45);
}

.pg-btn svg { transition: transform 0.2s; }
.pg-btn:hover svg { transform: translateX(4px); }

.pg-screens {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 420px;
    width: 100%;
    overflow: visible;
}

.pg-laptop {
    position: relative;
    width: 100%;
    max-width: 340px;
    z-index: 3;
    animation: pgFloat 3s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes pgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.pg-laptop-body {
    background: #2a2a2a;
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.pg-laptop-screen {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    height: 220px;
}

.pg-laptop-base {
    background: #3a3a3a;
    height: 12px;
    border-radius: 0 0 6px 6px;
    position: relative;
}

.pg-laptop-base::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: #555;
    border-radius: 0 0 4px 4px;
}

.pg-laptop-ui { display: flex; height: 100%; font-size: 7px; }

.pg-sidebar {
    width: 65px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.pg-sidebar-logo {
    padding: 0 6px 5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    font-weight: 900;
    color: #E02020;
    font-size: 6px;
    letter-spacing: 0.3px;
}

.pg-sidebar-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 0 12px 12px 0;
    color: #888;
    font-size: 5.5px;
    margin-right: 3px;
}

.pg-sidebar-item.pg-sactive {
    background: #fff0f0;
    color: #E02020;
    font-weight: 700;
}

.pg-sdot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.pg-sidebar-item.pg-sactive .pg-sdot { background: #E02020; }

.pg-lmain {
    flex: 1;
    padding: 8px;
    overflow: hidden;
    background: #fafafa;
}

.pg-ltopbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pg-ltitle {
    font-weight: 800;
    font-size: 8px;
    color: #222;
}

.pg-lperiod {
    font-size: 5px;
    color: #aaa;
}

.pg-lavatar {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #E02020, #F5A623);
    border-radius: 50%;
    color: #fff;
    font-size: 5.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-progress-card {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 6px;
}

.pg-progress-inner {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pg-donut-wrap { position: relative; flex-shrink: 0; }

.pg-donut-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 900;
    color: #E02020;
}

.pg-stats-col { flex: 1; }

.pg-plabel {
    font-size: 5px;
    color: #aaa;
    margin-bottom: 3px;
}

.pg-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.pg-stat {
    background: #fafafa;
    border-radius: 3px;
    padding: 2px 3px;
}

.pg-stat-red { background: #fff0f0; }

.pg-snum {
    font-size: 7px;
    font-weight: 800;
    color: #222;
}

.pg-slbl {
    font-size: 4px;
    color: #aaa;
}

.pg-act-title {
    font-weight: 800;
    font-size: 6px;
    color: #222;
    margin-bottom: 3px;
}

.pg-act-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pg-adot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    flex-shrink: 0;
}

.pg-ainfo { flex: 1; }

.pg-aname {
    font-size: 5px;
    font-weight: 700;
    color: #333;
}

.pg-asub {
    font-size: 4px;
    color: #aaa;
}

.pg-adate {
    font-size: 4px;
    color: #aaa;
    white-space: nowrap;
}

.pg-phone {
    position: absolute;
    right: -15px;
    bottom: 0;
    width: 110px;
    z-index: 5;
    animation: pgFloatPhone 3.5s ease-in-out infinite;
}

@keyframes pgFloatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.pg-phone-body {
    background: #1a1a1a;
    border-radius: 18px;
    padding: 6px 5px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.pg-phone-notch {
    width: 32px;
    height: 7px;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    margin: 0 auto 3px;
}

.pg-phone-screen {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 190px;
}

.pg-phone-ui {
    font-size: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pg-phone-topbar {
    background: #E02020;
    padding: 4px 6px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg-phone-greeting {
    font-size: 5.5px;
    font-weight: 800;
}

.pg-phone-status {
    font-size: 4.5px;
    opacity: 0.85;
}

.pg-phone-avatar {
    width: 11px;
    height: 11px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5px;
    color: #fff;
    font-weight: 700;
}

.pg-phone-content {
    flex: 1;
    padding: 4px 5px;
    overflow: hidden;
    background: #fafafa;
}

.pg-phone-section {
    font-weight: 800;
    font-size: 6px;
    color: #222;
    margin-bottom: 1px;
}

.pg-phone-period {
    font-size: 4.5px;
    color: #aaa;
    margin-bottom: 4px;
}

.pg-phone-progress-row {
    display: flex;
    gap: 4px;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pg-phone-donut { position: relative; flex-shrink: 0; }

.pg-phone-donut-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 900;
    color: #E02020;
}

.pg-phone-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.pg-phone-stat {
    background: #fafafa;
    border-radius: 3px;
    padding: 2px 3px;
}

.pg-psnum {
    font-size: 7px;
    font-weight: 800;
    color: #222;
}

.pg-pslbl {
    font-size: 3.5px;
    color: #aaa;
}

.pg-phone-acts {
    background: #fff;
    border-radius: 5px;
    padding: 3px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pg-ph-act {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pg-ph-dot {
    width: 5px;
    height: 5px;
    border-radius: 2px;
    flex-shrink: 0;
}

.pg-ph-name {
    font-size: 4.5px;
    font-weight: 700;
    color: #333;
}

.pg-ph-sub {
    font-size: 3.5px;
    color: #aaa;
}

.pg-right { width: 100%; }

.pg-info-block { margin-bottom: 20px; }

.pg-info-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #E02020;
    margin-bottom: 6px;
}

.pg-info-text {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.55;
}

.pg-feat-list { list-style: none; padding: 0; }

.pg-feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #444;
    line-height: 1.45;
}

.pg-feat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pg-fi-red    { background: #ffeaea; color: #E02020; }
.pg-fi-orange { background: #fff3e0; color: #F5A623; }
.pg-fi-yellow { background: #fffbe6; color: #F5C842; }
.pg-fi-shield { background: #e8f5e9; color: #4CAF50; }

.pg-valores-box {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.pg-valores-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
}

.pg-valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    text-align: center;
}

.pg-valor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.pg-vicon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pg-vi-red    { background: #ffeaea; color: #E02020; }
.pg-vi-orange { background: #fff3e0; color: #F5A623; }
.pg-vi-yellow { background: #fffbe6; color: #F5C842; }
.pg-vi-blue   { background: #e8f0ff; color: #4FACFE; }

.pg-vname {
    font-size: 0.6rem;
    font-weight: 700;
    color: #333;
}

/* ==================== CTA ==================== */
.cta { padding: 20px 0 80px; background-color: #f0ebe0 ;}

.cta-box {
    background: linear-gradient(135deg, #2c2420 0%, #3d322c 100%);
    border-radius: 30px;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
}

.cta-box h3 {
    color: #ece3d1;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.cta-box p { color: #d4c9b8; }

.cta-box .btn { background: #e5d94f; color: #2c2420; }
.cta-box .btn:hover { background: #f0ebe0; color: #2c2420; }

/* ==================== FOOTER REDISEÑADO ==================== */
.footer {
    background: #1a1512;
    position: relative;
    padding: 70px 0 30px;
    border-top: 1px solid rgba(229, 217, 79, 0.15);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e5d94f, #c4b82a, #e5d94f);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-col {
    color: #cbc3b0;
}

.footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 217, 79, 0.3);
}

.footer-logo-text h3 {
    color: #e5d94f;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
}

.footer-logo-text p {
    font-size: 0.7rem;
    color: #9e8e7a;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbc3b0;
    margin-bottom: 20px;
}

.footer-badge {
    display: inline-block;
    background: rgba(229, 217, 79, 0.12);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #e5d94f;
    border: 1px solid rgba(229, 217, 79, 0.25);
}

.footer-col h4 {
    color: #e5d94f;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e5d94f, transparent);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbc3b0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: #e5d94f;
    opacity: 0.6;
    transition: all 0.25s;
}

.footer-links a:hover {
    color: #e5d94f;
    transform: translateX(5px);
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #cbc3b0;
    transition: transform 0.25s;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 217, 79, 0.08);
    border-radius: 50%;
    color: #e5d94f;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.contact-item:hover i {
    background: #e5d94f;
    color: #1a1512;
    transform: scale(1.05);
}

.contact-item span {
    flex: 1;
    line-height: 1.5;
}

.social-footer {
    display: flex;
    gap: 14px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    color: #cbc3b0;
    transition: all 0.3s;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(229, 217, 79, 0.2);
}

.social-footer a:hover {
    background: #e5d94f;
    color: #1a1512;
    transform: translateY(-5px);
    border-color: #e5d94f;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(229, 217, 79, 0.12);
    font-size: 0.75rem;
    color: #8a7a68;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.heart {
    color: #e5d94f;
    font-size: 0.7rem;
}

/* ==================== SCROLL TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: #e5d94f;
    color: #2c2420;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover {
    background: #2c2420;
    color: #e5d94f;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .pg-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .pg-screens {
        grid-column: span 1;
        order: 2;
    }
    .pg-right {
        grid-column: span 1;
        order: 3;
    }
    .pg-left {
        grid-column: span 2;
        order: 1;
    }
    .pg-comp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .pg-phone {
        right: -10px;
        width: 105px;
    }
}

@media (max-width: 992px) {
    .valores .container { grid-template-columns: 1fr; }
    .slide-content h2 { font-size: 2rem; }
}

@media (max-width: 900px) {
    .pg-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pg-left,
    .pg-screens,
    .pg-right {
        grid-column: span 1;
    }
    .pg-screens {
        min-height: 380px;
        margin: 0 auto;
        width: 100%;
    }
    .pg-laptop {
        max-width: 320px;
    }
    .pg-phone {
        right: -5px;
        width: 100px;
    }
}

@media (max-width: 1000px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
    .logo { width: 80px; height: 80px; min-width: 80px; }
    .text h1 { font-size: 16px; }
    .text p { font-size: 12px; }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .carousel-section { height: 60vh; min-height: 400px; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; }
    .cta-box { flex-direction: column; text-align: center; padding: 30px 20px; }
    .top-bar .container { flex-direction: column; gap: 10px; text-align: center; }
    .contact-info { justify-content: center; }

    .espacios-filtros { gap: 8px; }
    .filtro-btn { padding: 9px 16px; font-size: 0.78rem; }
    .espacios-grid-new { grid-template-columns: 1fr; gap: 20px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-col:first-child {
        align-items: center;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col h4 {
        display: block;
        text-align: center;
    }
    .footer-links li {
        text-align: center;
    }
    .footer-links a {
        justify-content: center;
    }
    .contact-item {
        justify-content: center;
    }
    .social-footer {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .scroll-top { width: 40px; height: 40px; bottom: 20px; right: 20px; font-size: 1rem; }

    .espacio-modal-body { padding: 22px 20px 26px; }

    .pg-hero-title { font-size: 1.4rem; }
    .pg-comp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pg-laptop { max-width: 280px; }
    .pg-laptop-screen { height: 190px; }
    .pg-phone { display: none; }
    .pg-valores-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
    .progrentis-section { padding: 50px 0 50px; }
    .pg-hero-title { font-size: 1.2rem; }
    .pg-comp-card { padding: 12px 6px; }
    .pg-laptop { max-width: 260px; }
    .pg-laptop-screen { height: 170px; }
    .pg-btn { font-size: 0.75rem; padding: 10px 18px; }
    
    .logo { width: 65px; height: 65px; min-width: 65px; }
    .text h1 { font-size: 13px; }
    .text p { font-size: 10px; }
    .header .container { padding: 10px 15px; }
    .top-bar .container { padding: 0 15px; }
    .slide-content h2 { font-size: 1.2rem; }
    .slide-content p { font-size: 0.75rem; }
    .btn { padding: 8px 18px; font-size: 0.8rem; }
    .section-header h2 { font-size: 1.5rem; }
    .frase p { font-size: 1rem; }
    .carousel-btn { width: 35px; height: 35px; font-size: 0.9rem; }
    .prev { left: 10px; }
    .next { right: 10px; }
    .niveles-grid, .espacios-grid { grid-template-columns: 1fr; }
    .valores-list { grid-template-columns: 1fr; }

    .espacios-filtros { flex-direction: column; align-items: center; }
    .filtro-btn { width: 100%; max-width: 320px; justify-content: center; }
    .espacio-card-img { height: 170px; }

    .footer-logo-img {
        width: 50px;
        height: 50px;
    }
    .footer-logo-text h3 {
        font-size: 0.85rem;
    }
    .footer-col h3 { font-size: 1rem; }
    .footer-col p { font-size: 0.8rem; }
    .footer-bottom { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .pg-laptop { max-width: 220px; }
    .pg-laptop-screen { height: 140px; }
    .pg-sidebar { width: 50px; }
    .pg-lmain { padding: 5px; }
    .pg-progress-card { padding: 4px; }
    .pg-stats-grid { gap: 1px; }
    .pg-stat { padding: 1px 2px; }
    .pg-comp-grid {
        grid-template-columns: 1fr;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}