/* ======================================== */
/* contacto.css - AZENIS Contacto           */
/* v2.0 - Validación CSP + JS externo       */
/* ======================================== */

/* ======================================== */
/* RESET Y ESTRUCTURA FULL SCREEN          */
/* ======================================== */
html, body { 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    min-height: 100vh;
    background-color: #0A1F2E;
    font-family: var(--font-primary, 'Montserrat', 'Open Sans', sans-serif);
}

/* ======================================== */
/* VARIABLES AZUL CYAN                      */
/* ======================================== */
.contact-page {
    --cyan: #00E5FF;
    --cyan-dark: #00B4D8;
    --cyan-glow: rgba(0, 229, 255, 0.3);
    --navy: #0A1F2E;
    --white: #FFFFFF;
    --gray: #CBD5E1;
}

/* ======================================== */
/* CONTACTO PAGE - DISEÑO PREMIUM CYAN     */
/* ======================================== */
.contact-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* FONDO FIJO FULL SCREEN */
.contact-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://azenis.com.gt/assets/images/contacto/contacto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    filter: brightness(1.05);
    z-index: 0;
    pointer-events: none;
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem;
    flex: 1;
}

/* ======================================== */
/* ALERTAS ANIMADAS                         */
/* ======================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 500;
    animation: slideDown 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
    position: relative;
    z-index: 2;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10B981;
}

.alert-error {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.4);
    color: #DC2626;
}

.alert i {
    margin-right: 0.5rem;
}

/* ======================================== */
/* GRID PRINCIPAL                           */
/* ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ======================================== */
/* INFO LATERAL                             */
/* ======================================== */
.contact-info {
    background: rgba(10, 31, 46, 0.45);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(0, 229, 255, 0.25);
    position: sticky;
    top: 120px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--cyan), #00B4D8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.contact-info .lead {
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Tarjetas de info */
.info-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--cyan);
    transition: all 0.3s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    border-left-width: 4px;
}

.info-card:hover::before { opacity: 1; }

.info-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i { font-size: 0.9rem; color: var(--white); }

.info-card p {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 300;
}

.info-card .small {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Location card */
.location-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 1rem;
    border-left: 3px solid var(--cyan);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateX(5px);
    border-left-width: 4px;
}

.location-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-card h3 i { font-size: 0.9rem; color: var(--white); }

.location-card p {
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.location-card .contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.location-card .contact-row i {
    width: 20px;
    color: var(--white);
    font-size: 0.85rem;
}

.location-card .contact-row a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-card .contact-row a:hover { color: var(--cyan); }

/* WhatsApp */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    padding: 0.85rem 1.8rem;
    border-radius: 3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border: none;
    min-width: 180px;
    color: white;
}

.whatsapp-link i { font-size: 1.3rem; color: white; }
.whatsapp-link span { color: white; font-weight: 600; letter-spacing: 0.5px; }

.whatsapp-link:hover {
    background: linear-gradient(135deg, #20B859, #0E6B5E);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.email-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover { color: var(--cyan); text-decoration: underline; }

/* Trust badges */
.trust-badge {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge span {
    font-size: 0.65rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: default;
}

.trust-badge span i { font-size: 0.9rem; color: var(--white); }
.trust-badge span:hover { color: var(--cyan); }
.trust-badge span:hover i { color: var(--cyan); }

/* ======================================== */
/* FORMULARIO                               */
/* ======================================== */
.contact-form {
    background: rgba(10, 31, 46, 0.35);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(0, 229, 255, 0.25);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-info { animation: fadeInUp 0.8s ease 0.1s forwards; opacity: 0; }

.contact-form:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
}

.contact-form h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-form h3 span {
    background: linear-gradient(135deg, var(--cyan), #00B4D8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-subtitle {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.form-subtitle .required-note {
    color: #DC2626;
    font-size: 0.7rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filas del formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group { margin-bottom: 0; }
.form-group-full { margin-bottom: 2rem; }

/* Labels */
.form-group label,
.form-group-full label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group label i,
.form-group-full label i {
    font-size: 0.8rem;
    color: var(--cyan);
    opacity: 0.8;
}

.form-group label .required,
.form-group-full label .required {
    color: #DC2626;
    margin-left: 0.25rem;
    font-size: 1rem;
}

/* Inputs */
.form-group input,
.form-group select,
.form-group-full input,
.form-group-full select,
.form-group-full textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-primary, 'Montserrat', 'Open Sans', sans-serif);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group-full input:focus,
.form-group-full select:focus,
.form-group-full textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group-full textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Select */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
}

select option {
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem;
}

/* Teléfono */
.phone-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.phone-prefix {
    width: 70px;
    flex-shrink: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.phone-number { flex: 1; }

.form-group-full textarea {
    resize: vertical;
    min-height: 130px;
}

/* Input hints */
.input-hint {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.4rem;
    color: #6B7280;
    transition: color 0.3s ease;
}

.input-hint i { margin-right: 0.25rem; }

.sla-active { color: #10B981 !important; }
.sla-default { color: #6B7280 !important; }

/* ======================================== */
/* BOTÓN DE ENVÍO                           */
/* ======================================== */
.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--cyan), #0096c7);
    color: var(--white);
    border: none;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
    background: linear-gradient(135deg, #00B4D8, #0077b6);
}

.submit-btn:disabled,
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i { margin-right: 0.5rem; }

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* ======================================== */
/* VALIDACIÓN - ERRORES                     */
/* ======================================== */
.contacto-input-error {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

/* ======================================== */
/* RESPONSIVE                               */
/* ======================================== */
@media (max-width: 968px) {
    .contact-wrapper { padding: 60px 1rem 80px; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info { position: relative; top: 0; }
    .form-row { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
    .contact-form { padding: 1.75rem; }
    .phone-wrapper { flex-direction: column; }
    .phone-prefix { width: 100%; }
}

@media (max-width: 768px) {
    .contact-wrapper { padding: 20px 1rem 60px; }
    .contact-info h2 { font-size: 1.6rem; }
    .contact-info { padding: 1.5rem; }
    .contact-form { padding: 1.5rem; }
    .form-group input,
    .form-group select,
    .form-group-full textarea { padding: 0.85rem 1rem; font-size: 0.9rem; }
    .submit-btn { padding: 1rem; font-size: 0.8rem; }
    .contact-form h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .contact-wrapper { padding: 40px 0.75rem; }
    .contact-form { padding: 1.25rem; }
    .submit-btn { padding: 0.85rem; font-size: 0.75rem; }
    .form-row { gap: 1rem; margin-bottom: 1rem; }
    .whatsapp-link { padding: 0.6rem 1.2rem; min-width: 130px; gap: 0.5rem; }
}

/* ======================================== */
/* ACCESIBILIDAD                            */
/* ======================================== */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group-full textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.submit-btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

@media print {
    .contact-page::before { opacity: 0.1; }
    .submit-btn, .whatsapp-link { display: none !important; }
}