/* Estilos base del widget Amaya Contact Section */
.amaya-contact-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    font-family: ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
}

.amaya-contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none; /* Evitar que los fondos decorativos bloqueen el texto */
}

.radial-gradient-overlay {
    background: radial-gradient(
        circle at 30% 50%,
        rgba(var(--primary-color, 244, 63, 94), 0.2) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 70% 50%,
        rgba(var(--secondary-color, 251, 191, 36), 0.2) 0%,
        transparent 50%
    );
    opacity: 0.2;
}

.diagonal-lines {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(var(--primary-color, 244, 63, 94), 0.03) 0px,
        rgba(var(--primary-color, 244, 63, 94), 0.03) 1px,
        transparent 1px,
        transparent 60px
    ),
    repeating-linear-gradient(
        -45deg,
        rgba(var(--secondary-color, 251, 191, 36), 0.03) 0px,
        rgba(var(--secondary-color, 251, 191, 36), 0.03) 1px,
        transparent 1px,
        transparent 60px
    );
    opacity: 0.05;
}

.mesh-gradient {
    background-image:
        radial-gradient(at 40% 20%, rgba(var(--primary-color, 244, 63, 94), 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(var(--secondary-color, 251, 191, 36), 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(var(--primary-color, 244, 63, 94), 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(var(--secondary-color, 251, 191, 36), 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(var(--primary-color, 244, 63, 94), 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(var(--secondary-color, 251, 191, 36), 0.15) 0px, transparent 50%);
}

.amaya-contact-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header .divider {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header .divider-line {
    height: 1px;
    width: 4rem;
    background: linear-gradient(to right, transparent, rgb(var(--primary-color, 244, 63, 94)), transparent);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, white, rgb(253 164 175), white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: rgb(148 163 184);
    max-width: 48rem;
    margin: 0 auto;
    font-weight: 300;
}

/* NUEVO LAYOUT - Grid principal */
.contact-main-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-main-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 6rem;
    }
}

/* Columna izquierda - Información de contacto y redes sociales */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Columna derecha - Formulario */
.contact-form-column {
    position: relative;
}

.content-header {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.content-header .line {
    height: 1px;
    width: 4rem;
    background-color: rgb(var(--primary-color, 244, 63, 94));
}

.content-header span {
    color: rgb(251, 113, 133);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 300;
}

/* Estilos para la sección de información de contacto */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(var(--primary-color, 244, 63, 94), 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.3);
}

.contact-item:hover {
    border-color: rgba(var(--primary-color, 244, 63, 94), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(var(--primary-color, 244, 63, 94), 0.1);
    border-radius: 0.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(var(--primary-color, 244, 63, 94), 0.2);
}

.contact-icon svg {
    color: rgb(251, 113, 133);
}

.contact-text h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: rgb(203, 213, 225);
    margin: 0;
    line-height: 1.6;
    white-space: pre-line;
}

/* Estilos para redes sociales */
.social-section {
    margin-top: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(var(--primary-color, 244, 63, 94), 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.3);
}

.social-link:hover {
    border-color: rgba(var(--primary-color, 244, 63, 94), 0.6);
    background: rgba(var(--primary-color, 244, 63, 94), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color, 244, 63, 94), 0.2);
}

.social-link svg {
    color: rgb(251, 113, 133);
    width: 20px;
    height: 20px;
}

/* Estilos para el formulario */
.contact-form-section {
    position: relative;
    height: 100%;
}

.contact-form {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(var(--primary-color, 244, 63, 94), 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.form-group label {
    color: rgb(203, 213, 225);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(var(--primary-color, 244, 63, 94));
    box-shadow: 0 0 0 3px rgba(var(--primary-color, 244, 63, 94), 0.1);
    background: rgba(30, 41, 59, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgb(100, 116, 139);
}

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

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgb(var(--primary-color, 244, 63, 94)), rgb(var(--secondary-color, 251, 191, 36)));
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--primary-color, 244, 63, 94), 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: rgb(74, 222, 128);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: rgb(248, 113, 113);
}

/* Mejoras de responsive */
@media (max-width: 768px) {
    .amaya-contact-section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1.125rem;
    }
    
    .contact-main-grid {
        gap: 3rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-column {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
}

/* Animaciones */
@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 1.2s ease-out;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 1.2s ease-out 0.4s both;
}