:root {
    --roosevelt-red: #C41230;
    --roosevelt-red-hover: #a00e26;
    --roosevelt-red-light: #fff0f2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), #edf5ff);
    min-height: 100vh;
    color: #333;
}

/* Header */
.header {
    background: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--roosevelt-red);
}

.logo-text span { color: #666; font-weight: 400; }

.header-tagline {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.hero h1 {
    font-size: 2.3rem;
    color: var(--roosevelt-red);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    color: #555;
}

/* Programs Wrapper */
.programs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    margin-bottom: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.programs-list {
    background: var(--roosevelt-red);
    padding: 25px 20px;
    color: white;
}

.programs-list h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-item {
    padding: 16px 15px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.program-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(4px);
}

.program-item.active {
    background: rgb(47 56 83);
    border-left-color: #a5a5a5;
}

.program-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.program-item p {
    font-size: 0.85rem;
    opacity: 0.95;
}

/* Program Content */
.program-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.image-slider {
    width: 100%;
    height: 320px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: #f5f5f5;
    border: 3px solid var(--roosevelt-red-light);
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.slider-image.fade-out { opacity: 0; }

.slider-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.indicator.active {
    background: var(--roosevelt-red);
    width: 28px;
    border-radius: 5px;
}

.program-description { flex: 1; }

.program-description h2 {
    color: var(--roosevelt-red);
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.program-description p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 1rem;
}

.features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--roosevelt-red);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--roosevelt-red-light);
    padding: 6px 12px;
    border-radius: 20px;
}

.feature i { color: var(--roosevelt-red); }

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--roosevelt-red);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(196, 18, 48, 0.35);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--roosevelt-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 18, 48, 0.5);
}

.urgency-text {
    color: var(--roosevelt-red);
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Enrollment Section */
.enrollment-section {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-top: 30px;
    border-top: 4px solid var(--roosevelt-red);
}

.enrollment-section h2 {
    color: var(--roosevelt-red);
    font-size: 1.9rem;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
}

.enrollment-section > p {
    text-align: center;
    color: #666;
    margin-bottom: 28px;
}

.payment-button-container {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px;
    background: #fafafa;
    border-radius: 15px;
    border: 1px solid #eee;
}

.payment-button-container h3 {
    margin-bottom: 15px;
    color: var(--roosevelt-red);
    font-weight: 600;
}

.payment-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(30,60,114,0.35);
}

.payment-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30,60,114,0.55);
}

.payment-info {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form */
.enrollment-form { max-width: 700px; margin: 0 auto; }

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    color: var(--roosevelt-red);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--roosevelt-red);
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 20px;
    border: 2px dashed var(--roosevelt-red);
    border-radius: 10px;
    background: var(--roosevelt-red-light);
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    background: #ffe8eb;
    border-color: var(--roosevelt-red-hover);
}

.file-upload-label i {
    font-size: 1.8rem;
    color: var(--roosevelt-red);
}

.file-upload-label strong { color: var(--roosevelt-red); }

.submit-button {
    width: 100%;
    background: var(--roosevelt-red);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button:hover {
    background: var(--roosevelt-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 18, 48, 0.4);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 968px) {
    .programs-wrapper { grid-template-columns: 1fr; }
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .hero h1 { font-size: 1.9rem; }
    .enrollment-section { padding: 30px 20px; }
    .image-slider { height: 280px; }
}

/* Success Message */
.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #c3e6cb;
    animation: slideIn 0.5s;
}

.success-message.show { display: block; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Popup Inactividad */
#inactivityPopup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

#inactivityPopup .popup-content {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    border-top: 4px solid var(--roosevelt-red);
}

#inactivityPopup .close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

#inactivityPopup .popup-icon {
    font-size: 2.5rem;
    color: var(--roosevelt-red);
    margin-bottom: 15px;
    display: block;
}

#inactivityPopup h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

#inactivityPopup p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

#inactivityPopup .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s;
}

#inactivityPopup .whatsapp-btn:hover {
    transform: scale(1.05);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }