@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        height: auto;
        overflow: auto;
    }
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

@media (min-width: 1600px) {
    .page-wrapper {
        zoom: 1.5;
    }
}

header {
    width: 100%;
    padding: 10px 0 0;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}
.iniciar-session{
    padding: 20px;
    margin: 0 auto;
    max-width: 1000px;
    text-align: right;
}

.tagline {
    font-style: italic;
    color: #888;
    margin-top: 10px;
    font-size: 1.1rem;
}

main {
    width: 95%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 10px 0;
    align-items: center;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .form-container {
        order: 1;
    }

    header {
        padding: 10px 0 5px;
    }
    .iniciar-session{
        padding: 0 20px 20px;
    }
}
.page-wrapper h1 {
    font-size: 1.2rem;
    margin:0 0 20px;
    color:#888;
}
.hero-text h2 {
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-family: sans-serif;
    font-weight: 800;
    margin-top: 0;
}

.hero-text p {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #555;
    margin-bottom: 10px;
    min-height: 70px;
}

.text-slider {
    position: relative;
    height: 90px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
    border-left: 5px solid var(--primary);
    transition: border-color 1s ease;
    margin-bottom: 15px;
}

.slide {
    position: absolute;
    width: calc(100% - 30px);
    opacity: 0;
    transition: all 1s ease-in-out;
    top: 15px;
    left: 15px;
    transform: translateX(20px);
    font-style: italic;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide b {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: sans-serif;
    font-weight: 800;
    font-style: normal;
}

.features {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin: 0;
}

.features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #444;
}

.features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.form-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.label-select {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
    margin-bottom: 8px;
    display: block;
    font-family: sans-serif;
    font-weight: bold;
}

input[type='text'], select,input[type='email'], .plan-inicial-demo {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s;
    background: #fff;
}
.plan-inicial-demo {
    background-color: lightgray;
    cursor: not-allowed;
}

input[type='text']:focus, select:focus,input[type='email']:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background-color: #000;
}

.dialog-standard, .legal-dialog, dialog {
    border: none;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

dialog::backdrop {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.dialog-standard {
    max-width: 450px;
}

.legal-dialog {
    max-width: 1100px;
}

.login-form input, .login-form select, .login-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.login-form button:hover {
    background: #0056b3;
}

.close-btn-container {
    position:absolute;
    left: auto;
    right: 20px;
    top: 15px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

@media (max-width: 600px) {
    .dialog-standard, .legal-dialog, dialog {
        padding: 20px 15px;
    }
}

footer {
    padding: 20px 0;
    color: #bbb;
    font-size: 0.8rem;
    text-align: center;
    font-family: sans-serif;
    width: 100%;
}

.footer-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.75rem;
    text-decoration: underline;
    padding: 5px;
    transition: color 0.2s;
}

.footer-links button:hover {
    color: var(--accent);
}

dialog#planes-detail {
    border: none;
    border-radius: 15px;
    padding: 30px 30px 20px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    box-sizing: border-box;
    position: relative;
}

dialog#planes-detail::backdrop {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 600px) {
    .planes-grid {
        grid-template-columns: 1fr;
    }

    .page-wrapper {
        justify-content: flex-start;
        padding-top: 40px;
    }
}

.plan-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
}

.plan-card h4 {
    margin-top: 0;
    text-transform: uppercase;
    font-family: sans-serif;
    letter-spacing: 1px;
    color: var(--primary);
}

.plan-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    color: #666;
    text-align: left;
}

.plan-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '•';
    color: var(--accent);
    margin-right: 8px;
    font-weight: bold;
}

.btn-close-dialog {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    width: 100%;
}

.how-it-works {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.how-it-works h3 {
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #888;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    padding: 20px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.step h4 {
    font-family: sans-serif;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
