/*
Theme Name: Surexpres
Theme URI: https://surexpres.com
Author: Surexpres Alicante, S.L.
Description: Tema de bloques a medida para surexpres.com. Editable desde Apariencia > Editor.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: surexpres
*/

/* Cabecera */
.sx-header{background:#fff;border-bottom:3px solid var(--wp--preset--color--accent);padding-top:.75rem;padding-bottom:.75rem;position:sticky;top:0;z-index:50;box-shadow:0 2px 12px rgba(11,59,102,.08)}
.admin-bar .sx-header{top:32px}
@media (max-width:782px){.admin-bar .sx-header{top:46px}}
.sx-logo{margin:0}
.sx-logo img{max-height:56px;width:auto;display:block}
.sx-nav{font-weight:600;font-size:.98rem;gap:1.5rem}
.sx-nav a{color:var(--wp--preset--color--primary);text-decoration:none}
.sx-nav a:hover{color:var(--wp--preset--color--accent)}
.sx-nav .sx-nav-cta > a{background:var(--wp--preset--color--primary);color:#fff !important;padding:.5em 1em;border-radius:6px}
.sx-nav .sx-nav-cta > a:hover{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--dark) !important}

/* Contenido general */
.sx-main{margin-top:0}
.sx-main > *, .wp-block-post-content > .alignfull:first-child{margin-top:0}
.sx-section{padding-top:clamp(48px,7vw,88px);padding-bottom:clamp(48px,7vw,88px)}
.wp-block-post-content > .sx-section + .sx-section{margin-top:0}
.sx-lead{font-size:1.15rem;color:var(--wp--preset--color--muted)}
.has-text-color :is(h1,h2,h3,h4,.sx-lead){color:inherit}
.has-primary-background-color a:not(.wp-element-button){color:inherit}

/* Cabecera de página */
.sx-page-title{padding-top:clamp(36px,5vw,64px);padding-bottom:clamp(36px,5vw,64px);margin-top:0}
.sx-page-title :is(h1,.wp-block-post-title,.wp-block-query-title){color:#fff;margin:0}
.sx-page-title .wp-block-post-date{opacity:.85}

/* Hero */
.sx-hero{padding-top:clamp(48px,8vw,104px);padding-bottom:clamp(48px,8vw,104px);margin-top:0;background-image:linear-gradient(135deg,var(--wp--preset--color--primary) 0%,#06223d 100%)}
.sx-hero-cols{align-items:center;gap:3rem}
.sx-hero p{font-size:1.2rem;opacity:.92}
.sx-hero-img img{border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.3);width:100%;height:auto}
.sx-hero .is-style-outline .wp-block-button__link{color:#fff;border-color:#fff;background:transparent}

/* Tarjetas de servicio */
.sx-card{background:#fff;border:1px solid #e3e8ef;border-top:4px solid var(--wp--preset--color--accent);border-radius:10px;padding:1.75rem;height:100%;box-shadow:0 6px 20px rgba(11,59,102,.06);transition:transform .2s ease,box-shadow .2s ease}
.sx-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(11,59,102,.12)}
.sx-more a{font-weight:600;text-decoration:none}

/* Partners */
.sx-partner-logo img{max-height:90px;width:auto;object-fit:contain}
.sx-partners h3{font-size:1.05rem;color:var(--wp--preset--color--muted)}

/* Noticias */
.sx-news{gap:1.75rem}
.sx-news li{background:#fff;border:1px solid #e3e8ef;border-radius:10px;padding:1.25rem;list-style:none}
.sx-news .wp-block-latest-posts__featured-image img{border-radius:8px;aspect-ratio:16/9;object-fit:cover;width:100%;height:auto}
.sx-news .wp-block-latest-posts__post-title,.sx-news .wp-block-rss__item-title a{font-weight:700;font-size:1.1rem;text-decoration:none;color:var(--wp--preset--color--primary)}
.sx-news time{display:block;font-size:.85rem;color:var(--wp--preset--color--muted);margin:.35rem 0}
.wp-block-post-template .wp-block-post-featured-image img{border-radius:8px}
.wp-block-post-template .wp-block-post-title a{text-decoration:none}

/* Contacto */
.sx-contact-list{list-style:none;padding-left:0}
.sx-contact-list li{margin-bottom:1rem}
.sx-form-slot{border-radius:12px;padding:2rem;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.sx-form-slot .is-style-outline .wp-block-button__link{color:var(--wp--preset--color--primary);border-color:var(--wp--preset--color--primary)}
.sx-cta .is-style-outline .wp-block-button__link{color:#fff;border-color:#fff}

/* Equipo */
.sx-team-row{margin-bottom:2.5rem;gap:2rem}
.sx-team-photo img{aspect-ratio:1/1;object-fit:cover;width:100%;height:auto;border-radius:12px}
.sx-team-row .sx-name{margin-bottom:0;margin-top:.75rem;font-size:1.1rem}
.sx-team-row .sx-role{margin-top:.15rem;color:var(--wp--preset--color--muted);font-size:.95rem}

/* Legales */
.sx-legal h2{font-size:1.35rem;margin-top:2.5rem}
.sx-toc{border-radius:10px;padding:1.5rem 2rem}
.sx-toc h3{margin-top:0}

/* Pie */
.sx-footer{border-top:3px solid var(--wp--preset--color--accent);padding-top:56px;padding-bottom:24px;margin-top:0}
.sx-footer h4{font-size:1rem;text-transform:uppercase;letter-spacing:.05em}
.sx-plain{list-style:none;padding-left:0}
.sx-plain li{margin-bottom:.5rem}
.sx-plain a,.sx-copy a{text-decoration:none}
.sx-footer-bottom{border-top:1px solid #d9e0e8;margin-top:2rem;padding-top:1.25rem}
.sx-copy{font-size:.88rem;color:var(--wp--preset--color--muted);text-align:center}
