/* ============================================
   PROGE - Landing Page Styles
   Colors:
   - Primary Accent: #5ac6e6 (cyan)
   - Dark Navy: #000d5a (navbar, footer, buttons)
   - Page Bg: #ffffff (white)
   - Card Navy: #001270 (step image cards)
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #000d5a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #5ac6e6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* === NAVBAR === */
.navbar {
    background-color: #000d5a;
    padding: 14px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 2px solid rgba(90, 198, 230, 0.2);
}

.navbar.scrolled {
    background-color: rgba(0, 13, 90, 0.97);
    box-shadow: 0 2px 20px rgba(90, 198, 230, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, height 0.4s ease;
}

.navbar.scrolled .navbar-logo img {
    height: 40px;
}

.navbar-logo img:hover {
    transform: scale(1.05);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    margin-top: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.70) 30%,
        rgba(0, 0, 0, 0.30) 60%,
        rgba(0, 0, 0, 0.00) 100%
    );
    z-index: 2;
}

/* === HERO SPARKS CANVAS === */
#heroSparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-text {
    max-width: 520px;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-description strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-subdescription {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-top: 16px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* === CYAN DIVIDER LINE === */
.divider-orange {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #5ac6e6, #80d9f2, #5ac6e6);
    box-shadow: 0 0 20px rgba(90, 198, 230, 0.6);
}

/* === CONTENT SECTION === */
.content-section {
    background-color: #ffffff;
    padding: 60px 24px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

/* === INTRO HIGHLIGHT === */
.content-intro {
    text-align: center;
    margin-bottom: 50px;
}

.content-intro p {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000d5a;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto;
}

.content-intro strong {
    color: #000d5a;
    font-weight: 700;
}

/* === SECTION TITLE === */
.section-title {
    text-align: center;
    margin-bottom: 12px;
    margin-top: 40px;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000d5a;
    letter-spacing: 0px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 36px;
}

.section-subtitle p {
    font-size: 0.95rem;
    color: rgba(0, 13, 90, 0.65);
    max-width: 650px;
    margin: 0 auto;
}

/* === STEPS === */
.steps-section {
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.step-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #5ac6e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #000d5a;
    box-shadow: 0 4px 15px rgba(90, 198, 230, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(90, 198, 230, 0.6);
}

.step-content {
    flex: 1;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: #5ac6e6;
    margin-right: 12px;
    line-height: 1;
}

.step-text {
    font-size: 0.95rem;
    color: #000d5a;
    line-height: 1.6;
    margin: 0;
}

.step-text small {
    color: rgba(0, 13, 90, 0.65);
    font-size: 0.88rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    min-height: 56px;
}

.step-list {
    margin-top: 10px;
    padding-left: 20px;
}

.step-list li {
    font-size: 0.93rem;
    color: #000d5a;
    line-height: 1.8;
}

.step-list li strong {
    color: #000d5a;
}

/* === STEP IMAGES (dark card) === */
.step-image {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(90, 198, 230, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 550px;
    background-color: #001270;
}

.step-image-center {
    margin-left: auto;
    margin-right: auto;
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Step form (embedded in step 1) */
.step-form {
    margin-top: 20px;
}

.step-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* === FORM === */
.form-section {
    margin-top: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #000d5a;
    margin-bottom: 10px;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    background-color: #f0f7ff;
    border: 1px solid #cbe1f8;
    border-radius: 6px;
    color: #000d5a;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #5ac6e6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(90, 198, 230, 0.15);
}

.form-group input::placeholder {
    color: rgba(0, 13, 90, 0.4);
}

/* File upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: flex;
    align-items: stretch;
    padding: 0;
    background-color: #d6e8f8;
    border: 1px solid #b0cfe8;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.file-upload-label:hover {
    border-color: #5ac6e6;
    box-shadow: 0 0 0 2px rgba(90, 198, 230, 0.2);
}

.file-upload-label span:first-child {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    background-color: #000d5a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-name-display {
    flex: 1;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #000d5a;
    background: transparent;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* File preview thumbnail */
.file-preview {
    margin-top: 14px;
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(90, 198, 230, 0.5);
    box-shadow: 0 4px 20px rgba(90, 198, 230, 0.2);
    animation: previewFadeIn 0.4s ease forwards;
    max-width: 180px;
}

.file-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.file-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(239, 68, 68, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.file-preview-remove:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.15);
}

@keyframes previewFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background-color: #000d5a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background-color: #80d9f2;
    color: #000d5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(90, 198, 230, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

/* === LEGAL TEXT === */
.legal-text {
    margin-top: 40px;
    margin-bottom: 10px;
    text-align: center;
    padding: 30px 20px 15px;
    border-top: 1px solid rgba(0, 13, 90, 0.1);
}

.legal-text p {
    font-size: 1rem;
    color: #000d5a;
    line-height: 1.8;
    max-width: 1100px;
    margin: 0 auto;
}

.legal-text p strong {
    font-weight: 700;
    color: #000d5a;
}

/* === FOOTER === */
.footer {
    background-color: #000d5a;
    padding: 30px 24px;
    border-top: 1px solid rgba(90, 198, 230, 0.15);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5ac6e6;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(50px);
    animation: toastIn 0.4s ease forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.toast.toast-success {
    background-color: rgba(34, 197, 94, 0.95);
}

.toast.toast-error {
    background-color: rgba(239, 68, 68, 0.95);
}

.toast.toast-out {
    animation: toastOut 0.4s ease forwards;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(90, 198, 230, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(90, 198, 230, 0);
    }
}



/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === AVISO / TERMINOS pages === */
.legal-page-section {
    background-color: #000a40;
    color: rgba(255, 255, 255, 0.88);
}

.legal-page-section h2,
.legal-page-section h3 {
    color: #5ac6e6;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .hero {
        min-height: 420px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-text {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        align-items: flex-end;
    }

    .hero-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 13, 90, 0.95) 0%,
            rgba(0, 13, 90, 0.55) 50%,
            rgba(0, 13, 90, 0.2) 100%
        );
    }

    .hero-content {
        justify-content: center;
        padding: 40px 20px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-description,
    .hero-subdescription {
        font-size: 0.95rem;
    }

    .content-section {
        padding: 40px 20px;
    }

    .content-intro p {
        font-size: 1rem;
    }

    .form-grid,
    .step-form .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-header {
        justify-content: center;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar-logo img {
        height: 56px;
    }

    .hero {
        margin-top: 58px;
        min-height: 450px;
    }

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

    .hero-description,
    .hero-subdescription {
        font-size: 0.9rem;
    }

    .content-intro p {
        font-size: 0.95rem;
    }

    .step-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.2rem;
    }
}
