:root {
    --primary-blue: #0094D6;
    --dark-gray: #4A5568;
    --light-gray: #E2E8F0;
    --white: #FFFFFF;
    --black: #1A202C;
    --success: #48BB78;
    --hover-blue: #0077B5;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #F5F7FA;
}

/* Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    padding: 2rem 0;
}

/* Main Layout */
.main-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    margin: 0 auto 4rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Left Section */
.left-section {
    flex: 1;
    background: #FFFFFF;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 148, 214, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.logo {
    width: 400px;
    height: auto;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    max-width: 90%;
}

.content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary-blue);
}

.subtitle {
    font-size: 1.25rem;
    color: #64748B;
    margin-bottom: 0;
    line-height: 1.8;
    max-width: 500px;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F8FAFC;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #FFFFFF;
    transform: translateX(10px);
    box-shadow: 0 8px 16px rgba(0, 148, 214, 0.1);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.125rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* Right Section */
.right-section {
    flex: 1;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.right-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.form-container h2 {
    font-size: 1.75rem;
    color: var(--black);
    margin-bottom: 0.75rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    font-size: 0.9375rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.3s;
    background: #FAFBFC;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}


/* Button */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.trust-indicators span {
    font-size: 0.875rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.popup-overlay.show {
    display: block;
}

.popup-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.popup h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.popup p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Error message styles */
.error-message {
    color: #E53E3E;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Modal del Captcha Matemático */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90vw;
    animation: modalSlideIn 0.3s ease-out;
}

.modal.show .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-header p {
    color: var(--dark-gray);
    font-size: 0.9375rem;
    margin: 0;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.captcha-question {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 148, 214, 0.05) 0%, rgba(0, 148, 214, 0.1) 100%);
    border-radius: 12px;
    display: inline-block;
    min-width: 200px;
}

.captcha-question span {
    display: inline-block;
    margin: 0 0.5rem;
}

.captcha-input {
    width: 100%;
    max-width: 200px;
    padding: 1rem;
    font-size: 1.25rem;
    text-align: center;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s;
    background: #FAFBFC;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 148, 214, 0.1);
}

.captcha-error {
    color: #E53E3E;
    font-size: 0.875rem;
    margin-top: 1rem;
    display: none;
    font-weight: 500;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-footer .btn {
    min-width: 120px;
}

.btn-secondary {
    background: #E2E8F0;
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background: #CBD5E0;
    transform: translateY(-2px);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2999;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Examples Section */
.examples-section {
    padding: 1rem 0 6rem;
    background: #F8FAFC;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-top: 2rem;
}

.section-subtitle {
    text-align: justify;
    font-size: 1.125rem;
    color: var(--dark-gray);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-justify: inter-word;
    hyphens: auto;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: start;
}

.example-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hand-pointer {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.example-item h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin: 0;
    font-weight: 600;
}

.example-item p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #007BB5 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.video-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.video-link:hover {
    transform: scale(1.05);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.video-link:hover .play-button {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.video-link span {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Elegant Scroll Invitation */
.scroll-invitation {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


.invitation-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #007BB5 100%);
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 148, 214, 0.3);
}

.invitation-content:hover {
    transform: translateY(-2px);
}

.invitation-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.arrow-left,
.arrow-right {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    animation: bounce-arrow 2s ease-in-out infinite;
}

.arrow-left {
    animation-delay: 0s;
}

.arrow-right {
    animation-delay: 0.3s;
}


@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 35px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-credit {
    font-size: 0.75rem;
    color: #9CA3AF;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .left-section,
    .right-section {
        padding: 2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 1rem 0;
    }
    
    .main-container {
        flex-direction: column;
        min-height: auto;
        margin: 0 1rem 2rem;
        border-radius: 16px;
        max-width: calc(100vw - 2rem);
    }
    
    html, body {
        overflow-y: auto;
    }
    
    .left-section {
        padding: 2rem 1.5rem;
        min-height: auto;
        text-align: center;
    }
    
    .right-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .logo {
        width: 280px;
        max-width: 90%;
        margin-bottom: 2rem;
    }
    
    .examples-section {
        padding: 1rem 0 3rem;
    }
    
    .scroll-invitation {
        padding: 1.5rem 1rem;
    }
    
    .invitation-content {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }
    
    .invitation-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .arrow-left,
    .arrow-right {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        text-align: center;
        max-width: 100%;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .example-item p {
        text-align: left;
    }
    
    
    .example-item {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    /* Modal del captcha responsive */
    .modal-content {
        width: 95vw;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .captcha-question {
        font-size: 1.5rem;
        min-width: auto;
        width: 100%;
    }
    
    .captcha-input {
        font-size: 1.125rem;
        padding: 0.875rem;
    }
}