/* Variables */
:root {
    --primary-color: #2c3e50;
    --primary-light: rgba(44, 62, 80, 0.1);
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --background-light: #f8fafc;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --card-shadow: 
        rgba(17, 12, 46, 0.15) 0px 48px 100px 0px,
        rgba(0, 0, 0, 0.1) 0px 2px 4px;
}

/* Vue.js cloak */
[v-cloak] {
    display: none;
}

/* General Styles */
.contact-page {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(41, 98, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Background Shapes */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    background: var(--accent-color);
    width: 500px;
    height: 500px;
    top: -250px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    background: var(--primary-color);
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}


@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -20px) rotate(5deg);
    }
}

/* Content Styles */
.contact-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.highlight-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #50C878;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.contact-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.section-title {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--text-color);
}

.form-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.6rem; /* Ajustar tamaño de texto en el formulario */
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.phone-group .phone-input-container {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
}

.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: #2E3440;
    color: white;
    padding: 10px;
}

.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.form-group select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.has-error {
    border-color: rgba(255, 82, 82, 0.5);
}

.error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    color: rgb(255, 82, 82);
    font-size: 0.8rem;
    opacity: 0.9;
}

.error-message.global-error {
    background-color: rgba(255, 82, 82, 0.1);
    border: 1px solid rgb(255, 82, 82);
    color: rgb(255, 82, 82);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.success-message {
    background-color: rgba(80, 200, 120, 0.1);
    border: 1px solid #50C878;
    color: #50C878;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-footer {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    background: linear-gradient(135deg, #50C878, #2E8B57);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    min-width: 200px;
    min-height: 54px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button.loading {
    display: none;
}

.submit-button.success {
    background: #50C878;
}

.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #50C878;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

.form-message {
    margin-top: 40px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #50C878;
    background-color: rgba(80, 200, 120, 0.1);
    border: 1px solid #50C878;
    animation: slideUp 0.3s ease;
}

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

.privacy-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .contact-page {
        padding: 3rem 1rem;
    }

    .contact-header h1 {
        font-size: 1.8rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .form-container {
        padding: 2rem;
        max-width: 100%;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input, .form-group textarea {
        font-size: 0.9rem;
    }
}

/* Tablet Small (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .contact-page {
        padding: 4rem 2rem;
    }

    .contact-header h1 {
        font-size: 2.2rem;
    }

    .contact-section {
        padding: 3rem 2rem;
    }

    .form-container {
        padding: 2.5rem;
        max-width: 80%;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input, .form-group textarea {
        font-size: 1rem;
    }
}

/* Tablet Large (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-page {
        padding: 5rem 3rem;
    }

    .contact-header h1 {
        font-size: 2.4rem;
    }

    .contact-section {
        padding: 4rem 2rem;
    }

    .form-container {
        padding: 3rem;
        max-width: 70%;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input, .form-group textarea {
        font-size: 1.1rem;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .contact-page {
        padding: 6rem 5rem;
    }

    .contact-header h1 {
        font-size: 2.8rem;
    }

    .contact-section {
        padding: 4rem 4rem;
    }

    .form-container {
        padding: 3.5rem;
        max-width: 60%;
    }

    .form-group label {
        font-size: 1.1rem;
    }

    .form-group input, .form-group textarea {
        font-size: 1.2rem;
    }
}