/* Contacto Page - Redesign */
body {
    background-color: #ffffff;
    color: var(--text-main);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.contact-header {
    margin-top: 6rem;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 500px;
}

/* Grid Principal */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Formulario */
.contact-form-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(216, 27, 27, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: flex-start;
    padding: 1rem 2.5rem;
}

/* Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    border-radius: 8px;
    color: var(--primary-color);
}

.info-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.info-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.info-content a:hover {
    color: var(--primary-dark);
}

/* Mapa */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.map-container iframe {
    display: block;
}

/* Redes Sociales */
.social-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-link--disabled {
    opacity: 0.4;
    cursor: default;
}

.social-link--disabled:hover {
    background: #f1f5f9;
    color: #64748b;
    transform: none;
}

/* Form feedback */
.form-message {
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 1rem;
    display: none;
}

.form-message--success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message--error {
    display: block;
    background: #fef2f2;
    color: var(--primary-dark);
    border: 1px solid #fecaca;
}

.form-group--checkbox {
    display: block;
}

.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    max-width: 100%;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form .btn-primary.btn-success {
    background: #16a34a;
    border-color: #16a34a;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .contact-header h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form .btn-primary {
        width: 100%;
    }
}
