.contacto {
    background-color: #f8f6f4; /* Color más suave que el actual #f2e8e0 */
    scroll-margin-top: 80px; /* Añade esta línea - mismo valor que el padding-top del body */
}

.contacto .container {
    max-width: 1000px;
}

.contacto-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.contacto h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contacto-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    font-style: italic;
    text-align: center;
}

/* Left column styling - contact info */
.contacto-info-col {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 420px;
    margin-top: 0;
    background: none;
    box-shadow: none;
    padding: 0 2rem;
}

.contacto-info-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: #b57f50;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
}

.contacto-info-col p {
    font-size: 1rem;
    color: #555; /* Color más suave que el #333 por defecto */
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.contacto-info-col p:first-of-type {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic; /* Toque elegante */
}

.contacto-info-col a {
    color: #b57f50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contacto-info-col a:hover {
    color: #8b5e3c;
    text-decoration: underline;
}

.contacto-info {
    margin-top: 0.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.08rem;
    color: #2C3E50;
    background: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.contacto-item:last-child {
    border-bottom: none;
}

.contacto-label {
    font-weight: 600;
    color: #b57f50;
    min-width: 90px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
    font-size: 1.05rem;
}

.contacto-item a {
    color: #2C3E50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-word; /* Permite romper palabras largas como emails */
    overflow-wrap: break-word;
    text-align: left;
}

.contacto-item a:hover {
    color: #b57f50;
    text-decoration: underline;
}

.contacto-item span:not(.contacto-label) {
    color: #555;
}

/* Update the left column (now contact form) */
.contacto-form-col {
    flex: 2 1 450px;
    background-color: #ffffff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Contact form styling */
.contacto-form-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.contacto-form-header p {
    font-size: 1.1rem;
    color: #2C3E50;
}

.contacto-form-header a {
    color: #b57f50;
    font-weight: 600;
    text-decoration: none;
}

.contacto-form-header a:hover {
    text-decoration: underline;
}

.contacto-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.form-group {
    width: 100%;
}

.form-group.half {
    width: calc(50% - 0.5rem);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #b57f50;
    box-shadow: 0 0 0 3px rgba(181, 127, 80, 0.15);
    outline: none;
    background-color: #fff;
}

.form-control::placeholder {
    color: #888;
}

.form-control.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-control.error::placeholder {
    color: #e74c3c;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-4-4h8l-4 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #b57f50;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-form:hover {
    background-color: #8b5e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-form .icon {
    display: inline-flex;
}

.btn-form .icon svg {
    fill: currentColor;
}

.privacy-clause {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.privacy-clause p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    text-align: left;
}

.privacy-clause a {
    color: #2C3E50;
    text-decoration: underline;
}

.phone-reveal-btn {
    background: transparent;
    color: #2C3E50;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    text-decoration: none;
    border-radius: 3px;
}

.phone-reveal-btn:hover {
    color: #b57f50;
    background: rgba(181, 127, 80, 0.08);
    padding: 0.2rem 0.4rem;
    margin: -0.2rem -0.4rem;
    text-decoration: none;
}

.phone-reveal-btn .phone-hidden {
    display: flex;
    align-items: center;
}

.phone-reveal-btn .phone-number {
    display: flex;
    align-items: center;
}

.phone-reveal-btn .phone-number a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.phone-reveal-btn .phone-number a:hover {
    text-decoration: underline;
}

.phone-revealed {
    color: #2C3E50 !important;
    background: transparent !important;
    cursor: default;
    padding: 0 !important;
    margin: 0 !important;
}

.phone-revealed:hover {
    transform: none;
    color: #2C3E50 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.phone-revealed .phone-number a:hover {
    color: #b57f50;
    text-decoration: underline;
}

/* Eliminar la animación */
@keyframes phoneRevealed {
    /* Vacía para mantener compatibilidad */
}

@media (max-width: 900px) {
    .contacto-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .contacto-form-col{
        min-height: unset;
        margin-top: 0;
        padding: 0.5rem;
        padding-top: 0.5rem;
    }
    .privacy-clause {
        text-align: left;
    }
    .contacto-info-col {
        min-height: unset;
        margin-top: 2rem;
        padding: 0 0.5rem;
        padding-top: 0.5rem;
    }
}