/* Estilos para la sección de contacto - Diseño moderno 2025 */

.contact {
    position: relative;
    padding: 120px 0;
    background-color: #0f0f0f;
    background-image: url('../img/Portfolio/brahma - BRAHMA X BRESH (2024)/Untitled.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.85);
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.98), rgba(15, 15, 15, 0.8) 40%, rgba(15, 15, 15, 0.5) 70%, rgba(15, 15, 15, 0.2) 90%, rgba(15, 15, 15, 0));
    z-index: 0;
    pointer-events: none;
}

/* Texto de fondo grande con scroll infinito */
.background-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18vw;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(255, 105, 180, 0.15));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    animation: scrollText 60s linear infinite;
    opacity: 0.7;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
    letter-spacing: -0.03em;
}

@keyframes scrollText {
    0% {
        transform: translateY(-50%) translateX(0%);
    }
    100% {
        transform: translateY(-50%) translateX(-33.33%);
    }
}

.contact .container {
    position: relative;
    z-index: 1;
}

/* Estructura del contenido */
.contact-content {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    margin-bottom: 80px;
}

/* Columna izquierda */
.contact-left {
    flex: 1;
    padding-right: 40px;
}

.contact-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.contact-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #8A2BE2, #FF69B4);
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Características */
.contact-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: #8A2BE2;
}

.feature-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Enlaces sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Form success message */
.form-success-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInUp 0.5s ease;
}

.form-success-message i {
    font-size: 1.1rem;
}

/* Form error message */
.form-error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInUp 0.5s ease;
}

.form-error-message i {
    font-size: 1.1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Columna derecha - Formulario */
.contact-right {
    flex: 1;
    background: transparent;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.4s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
border-color: rgba(255, 105, 180, 0.7);
box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.2);
outline: none;
border-radius: 12px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
color: rgba(255, 255, 255, 0.5);
transition: all 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
opacity: 0.3;
}

/* Añadir labels flotantes para todos los campos */
.form-group {
position: relative;
}

.form-group label {
position: absolute;
top: -10px;
left: 15px;
background-color: rgba(15, 15, 15, 0.8);
padding: 0 8px;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.7);
border-radius: 4px;
z-index: 1;
transition: all 0.3s ease;
}

.contact-form select {
position: relative;
background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
background-repeat: no-repeat;
background-position: right 15px center;
background-size: 20px;
padding-right: 45px;
color: rgba(255, 255, 255, 0.5);
}

.contact-form select:focus {
color: #fff;
}

.contact-form select option {
background-color: #1a1a1a;
color: #fff;
padding: 10px;
font-size: 1rem;
}

.contact-form select option:hover,
.contact-form select option:focus {
background: linear-gradient(135deg, #8A2BE2, #FF69B4);
}

.contact-form textarea {
min-height: 150px;
resize: vertical;
line-height: 1.6;
}

.submit-btn {
display: block;
width: 100%;
padding: 18px 40px;
background: linear-gradient(135deg, #8A2BE2, #FF69B4);
color: #fff;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.4s ease;
letter-spacing: 1px;
text-transform: uppercase;
position: relative;
overflow: hidden;
text-align: center;
}

.submit-btn span {
    display: inline-block;
    transform: translateX(0);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.submit-btn::before {
    content: '';
    position: absolute;
    left: 20%;
    top: 40%;
    height: 8px;
    width: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8A2BE2, #FF69B4);
    transition: all 0.3s ease;
    z-index: 1;
}

.submit-btn:hover::before {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 50px;
    background-color: #8A2BE2;
    transform: scale(1);
}

.submit-btn:hover span {
    transform: translateX(12px);
    opacity: 0;
}

.submit-btn::after {
    content: 'Enviar →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(50px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    color: #fff;
}

.submit-btn:hover::after {
    transform: translate(-50%, -50%) translateX(0);
    opacity: 1;
}

/* Tarjetas de información de contacto */
.contact-info-cards-left {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.contact-info-cards-left .contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: none;
}

.contact-info-cards-left .info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    border: none;
    box-shadow: none;
}

.contact-info-cards-left .info-icon {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #8A2BE2;
    transition: all 0.3s ease;
    position: relative;
}

.contact-info-cards-left .info-text {
    display: flex;
    flex-direction: column;
}

.contact-info-cards-left h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.contact-info-cards-left p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0;
    font-weight: 300;
}

.contact-info-cards-left .info-card:hover .info-icon {
    color: #FF69B4;
    transform: scale(1.1);
}

.contact-info-cards-left .info-card:hover h4 {
    background: linear-gradient(135deg, #8A2BE2, #FF69B4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info-cards-left .info-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .contact-info-cards-left {
        flex-direction: column;
        gap: 15px;
    }
}

.info-card {
    flex: 1;
    background: transparent;
    padding: 0;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    box-shadow: none;
}

.info-card .info-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    color: #FF69B4;
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.info-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-left {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .contact-info-cards {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .background-text {
        font-size: 30vw;
    }
}
