/* =========================================================
   WONDERWORLD · CONTACTO
   Estilo alineado al home (index) y compatible con Bootstrap
   ========================================================= */

/* RESET BÁSICO */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* ================= TIPOGRAFÍA Y BASE ================= */

body.ww-body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #1e2445;
}

/* ================= HEADER + NAVBAR ================= */

.ww-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Nav principal */
.ww-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-block: 0.4rem;
}

/* Marca / logo */

.ww-brand {
    text-decoration: none;
}

.ww-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: #0b2147;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0f2ff;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.4);
}

.ww-logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.ww-logo-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ww-logo-text span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Toggler personalizado (hamburguesa) */

.ww-navbar-toggler {
    border-color: rgba(15, 23, 42, 0.25);
    padding: 0.2rem 0.45rem;
}

.ww-navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(11, 99, 214, 0.32);
}

.ww-navbar-toggler-icon {
    background-image: none;
    width: 1.3rem;
    height: 1.3rem;
    position: relative;
}

.ww-navbar-toggler-icon::before,
.ww-navbar-toggler-icon::after,
.ww-navbar-toggler-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background-color: #0b2147;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.ww-navbar-toggler-icon::before {
    top: 0;
}

.ww-navbar-toggler-icon::after {
    bottom: 0;
}

.ww-navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

/* Nav-links dentro del navbar */

.ww-navbar .nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222842;
    padding-inline: 0.4rem;
    padding-block: 0.2rem;
    margin-inline: 0.2rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ww-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #0b2147;
    transition: width 0.25s ease-out;
}

.ww-navbar .nav-link:hover {
    color: #0b2147;
    transform: translateY(-1px);
}

.ww-navbar .nav-link.active {
    color: #0b2147;
    font-weight: 600;
}

.ww-navbar .nav-link.active::after {
    width: 100%;
}

/* CTA catálogo en navbar */
.ww-nav-cta {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #0b63d6;
    color: #e6f2ff !important;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.3rem;
    box-shadow: 0 10px 20px rgba(11, 99, 214, 0.4);
}

.ww-nav-cta::after {
    display: none;
}

.ww-nav-cta:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ================= LAYOUT GENERAL MAIN ================= */

.contact-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(79,209,255,0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(11,99,214,0.12), transparent 55%),
        #ffffff;
    display: flex;
    flex-direction: column;
}

/* ================= HERO CONTACTO ================= */

.contact-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.2rem 1.5rem 2.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.8rem;
    align-items: center;
}

/* Tag/píldora arriba del título */

.contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    background: rgba(11,33,71,0.92);
    color: #e0f2ff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    animation: contact-fade-down 700ms ease-out both;
}

.contact-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4fd1ff;
}

.contact-hero-left {
    animation: contact-fade-left 800ms ease-out both;
}

.contact-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2.1rem, 3.3vw + 1rem, 3.1rem);
    line-height: 1.05;
    color: #0b2147;
}

.contact-subtitle {
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
    color: #404a67;
    max-width: 32rem;
}

/* Meta info (tel, whatsapp, correo) */

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contact-meta-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    font-size: 0.9rem;
    color: #2c3554;
}

.contact-meta-label {
    font-weight: 600;
    color: #0b2147;
}

.contact-meta-item a {
    color: #0b63d6;
    text-decoration: none;
    font-weight: 500;
}

.contact-meta-item a:hover {
    text-decoration: underline;
}

.contact-meta-separator {
    opacity: 0.7;
}

/* Lado derecho hero (badge) */

.contact-hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: contact-fade-right 850ms ease-out both;
}

.contact-hero-badge {
    padding: 1.4rem 1.6rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #0b63d6 0%, #1d9bf0 45%, #4fd1ff 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.32);
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-hero-badge-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-hero-badge-subtitle {
    font-size: 0.88rem;
    opacity: 0.95;
}

/* ================= LAYOUT FORM + INFO ================= */

.contact-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2rem;
}

/* Tarjeta de formulario */

.contact-card {
    position: relative;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(15,23,42,0.08);
    padding: 1.8rem 1.8rem 1.9rem;
    border: 1px solid rgba(11,99,214,0.12);
    overflow: hidden;
    animation: contact-card-in 650ms ease-out forwards;
    opacity: 0;
    transform: translateY(16px);
}

.contact-card::before {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at center, rgba(79,209,255,0.25) 0, transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.contact-card-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #0b2147;
}

.contact-card-header p {
    margin: 0 0 1.4rem;
    font-size: 0.9rem;
    color: #404a67;
}

/* Alertas */

.contact-alert {
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

.contact-alert-error {
    background: #fff1f1;
    border: 1px solid #fda4a4;
    color: #b91c1c;
}

.contact-alert-ok {
    background: #ecfdf3;
    border: 1px solid #6ee7b7;
    color: #166534;
}

/* Formulario */

.contact-form {
    margin-top: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.4rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f2937;
}

.contact-label span {
    color: #ef4444;
    margin-left: 0.15rem;
}

.contact-input,
.contact-textarea {
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition:
        border-color 0.15s ease-out,
        box-shadow 0.15s ease-out,
        background-color 0.15s ease-out,
        transform 0.08s ease-out;
    background-color: #ffffff;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #9ca3af;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #0b63d6;
    box-shadow: 0 0 0 1px rgba(11,99,214,0.18), 0 8px 18px rgba(15,23,42,0.08);
    background-color: #f9fbff;
    transform: translateY(-1px);
}

.contact-textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-help {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Botón enviar */

.contact-footer {
    margin-top: 1.4rem;
    display: flex;
    justify-content: flex-end;
}

.contact-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.7rem;
    border-radius: 40px;
    border: none;
    background: #0b63d6;
    color: #e7f3ff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(11,99,214,0.55);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out,
        background 0.15s ease-out;
}

.contact-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(11,99,214,0.7);
    background: #0a56be;
}

/* Tarjeta lateral (info contacto) */

.contact-side-card {
    border-radius: 24px;
    background: radial-gradient(circle at top left, #e4f1ff 0, #ffffff 55%);
    padding: 1.8rem 1.7rem 1.9rem;
    box-shadow: 0 16px 30px rgba(15,23,42,0.07);
    border: 1px solid rgba(148,163,184,0.32);
    animation: contact-card-in 650ms ease-out 120ms forwards;
    opacity: 0;
    transform: translateY(16px);
}

.contact-side-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #0b2147;
}

.contact-side-card p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #404a67;
}

.contact-side-block {
    margin-top: 0.9rem;
}

.contact-side-block h4 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    color: #0b2147;
}

.contact-side-block p {
    margin: 0;
    font-size: 0.88rem;
    color: #374151;
}

.contact-side-card a {
    color: #0b63d6;
    text-decoration: none;
    font-weight: 500;
}

.contact-side-card a:hover {
    text-decoration: underline;
}

/* ================= FOOTER ================= */

.ww-footer {
    padding: 1.6rem 1.5rem 2.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: #7a8198;
}

/* ================= ANIMACIONES ================= */

@keyframes contact-fade-left {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contact-fade-right {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contact-fade-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contact-card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .ww-navbar {
        padding-block: 0.35rem;
    }

    .contact-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding: 2.8rem 1.3rem 2.2rem;
    }

    .contact-hero-left {
        order: 2;
    }

    .contact-hero-right {
        order: 1;
        justify-content: flex-start;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        padding-inline: 1.3rem;
    }
}

@media (max-width: 720px) {
    .contact-card,
    .contact-side-card {
        padding: 1.6rem 1.3rem 1.7rem;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-footer {
        justify-content: flex-start;
    }

    .contact-btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2rem;
    }

    .contact-hero {
        padding-inline: 1.1rem;
    }
}
