/* 
 * Contact Form Styles - Incormaderas
 * Diseño minimalista y moderno
 */

.contact-page {
    --contact-spacing: 2rem;
    --input-border: 1px solid #e2e8f0;
    --input-focus-border: 1px solid var(--color-accent);
    --input-radius: 8px;
    --input-padding: 1rem;
    --transition-speed: 0.3s;
}



.contact-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    padding: 220px 0 6rem 0; /* Punto medio equilibrado */
    position: relative;
    overflow: hidden;
    margin-top: 0;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 150px 0 4rem 0;
        min-height: 50vh;
    }
}

.contact-hero .watermark-text {
    position: absolute;
    top: 50%; /* Centrado vertical */
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado perfecto */
    opacity: 0.03; /* Más sutil */
    color: white;
    font-size: 8rem; /* Más pequeño para que no estorbe */
    font-weight: 900;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contact-hero .lead-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.35rem;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0 4rem 0;
    margin-top: 0;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-section {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.contact-info-section h2 {
    color: var(--color-wood);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--input-radius);
    border: var(--input-border);
    transition: all var(--transition-speed);
}

.contact-method:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--color-wood);
}

.contact-details p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.contact-details a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-details a:hover {
    color: var(--color-accent);
}

/* Formulario de Contacto */
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2 {
    color: var(--color-wood);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-description {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.form-group label {
    font-weight: 600;
    color: var(--color-wood);
    font-size: 0.95rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-control {
    padding: var(--input-padding);
    border: var(--input-border);
    border-radius: var(--input-radius);
    font-size: 1rem;
    transition: all var(--transition-speed);
    background: white;
}

.form-control:focus {
    outline: none;
    border: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.btn-submit {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--input-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

.btn-whatsapp-form {
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--input-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-whatsapp-form:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.form-message {
    padding: 1rem;
    border-radius: var(--input-radius);
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* Mapa */
.map-section {
    margin-top: 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-info {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.map-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-wood);
}

.map-info p {
    margin: 0;
    color: #64748b;
}

/* Horarios de Atención */
.business-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--input-radius);
    border: var(--input-border);
}

.business-hours h3 {
    margin: 0 0 1rem 0;
    color: var(--color-wood);
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    color: var(--color-wood);
    font-weight: 500;
}

.hours-list .time {
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-grid {
        padding: 2rem 0;
        gap: 2rem;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit,
    .btn-whatsapp-form {
        width: 100%;
        justify-content: center;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-method,
.contact-form-section,
.map-section {
    animation: fadeInUp 0.6s ease-out;
}

.contact-method:nth-child(2) { animation-delay: 0.1s; }
.contact-method:nth-child(3) { animation-delay: 0.2s; }
.contact-method:nth-child(4) { animation-delay: 0.3s; }
.contact-form-section { animation-delay: 0.4s; }
.map-section { animation-delay: 0.5s; }
