:root {
    --xo-purple:#6517b8;
    --xo-purple-dark:#3d126f;
    --xo-lime:#c8ef32;
    --xo-ink:#241735;
    --xo-muted:#6e6379;
    --xo-line:#e6d9f2;
    --xo-page:#faf8ff;
}

/* FIX HEADER OVERLAP & THEME CONTAINERS */
body.page-template-xo-contacto .site-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    background-color: #ffffff !important;
    z-index: 100 !important;
}

body.page-template-xo-contacto #content,
body.page-template-xo-contacto .site-content,
body.page-template-xo-contacto .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    clear: both !important;
}

body.page-template-xo-contacto .site-header .ast-builder-grid-row-container,
body.page-template-xo-contacto .site-header .ast-builder-grid-row {
    width: 100%;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.xo-contacto-pagina {
    background:#fff;
    color:var(--xo-ink);
    font-family:inherit;
    overflow:hidden;
    padding-top:0 !important;
    margin-top:0 !important;
    display:block !important;
}
.xo-contacto-pagina * {
    box-sizing:border-box;
}
.xo-contacto-pagina a {
    text-decoration:none;
}

/* HERO */
.xo-contacto-pagina > .xo-contacto-hero {
    position:relative !important;
    width:100% !important;
    height:340px !important;
    min-height:340px !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    background:#d8c1f4 url("https://xoaccesorios.com/wp-content/uploads/2026/09/ChatGPT-Image-9-sept-2026-05_12_36-p.m.png") center center/cover no-repeat !important;
}
.xo-contacto-pagina > .xo-contacto-hero > .xo-contacto-hero-inner {
    width:min(1180px,100%) !important;
    height:340px !important;
    min-height:340px !important;
    max-height:none !important;
    margin:0 auto !important;
    padding:0 30px !important;
    display:flex !important;
    align-items:center !important;
    box-sizing:border-box !important;
}
.xo-contacto-pagina > .xo-contacto-hero .xo-contacto-hero-contenido {
    width:min(520px,100%) !important;
    position:relative !important;
    transform:none !important;
    margin:0 !important;
    z-index:2;
}
.xo-contacto-hero-contenido:before {
    content:"";
    position:absolute;
    inset:-24px -35px -24px -28px;
    background:rgba(232,214,250,.30);
    filter:blur(18px);
    border-radius:40px;
    z-index:-1;
}
.xo-contacto-hero h1 {
    margin:0 0 3px;
    color:#35116b;
    font-size:clamp(50px,6vw,76px);
    line-height:.98;
    font-weight:900;
    letter-spacing:-2px;
    text-shadow:3px 3px 0 rgba(255,255,255,.92);
}
.xo-contacto-hero h2 {
    margin:0 0 15px;
    color:#241735;
    font-size:clamp(24px,3vw,34px);
    line-height:1.15;
    font-weight:800;
    text-shadow:1px 2px 0 rgba(255,255,255,.75);
}
.xo-contacto-hero p {
    max-width:490px;
    margin:0;
    color:#241735;
    font-size:16px;
    line-height:1.6;
    text-shadow:0 1px 0 rgba(255,255,255,.85);
}

/* TARJETAS DE CONTACTO */
.xo-contacto-info {
    width:min(1180px,100%);
    margin:0 auto;
    padding:20px 30px 22px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}
.xo-contacto-card {
    min-height:205px;
    background:#fff;
    border:1px solid #e7e1ed;
    border-radius:18px;
    padding:22px 20px;
    box-shadow:0 7px 20px rgba(61,18,111,.06);
    display:flex;
    flex-direction:column;
    text-align:center;
    align-items:center;
}
.xo-contacto-icono {
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    border-radius:50%;
    background:var(--xo-purple);
    color:#fff;
    font-size:28px;
    margin-bottom:11px;
    box-shadow:0 7px 15px rgba(101,23,184,.18);
}
.xo-contacto-card:nth-child(1) .xo-contacto-icono,.xo-contacto-card:nth-child(3) .xo-contacto-icono {
    background:#28bf48;
}
.xo-contacto-card h2 {
    margin:0 0 6px;
    color:#171125;
    font-size:18px;
    line-height:1.25;
}
.xo-contacto-card p {
    margin:0 0 6px;
    font-size:14px;
    font-weight:600;
    line-height:1.45;
}
.xo-contacto-card small {
    color:var(--xo-muted);
    font-size:12px;
    line-height:1.4;
    margin-bottom:12px;
}
.xo-card-link {
    margin-top:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:40px;
    padding:9px 12px;
    border-radius:8px;
    background:#efe3fa;
    color:var(--xo-purple);
    font-weight:800;
    font-size:13px;
}
.xo-contacto-card:first-child .xo-card-link {
    background:#20bf47;
    color:#fff;
}
.xo-contacto-card:nth-child(3) .xo-card-link {
    background:#eaf9d7;
    color:#579100;
}
.xo-card-link span,.xo-contacto-faq a span {
    margin-left:5px;
}

/* FORMULARIO + MAPA + FAQ */
.xo-contacto-principal {
    width:min(1180px,100%);
    margin:0 auto;
    padding:12px 30px 48px;
    display:grid;
    grid-template-columns:1.08fr .92fr;
    gap:22px;
    align-items:stretch;
}
.xo-contacto-formulario,.xo-contacto-faq {
    background:#fff;
    border:1px solid #e7e1ed;
    border-radius:18px;
    padding:24px 26px;
    box-shadow:0 7px 22px rgba(61,18,111,.055);
}
.xo-contacto-formulario {
    min-height:100%;
}
.xo-contacto-etiqueta {
    display:inline-block;
    font-size:11px;
    font-weight:900;
    letter-spacing:1.4px;
    color:var(--xo-purple);
}
.xo-contacto-formulario h2,.xo-contacto-faq h2 {
    margin:6px 0 6px;
    color:#21133c;
    font-size:26px;
    line-height:1.15;
}
.xo-contacto-formulario>p {
    margin:0 0 17px;
    color:var(--xo-muted);
    font-size:14px;
    line-height:1.5;
}
.xo-contacto-formulario .wpforms-container {
    margin-top:12px;
}
.xo-contacto-lateral {
    display:flex;
    flex-direction:column;
    gap:16px;
    height:100%;
    min-height:100%;
    align-self:stretch;
}
.xo-contacto-mapa {
    height:278px;
    overflow:hidden;
    border-radius:18px;
    background:#eae2f2;
    border:1px solid #e7e1ed;
}
.xo-contacto-mapa iframe {
    width:100%;
    height:100%;
    display:block;
    border:0;
}
.xo-contacto-faq {
    margin:0;
    min-height:0;
    flex:1;
    height:auto;
}
.xo-contacto-faq h2 {
    margin-bottom:13px;
}
.xo-contacto-faq a {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:11px 12px;
    margin-top:6px;
    border:1px solid #ece5f2;
    border-radius:10px;
    color:#2e2440;
    background:#fff;
    font-size:13px;
    font-weight:650;
    line-height:1.35;
}
.xo-contacto-faq a:hover {
    border-color:#d7c0eb;
    background:#fbf8ff;
}

/* COMUNIDAD */
.xo-contacto-comunidad {
    width:min(1180px,calc(100% - 60px));
    margin:0 auto 48px;
    padding:28px 38px;
    border-radius:18px;
    background:#efffd5;
    color:var(--xo-ink);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    position:relative;
    overflow:hidden;
}
.xo-contacto-comunidad:after {
    content:"✦";
    position:absolute;
    right:22px;
    top:-25px;
    font-size:100px;
    color:rgba(101,23,184,.08);
}
.xo-contacto-comunidad .xo-contacto-etiqueta {
    color:var(--xo-purple);
}
.xo-contacto-comunidad h2 {
    margin:5px 0 7px;
    font-size:27px;
    line-height:1.15;
    color:#29143e;
}
.xo-contacto-comunidad p {
    margin:0;
    max-width:650px;
    line-height:1.55;
    color:#5f526b;
    font-size:14px;
}
.xo-contacto-redes {
    display:flex;
    gap:9px;
    flex-wrap:wrap;
    position:relative;
    z-index:2;
}
.xo-contacto-redes a {
    padding:10px 15px;
    border-radius:9px;
    background:var(--xo-purple);
    color:#fff;
    font-weight:800;
    font-size:13px;
}

/* RESPONSIVE */
@media(max-width:900px){
    .xo-contacto-pagina > .xo-contacto-hero {
        min-height:330px !important;
        background-position:61% center !important;
    }
    .xo-contacto-pagina > .xo-contacto-hero > .xo-contacto-hero-inner {
        min-height:330px !important;
        padding:34px 24px !important;
    }
    .xo-contacto-pagina > .xo-contacto-hero .xo-contacto-hero-contenido {
        width:58% !important;
    }
    .xo-contacto-hero h1 {
        font-size:clamp(44px,7vw,62px);
    }
    .xo-contacto-info {
        grid-template-columns:repeat(2,1fr);
        padding-left:24px;
        padding-right:24px;
    }
    .xo-contacto-principal {
        grid-template-columns:1fr;
        padding-left:24px;
        padding-right:24px;
    }
    .xo-contacto-comunidad {
        width:calc(100% - 48px);
        margin-left:24px;
        margin-right:24px;
    }
}

@media(max-width:560px){
    .xo-contacto-pagina > .xo-contacto-hero {
        height:390px !important;
        min-height:390px !important;
        background-position:68% center !important;
    }
    .xo-contacto-hero:after {
        content:"";
        position:absolute;
        inset:0;
        background:linear-gradient(90deg,rgba(232,214,250,.92) 0%,rgba(232,214,250,.72) 48%,rgba(232,214,250,.08) 82%);
        pointer-events:none;
    }
    .xo-contacto-pagina > .xo-contacto-hero > .xo-contacto-hero-inner {
        position:relative;
        z-index:1;
        height:390px !important;
        min-height:390px !important;
        padding:0 20px !important;
    }
    .xo-contacto-pagina > .xo-contacto-hero .xo-contacto-hero-contenido {
        width:100% !important;
    }
    .xo-contacto-hero-contenido:before {
        display:none;
    }
    .xo-contacto-hero h1 {
        font-size:46px;
        letter-spacing:-1.5px;
    }
    .xo-contacto-hero h2 {
        font-size:23px;
    }
    .xo-contacto-hero p {
        font-size:14px;
        line-height:1.55;
    }
    .xo-contacto-info {
        grid-template-columns:1fr;
        padding:20px 20px 10px;
    }
    .xo-contacto-card {
        min-height:0;
        padding:20px;
    }
    .xo-contacto-principal {
        padding:12px 20px 38px;
        gap:16px;
    }
    .xo-contacto-formulario,.xo-contacto-faq {
        padding:21px;
    }
    .xo-contacto-formulario h2,.xo-contacto-faq h2 {
        font-size:24px;
    }
    .xo-contacto-mapa {
        height:255px;
    }
    .xo-contacto-comunidad {
        width:calc(100% - 40px);
        margin:0 20px 38px;
        padding:26px 22px;
        display:block;
    }
    .xo-contacto-comunidad h2 {
        font-size:25px;
    }
    .xo-contacto-redes {
        margin-top:18px;
    }
}