/* ============================================================
   Loggix · Contacto — estilos específicos
   ============================================================ */

/* ── Hero unificado (mismo estilo que blog) ───────────────── */
.page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 4rem;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 70%, rgba(21,101,192,0.2) 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.5;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--salmon, #ff5e4d) 50%, transparent 100%);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 94, 77, 0.4);
    border-radius: 100px;
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--salmon, #ff5e4d);
    margin-bottom: 0.5rem;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.hero-content h1 .highlight {
    color: var(--salmon, #ff5e4d);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0;
    line-height: 1.5;
}

/* ── Layout de contacto (colores azules originales) ───────── */
.contact-body {
    padding: 5rem 0 7rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.info-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    backdrop-filter: blur(8px);
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue, #3b82f6);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.info-block h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
}

.info-block a,
.info-block span {
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.info-block a:hover {
    color: var(--blue, #3b82f6);
}

.info-socials {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-pill:hover {
    border-color: var(--blue, #3b82f6);
    color: var(--blue, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.info-promise {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.info-promise i {
    color: var(--blue, #3b82f6);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ── Formulario de contacto (colores azules originales) ───── */
.contact-form-wrap {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue, #3b82f6), rgba(59, 130, 246, 0.5), transparent);
}

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

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
}

.req {
    color: var(--blue, #3b82f6);
    margin-left: 0.15rem;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-wrap > i {
    position: absolute;
    left: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    pointer-events: none;
    transition: color 0.2s;
}

.field-wrap--textarea {
    align-items: flex-start;
}

.field-wrap--textarea > i {
    top: 0.85rem;
}

.field-wrap input,
.field-wrap textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.75rem 0.9rem 0.75rem 2.4rem;
    outline: none;
    transition: all 0.2s;
    resize: none;
}

.field-wrap input::placeholder,
.field-wrap textarea::placeholder {
    color: rgba(248, 243, 232, 0.22);
}

.field-wrap input:focus,
.field-wrap textarea:focus {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-wrap:focus-within > i {
    color: var(--blue, #3b82f6);
}

.field-wrap input.is-valid {
    border-color: rgba(52, 199, 89, 0.4);
}

.field-wrap input.is-invalid {
    border-color: rgba(220, 60, 60, 0.4);
}

.char-counter {
    text-align: right;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

.char-counter span:first-child {
    color: #fff;
    font-weight: 600;
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue, #3b82f6);
    flex-shrink: 0;
    margin-top: 0.15rem;
    cursor: pointer;
}

.form-privacy label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    cursor: pointer;
}

.form-privacy a {
    color: var(--blue, #3b82f6);
    text-decoration: none;
}

.form-privacy a:hover {
    text-decoration: underline;
}

.form-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-alert--error {
    background: rgba(220, 60, 60, 0.1);
    border: 1px solid rgba(220, 60, 60, 0.25);
    color: #f87171;
    margin-bottom: 0.5rem;
}

.form-alert--ok {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.25);
    color: #4ade80;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-send {
    align-self: flex-start;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue, #3b82f6) 0%, #2563eb 100%);
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-send::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-send:hover::after {
    opacity: 1;
}

.form-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 3rem 2rem;
}

.success-checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.12);
    border: 2px solid rgba(52, 199, 89, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #4ade80;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success-state h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.form-success-state p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 340px;
}

/* ── Responsive Contacto ──────────────────────────────────── */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 45vh;
        padding: 100px 0 3rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrap {
        padding: 1.5rem;
    }
    
    .contact-body {
        padding: 3rem 0 5rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 80px 0 2.5rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .btn-send {
        align-self: stretch;
        justify-content: center;
    }
}