/* ================================================
   CONTACT PAGE - CLEAN TEKLA STYLE
   Diseño limpio, amplio, aireado con blancos
   Última actualització: 2025-01-13
   ================================================ */

.contact-page-clean {
    background: #fff;
    padding: 80px 0 100px;
}

.container-clean {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 1.875rem; /* 30px - igual que el resto de la web */
}

/* Header */
.contact-header-clean {
    text-align: center;
    margin-bottom: 80px;
}

.contact-header-clean h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-lead {
    font-size: 1.25rem;
    color: #666;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout */
.contact-layout-clean {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 100px;
    align-items: start;
}

/* Contact Info Sidebar */
.contact-info-clean {
    position: sticky;
    top: 165px; /* 20px logo + 80px espacio = justo debajo del logo sin solapar */
}

.info-item-clean {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    padding-top: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item-clean:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item-clean i {
    font-size: 1.5rem;
    color: #5b7c99;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-item-clean h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item-clean a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.info-item-clean a:hover {
    color: #5b7c99;
}

.info-item-clean p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Form Container */
.contact-form-clean {
    background: #fff;
}

.form-tekla {
    width: 100%;
}

/* Grid 2 columns */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Field Full Width */
.form-field-tekla-full {
    margin-bottom: 40px;
}

/* Floating Label Input Style (Tekla) */
.form-field-tekla {
    position: relative;
    width: 100%;
}

.form-field-tekla input,
.form-field-tekla textarea {
    width: 100%;
    padding: 20px 0 10px 0;
    border: none;
    border-bottom: 1px solid #d0d0d0;
    background: transparent;
    font-size: 1rem;
    color: #1a1a1a;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-field-tekla input:focus,
.form-field-tekla textarea:focus {
    border-bottom-color: #5b7c99;
}

.form-field-tekla label {
    position: absolute;
    left: 0;
    top: 20px;
    color: #999;
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.3s;
    pointer-events: none;
}

/* Floating effect when input has value or is focused */
.form-field-tekla input:focus + label,
.form-field-tekla input:not(:placeholder-shown) + label,
.form-field-tekla textarea:focus + label,
.form-field-tekla textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    color: #5b7c99;
    font-weight: 400;
}

.form-field-tekla textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 25px;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 20px 0 10px 0;
    border: none;
    border-bottom: 1px solid #d0d0d0;
    background: transparent;
    font-size: 1rem;
    color: #1a1a1a;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color 0.3s;
}

.select-wrapper select:focus {
    border-bottom-color: #5b7c99;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 20px;
    font-size: 0.7rem;
    color: #999;
    pointer-events: none;
}

.select-wrapper .select-label {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.75rem;
    color: #5b7c99;
    font-weight: 400;
    pointer-events: none;
}

.select-wrapper select:invalid {
    color: #999;
}

.select-wrapper select:valid {
    color: #1a1a1a;
}

/* Field Labels */
.field-label {
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.field-subtitle {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Checkbox Grid (Tekla style) */
.checkbox-grid-tekla {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.checkbox-tekla {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-tekla input[type="checkbox"] {
    width: 0;
    height: 0;
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
    display: inline-block;
}

.checkbox-tekla:hover .checkbox-custom {
    border-color: #5b7c99;
}

.checkbox-tekla input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #5b7c99;
    border-color: #5b7c99;
}

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

.checkbox-label {
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Privacy Checkbox */
.checkbox-privacy-tekla {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-privacy-tekla input[type="checkbox"] {
    width: 0;
    height: 0;
    position: absolute;
    opacity: 0;
}

.checkbox-privacy-tekla .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
    display: inline-block;
    margin-top: 2px;
}

.checkbox-privacy-tekla:hover .checkbox-custom {
    border-color: #5b7c99;
}

.checkbox-privacy-tekla input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #5b7c99;
    border-color: #5b7c99;
}

.checkbox-privacy-tekla input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.checkbox-privacy-tekla .checkbox-label {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-privacy-tekla a {
    color: #5b7c99;
    text-decoration: underline;
}

/* Submit Button */
.form-actions-clean {
    margin-top: 50px;
}

.btn-submit-clean {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-submit-clean:hover {
    background: #5b7c99;
    transform: translateX(5px);
}

.btn-submit-clean i {
    transition: transform 0.3s;
}

.btn-submit-clean:hover i {
    transform: translateX(5px);
}

/* Alerts */
.alert-clean {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 40px;
    border-left: 3px solid;
    background: #f8f9fa;
}

.alert-success {
    border-left-color: #28a745;
}

.alert-success i {
    color: #28a745;
    font-size: 1.25rem;
}

.alert-error {
    border-left-color: #dc3545;
}

.alert-error i {
    color: #dc3545;
    font-size: 1.25rem;
}

.alert-clean strong {
    display: block;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.alert-clean p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.alert-clean ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
    color: #666;
}

/* Validation Error States */
.form-field-tekla input.is-invalid,
.form-field-tekla textarea.is-invalid,
.select-wrapper select.is-invalid {
    border-bottom-color: #dc3545;
}

.form-field-tekla input.is-invalid + label,
.form-field-tekla textarea.is-invalid + label {
    color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.checkbox-tekla.is-invalid .checkbox-custom,
.checkbox-privacy-tekla.is-invalid .checkbox-custom {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-layout-clean {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-info-clean {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .info-item-clean {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .container-clean {
        padding: 0 20px;
    }
    
    .contact-page-clean {
        padding: 60px 0 80px;
    }
    
    .contact-header-clean {
        margin-bottom: 60px;
    }
    
    .contact-header-clean h1 {
        font-size: 2.5rem;
    }
    
    .contact-lead {
        font-size: 1.1rem;
    }
    
    .contact-info-clean {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-item-clean {
        flex-direction: row;
        gap: 15px;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .checkbox-grid-tekla {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-submit-clean {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-header-clean h1 {
        font-size: 2rem;
    }
    
    .contact-lead {
        font-size: 1rem;
    }
    
    .form-field-tekla-full {
        margin-bottom: 30px;
    }
}
