/**
 * Layout Principal
 * Define la estructura principal de header, main y footer
 */

/* Header */
header {
    height: 10%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 1rem;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.header-pesora {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.header-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.header-value {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-header-recalcular {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-header-recalcular:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

/* Main */
main {
    height: 60%;
    background: var(--gradient-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

main h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

main h3 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    max-width: 700px;
    margin: 0;
}

main h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
}

main button {
    background-color: var(--text-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

main button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--text-secondary);
}

main button:active {
    transform: translateY(0);
}

/* Footer */
footer {
    height: 30%;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
}

footer h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    max-width: 500px;
    margin: 0 0 0.5rem 0;
}

.footer-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 450px;
}

.footer-form input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.footer-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.footer-form input:focus {
    outline: none;
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-form input.error {
    border-color: var(--error-color);
    background-color: rgba(255, 107, 107, 0.1);
}

.footer-form input.success {
    border-color: #4ade80;
    background-color: rgba(74, 222, 128, 0.1);
}

.footer-form button {
    background-color: var(--text-color);
    color: var(--primary-color);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.footer-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.mensaje-registro {
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.5rem;
    font-weight: 500;
}

.mensaje-registro.error {
    color: var(--error-color);
}

.mensaje-registro.success {
    color: #4ade80;
}

/* Footer Promoción LevelAbits */
.footer-promo {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
}

.promo-text {
    text-align: center;
    flex: 1;
}

.promo-text h2 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
}

.promo-text p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

.promo-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image img {
    max-width: 100px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-playstore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--text-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.btn-playstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--text-secondary);
}

.btn-playstore svg {
    width: 20px;
    height: 20px;
}
