/* Contact Page Specific Styles (restored from backup) */

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: #0f172a;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    /* widen to match main .container so content aligns with nav items */
    max-width: 1400px; /* was 1200px */
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h3 {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-text p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

.contact-form {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
}

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

.form-group label {
    display: block;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Igualar tamaño del título al .hero h1 del index (misma escala) */
.contact-title,
.contact-info h2 {
    font-size: clamp(1.4rem, 6.5vw, 3rem); /* same behavior kept */
    line-height: 1.05;
    margin: 0 0 0.5rem;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* Ajuste para teléfonos muy pequeños */
@media (max-width: 360px) {
    .contact-title,
    .contact-info h2 {
        font-size: 1.25rem;
    }

    /* asegurar paddings para que no haya overflow horizontal */
    .contact-section,
    .contact-wrapper,
    .contact-info {
        padding-inline: 0.9rem;
        box-sizing: border-box;
    }
}

/* Evitar overflow horizontal en móviles */
@media (max-width: 420px) {
    .contact-section,
    .contact-wrapper,
    .contact-info {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
        overflow: visible;
        word-wrap: break-word;
    }

    .hero > .container,
    .contact-section > .container,
    .contact-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Responsive - Contact specific */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .hero h1 { font-size: 3rem; letter-spacing: -1px; }
    .hero p,
    .hero .subtitle { font-size: 1.15rem; }
}

/* Forzar comportamiento del container en la página de contacto para evitar overflow
   -> Apply only on smaller screens so desktop keeps a narrower centered layout */
@media (max-width: 1024px) {
    .hero > .container,
    .contact-section > .container,
    .contact-wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
}

/* On larger screens restore a centered, narrower column so contact content stays closer to center */
@media (min-width: 1025px) {
    .hero > .container,
    .contact-section > .container {
        max-width: 1400px; /* align with updated wrapper */
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-sizing: border-box;
    }

    .contact-wrapper {
        /* keep the earlier grid behavior but allow it to span the site width */
        max-width: 1400px; /* was 1100px */
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
}

/* Forzar tamaño mínimo y centrado de columnas en escritorio */
@media (min-width: 1025px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        max-width: 1400px; /* was 1100px */
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
}