/* IMPORT GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Montserrat:wght@900&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

/* LAUNCH ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MAIN LAYOUT */
.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HERO PANEL - IZQUIERDA EN PC / ARRIBA EN MOVIL */
.hero-panel {
    background: linear-gradient(160deg, #2d5a0d 0%, #4a7511 40%, #3a6b0e 70%, #1e4008 100%);
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(125, 186, 36, 0.08);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.hero-decoration-2 {
    width: 200px;
    height: 200px;
    top: auto;
    right: auto;
    bottom: -60px;
    left: -60px;
    background: rgba(241, 1, 128, 0.06);
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(125, 186, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(241, 1, 128, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.logo-container {
    background: #F10180;
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(241, 1, 128, 0.25);
    width: fit-content;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(241, 1, 128, 0.3);
}

.logo-container img {
    height: 45px;
    display: block;
}

.hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

.hero-highlight {
    color: #a8e54c;
    position: relative;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 300;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-feature .material-symbols-rounded {
    font-size: 20px;
    color: #a8e54c;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge .material-symbols-rounded {
    font-size: 18px;
    color: #a8e54c;
}

/* BRAND ACCENT COLOR */
.brand-accent {
    color: #F10180;
}

/* FORM PANEL - DERECHA EN PC / ABAJO EN MOVIL */
.form-panel {
    flex: 1;
    background: linear-gradient(180deg, #f0f2f5 0%, #e8ecf0 100%);
    padding: 40px 20px 60px;
    display: flex;
    justify-content: center;
}

.form {
    width: 100%;
    max-width: 850px;
    padding: 0 0 60px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

/* FORM SECTIONS */
.form-section {
    background: #fff;
    border-radius: 20px;
    padding: 24px 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: slideUp 0.5s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #4a7511;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.section-title .material-symbols-rounded {
    font-size: 22px;
    color: #7DBA24;
    background: rgba(125, 186, 36, 0.1);
    padding: 6px;
    border-radius: 10px;
}

/* INPUTS Y LABELS */
.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

label {
    flex: 1 1 250px;
    position: relative;
}

.input {
    width: 100%;
    padding: 18px 16px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
    color: #333;
}

.input:focus {
    outline: none;
    border-color: #7DBA24;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(125, 186, 36, 0.1);
}

.input:hover:not(:focus) {
    border-color: #c0c0c0;
}

label span {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #999;
    font-size: 15px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.input:focus+span,
input.input:not(:placeholder-shown)+span,
select.input:valid+span,
textarea.input:not(:placeholder-shown)+span {
    top: -10px;
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #7DBA24;
    background: #fff;
    padding: 0 6px;
}

/* TEXTAREA */
.textarea-input {
    resize: vertical;
    min-height: 48px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
}

/* BOTON SUBMIT */
.submit-container {
    text-align: center;
    margin-top: 8px;
}

.submit {
    background: linear-gradient(135deg, #7DBA24 0%, #588a14 100%);
    color: #fff;
    border: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(125, 186, 36, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit:hover::before {
    left: 100%;
}

.submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(125, 186, 36, 0.4);
}

.submit:active {
    transform: translateY(-1px);
}

/* LOADER */
.loader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #eee;
    border-top: 4px solid #7DBA24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* TOAST */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.toast {
    background: #fff;
    padding: 16px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-left: 5px solid #7DBA24;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 15px;
}

.toast.show {
    transform: translateX(0);
}

/* RESPONSIVE DESKTOP */
@media (min-width: 1024px) {
    .main-layout {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }

    .hero-panel {
        flex: 0 0 35%;
        height: 100vh;
        padding: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .form-panel {
        flex: 1;
        overflow-y: auto;
        padding: 40px 50px 60px;
    }

    .form-section {
        padding: 32px 28px 28px;
    }
}

/* RESPONSIVE SMALL SCREENS */
@media (max-width: 600px) {
    .form-panel {
        padding: 24px 14px 40px;
    }

    .form-section {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 14px;
    }

    .flex {
        gap: 12px;
    }

    .submit {
        width: 100%;
        padding: 16px 40px;
    }
}

/* SCROLLBAR STYLING */
.form-panel::-webkit-scrollbar {
    width: 6px;
}

.form-panel::-webkit-scrollbar-track {
    background: transparent;
}

.form-panel::-webkit-scrollbar-thumb {
    background: rgba(125, 186, 36, 0.3);
    border-radius: 10px;
}

.form-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 186, 36, 0.5);
}
