/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Ubuntu", sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #000000;
    position: relative;
    min-height: 100vh;
    padding: 80px 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Full Screen */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        display: block;
        overflow-y: auto;
    }
    
    .form-container {
        width: 100%;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    .form-content {
        flex: 1;
        padding: 1rem;
        padding-top: 90px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* Navigation Styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-menu .bylogo {
    height: 40px;
    width: auto;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.desktop-menu li a {
    color: #000000;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.desktop-menu li a:hover {
    color: #24E80B;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #ffffff;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #ffffff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: rgba(0, 0, 0);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin: 1.5rem 0;
    text-align: center;
}

.mobile-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    transition: color 0.3s ease;
    display: block;
    padding: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu li a:hover {
    color: #007bff;
}

/* Mobile Social Media Section */
.mobile-social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.mobile-social-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 50px;
    min-width: 50px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-social-link.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.mobile-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.mobile-social-link.linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.mobile-social-link ion-icon {
    font-size: 24px;
}

.mobile-menu li a:active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.form-container {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.form-content {
    padding: 3rem;
    padding-top: 7rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #24E80B;
    box-shadow: 0 0 0 3px rgba(36, 232, 11, 0.1);
}

.form-group input:invalid:not(:focus) {
    border-color: #e0e0e0;
}

.form-group input:invalid:focus {
    border-color: #24E80B;
}

.form-help {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #24E80B;
    border-color: #24E80B;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: #24E80B;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, #24E80B 0%, #1BC900 100%);
    color: #ffffff;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(36, 232, 11, 0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    margin: 1rem;
    animation: scaleIn 0.3s ease;
}

.success-content i {
    font-size: 4rem;
    color: #24E80B;
    margin-bottom: 1rem;
}

.success-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    margin-bottom: 2rem;
}

.reset-btn {
    background: #24E80B;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #1BC900;
    transform: translateY(-1px);
}

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

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav {
        padding: 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .desktop-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .logo-menu .bylogo {
        height: 35px;
    }
    
    
    .form-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .form-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .checkbox-group {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.8rem;
    }
    
    .logo-menu .bylogo {
        height: 30px;
    }
    
    .hamburger-menu span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-menu-content {
        padding: 60px 1rem 1rem;
    }
    
    .mobile-menu li a {
        font-size: 1.3rem;
    }
    
    .mobile-social-links {
        gap: 1rem;
    }
    
    .mobile-social-link {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .mobile-social-link ion-icon {
        font-size: 20px;
    }
    
    .mobile-social-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .form-content {
        padding-top: 80px;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    .form-content {
        padding: 5rem 0.8rem 2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}
