/* Servigest Torrevieja · hoja de estilos única (sin dependencias externas ni fuentes remotas) */
:root{--wp--preset--color--rojo:#C8001A;--wp--preset--color--marino:#102030;--wp--preset--color--pizarra:#415E70;--wp--preset--color--niebla:#F2F5F7;--wp--preset--color--arena:#FBF7F3;--wp--preset--color--blanco:#fff;
--wp--preset--font-size--medio:clamp(1.15rem,1.05rem + .5vw,1.4rem);--wp--preset--font-size--grande:clamp(1.6rem,1.3rem + 1.4vw,2.3rem);--wp--preset--font-size--xl:clamp(2rem,1.4rem + 3vw,3.6rem)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size:1.05rem;line-height:1.7;color:#415E70;background:#fff}
h1,h2,h3,h4{font-family:'Avenir Next','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;color:#102030;font-weight:700;line-height:1.2;margin:0 0 .8rem}
h1,h2{font-size:var(--wp--preset--font-size--grande)} h3{font-size:var(--wp--preset--font-size--medio)}
p{margin:0 0 1.1rem} a{color:#C8001A} figure{margin:0}
.has-text-align-center{text-align:center}.has-white-color{color:#fff!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-999px;top:0;background:#102030;color:#fff;padding:.7rem 1rem;z-index:100;border-radius:0 0 8px 0}.skip-link:focus{left:0}

/* layout de bloques (equivalente al de WordPress) */
.wp-block-group.sg-section>*,.wp-block-group.sg-page>*,.sg-legal>*{max-width:1180px;margin-left:auto;margin-right:auto}
.wp-block-group.sg-section>p,.wp-block-group.sg-page>p,.sg-legal>p,.sg-legal>ul{max-width:820px}
.wp-block-group.sg-cta>*{max-width:820px;margin-left:auto;margin-right:auto}
.wp-block-columns{display:flex;flex-wrap:nowrap;gap:2em;margin-bottom:1.5em}
.wp-block-column{flex:1 1 0;min-width:0}
.are-vertically-aligned-center{align-items:center}.are-vertically-aligned-top{align-items:flex-start}.are-vertically-aligned-stretch{align-items:stretch}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.2rem 0}
.wp-block-buttons.jc-center,.sg-cta .wp-block-buttons{justify-content:center}
.wp-element-button,.wp-block-button__link,.sg-btn{background:#C8001A;color:#fff;border-radius:999px;padding:.8rem 1.6rem;text-decoration:none;font:inherit;font-weight:600;display:inline-block;border:2px solid #C8001A;cursor:pointer;min-height:46px;transition:background .2s,color .2s}
.wp-block-button__link:hover,.sg-btn:hover{background:#102030;border-color:#102030;color:#fff}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:#C8001A}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:#C8001A;color:#fff}
.wp-block-gallery{display:flex;flex-wrap:wrap;gap:.8rem;margin:0}
.wp-block-gallery .wp-block-image{margin:0}
.wp-block-gallery.columns-2 .wp-block-image{width:calc(50% - .4rem)}
.wp-block-gallery.columns-3 .wp-block-image{width:calc(33.333% - .55rem)}
.wp-block-gallery img{width:100%;height:100%;object-fit:cover;aspect-ratio:436/303}
img{max-width:100%;height:auto}.wp-block-image img{display:block;border-radius:14px}.wp-block-image{margin:0 0 1rem}
.wp-block-cover{position:relative;display:flex;align-items:center;justify-content:flex-start;overflow:hidden}
.wp-block-cover__image-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0!important}
.wp-block-cover__background{position:absolute;inset:0;background:#102030;opacity:.6}
.wp-block-cover__inner-container{position:relative;z-index:1;color:#fff;width:100%}
.wp-block-list{padding-left:1.2rem}
.wp-block-details summary{cursor:pointer}
@media(max-width:781px){.wp-block-columns{flex-direction:column;gap:1.2rem}.wp-block-column{flex-basis:auto!important;width:100%}.wp-block-gallery.columns-3 .wp-block-image{width:100%}.wp-block-gallery.columns-2 .wp-block-image{width:calc(50% - .4rem)}}

/* ---------- Cabecera ---------- */
.sg-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid #e3e9ee}
.sg-header__bar{display:flex;align-items:center;gap:1.2rem;max-width:1180px;margin:0 auto;padding:.6rem 1.1rem}
.sg-brand{display:block;line-height:0;flex:0 0 auto}
.sg-brand img{height:clamp(46px,7vw,62px);width:auto;display:block}
.sg-nav{flex:1 1 auto}
.sg-nav ul{display:flex;gap:1.2rem;list-style:none;margin:0;padding:0;justify-content:flex-end;flex-wrap:nowrap}
.sg-nav a{color:#102030;text-decoration:none;font-weight:600;font-size:.95rem;padding:.4rem .1rem;border-bottom:2px solid transparent;white-space:nowrap;transition:border-color .2s,color .2s}
.sg-nav a:hover,.sg-nav a[aria-current=page]{color:#C8001A;border-bottom-color:#C8001A}
.sg-topbar{background:#102030;color:#fff;font-size:.9rem}
.sg-topbar__in{max-width:1180px;margin:0 auto;padding:.3rem 1.1rem;display:flex;justify-content:flex-end;align-items:center;gap:1.2rem}
.sg-topbar__tel{color:#fff;font-weight:700;text-decoration:none;white-space:nowrap}
.sg-topbar__tel::before{content:"☎ "}
.sg-lang{display:flex;gap:.35rem}.sg-lang img{display:block;border-radius:3px}
.nav-toggle{display:none;margin-left:auto;background:#fff;border:2px solid #102030;border-radius:10px;width:46px;height:46px;cursor:pointer;padding:0;position:relative}
.nav-toggle__bars,.nav-toggle__bars::before,.nav-toggle__bars::after{position:absolute;left:11px;right:11px;height:2px;background:#102030;content:"";transition:transform .2s,opacity .2s}
.nav-toggle__bars{top:20px}.nav-toggle__bars::before{top:-7px;left:0;right:0}.nav-toggle__bars::after{top:7px;left:0;right:0}
.nav-open .nav-toggle__bars{background:transparent}.nav-open .nav-toggle__bars::before{transform:translateY(7px) rotate(45deg)}.nav-open .nav-toggle__bars::after{transform:translateY(-7px) rotate(-45deg)}
@media(max-width:1180px){
 .sg-header__bar{flex-wrap:wrap}
 .js .nav-toggle{display:block}
 .js .sg-nav{display:none;order:5;flex:1 0 100%}
 .js.nav-open .sg-nav{display:block}
 .sg-nav ul{flex-direction:column;gap:0;align-items:stretch;flex-wrap:wrap}
 .sg-nav a{display:block;padding:.85rem .2rem;border-bottom:1px solid #e6edf1;font-size:1.05rem}
 .sg-nav{flex:1 0 100%}
}
@media(max-width:560px){.sg-topbar__in{justify-content:space-between}}
.sg-main{min-height:55vh}
html{scroll-behavior:smooth}body{overflow-x:hidden}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- Formulario ---------- */
.sg-form{max-width:100%}
.sg-form p{margin:0 0 1rem}
.sg-form label,.sg-form legend{font-weight:600;color:#102030;display:block;margin-bottom:.3rem}
.sg-form input[type=text],.sg-form input[type=email],.sg-form input[type=tel],.sg-form input[type=number],.sg-form select,.sg-form textarea{width:100%;padding:.75rem .9rem;border:1.5px solid #c9d5dd;border-radius:10px;font:inherit;background:#fff;color:#102030;min-height:46px}
.sg-form input:focus,.sg-form select:focus,.sg-form textarea:focus{border-color:#C8001A;outline:none;box-shadow:0 0 0 3px rgba(200,0,26,.15)}
.sg-form [aria-invalid=true]{border-color:#C8001A}
.sg-form h3{margin:1.8rem 0 .8rem;padding-bottom:.4rem;border-bottom:2px solid #C8001A;font-size:1.1rem;text-transform:uppercase}
.sg-form__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0 1rem}
.sg-form__radio{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem 1.4rem;margin:0 0 .5rem}
.sg-form__lbl{flex:1 1 240px;font-weight:600;color:#102030}
@media(max-width:560px){.sg-form__lbl{flex-basis:100%}}
.sg-form__radio label{display:inline-flex;align-items:center;gap:.4rem;font-weight:400;margin:0;min-height:44px}
.sg-form input[type=radio],.sg-form input[type=checkbox]{width:20px;height:20px;accent-color:#C8001A}
.sg-form__check label{font-weight:400;display:flex;gap:.6rem;align-items:flex-start}
.sg-form__req{font-size:.9rem}
.field-error{display:block;color:#C8001A;font-size:.9rem;margin-top:.25rem}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sg-alert{padding:1rem 1.2rem;border-radius:12px;margin-bottom:1.2rem;border:1.5px solid}
.sg-alert--ok{background:#eef8f1;border-color:#2e8b57;color:#14532d}
.sg-alert--error{background:#fdecee;border-color:#C8001A;color:#7a0010}

/* ---------- Mapas (se cargan al pulsar) ---------- */
.sg-map{border-radius:14px;overflow:hidden;box-shadow:0 8px 30px rgba(16,32,48,.10);background:#F2F5F7}
.sg-map iframe{display:block;width:100%;height:clamp(280px,45vw,420px);border:0}
.sg-map__ph{min-height:clamp(240px,40vw,380px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1.5rem}
.sg-map__note{font-size:.85rem;max-width:44ch;margin:.8rem 0 .4rem}
.sg-footer__inner{max-width:1180px;margin:0 auto}


/* ---------- Base ---------- */
:root{--sg-rojo:#C8001A;--sg-marino:#102030;--sg-pizarra:#415E70;--sg-niebla:#F2F5F7;--sg-arena:#FBF7F3;--sg-radius:14px;--sg-shadow:0 8px 30px rgba(16,32,48,.10)}
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto}
a{text-underline-offset:.2em}
:focus-visible{outline:3px solid var(--sg-rojo);outline-offset:3px;border-radius:4px}
.wp-site-blocks>*+*{margin-block-start:0}
.sg-main{min-height:55vh}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- Hero ---------- */
.sg-hero.wp-block-cover{min-height:clamp(420px,62vh,620px);padding:clamp(2rem,6vw,5rem) 1.25rem}
.sg-hero .wp-block-cover__inner-container{max-width:1180px;width:100%}
.sg-hero h1{color:#fff;max-width:18ch;font-size:var(--wp--preset--font-size--xl);text-shadow:0 2px 18px rgba(0,0,0,.35)}
.sg-hero p{color:#fff;max-width:46ch;font-size:var(--wp--preset--font-size--medio)}
.sg-hero p.sg-eyebrow{font-size:.85rem;max-width:none}
.sg-hero .wp-block-button__link{padding:.9rem 1.6rem}
.sg-hero .is-style-outline .wp-block-button__link{color:#fff;border:2px solid #fff;background:transparent}
.sg-hero .is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--sg-marino)}

/* ---------- Secciones y tarjetas ---------- */
.sg-section{padding:clamp(2.5rem,6vw,5rem) 1.25rem}
.sg-section--niebla{background:var(--sg-niebla)}
.sg-section--arena{background:var(--sg-arena)}
.sg-eyebrow{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--sg-rojo);margin:0 0 .5rem}
.sg-cards{gap:1.5rem}
.sg-card{background:#fff;border-radius:var(--sg-radius);box-shadow:var(--sg-shadow);padding:1.75rem;height:100%;border-top:4px solid var(--sg-rojo);transition:transform .25s,box-shadow .25s}
.sg-card:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(16,32,48,.16)}
.sg-card h3{margin-top:0;text-transform:uppercase;letter-spacing:.03em}
.sg-card a.sg-more{font-weight:700;text-decoration:none}
.sg-card a.sg-more::after{content:" →"}
.sg-tile{border-radius:var(--sg-radius);overflow:hidden;box-shadow:var(--sg-shadow);background:#fff;height:100%}
.sg-tile img{width:100%;display:block;border-radius:0;aspect-ratio:279/118;object-fit:cover}
.sg-tile h3{margin:0;padding:1rem 1.25rem;text-transform:uppercase;font-size:1.05rem;letter-spacing:.04em;text-align:center}
.sg-intro{text-align:center;max-width:62ch;margin-inline:auto}
.sg-divider{width:64px;height:4px;background:var(--sg-rojo);border:0;border-radius:4px;margin:1rem auto 2rem}

/* Acordeones (sustituyen a las pestañas antiguas) */
.sg-acc.wp-block-details{background:#fff;border:1px solid #dfe7ec;border-radius:var(--sg-radius);padding:1.1rem 1.4rem;margin-block:.9rem;box-shadow:0 2px 10px rgba(16,32,48,.05)}
.sg-acc summary{font-weight:700;color:var(--sg-marino);text-transform:uppercase;letter-spacing:.04em;cursor:pointer;list-style-position:inside}
.sg-acc[open]{border-color:var(--sg-rojo)}
.sg-acc .wp-block-columns{margin-top:1rem;align-items:center}

/* Listas de servicios */
.sg-check{list-style:none;padding:0;margin:0}
.sg-check li{position:relative;padding:.75rem 0 .75rem 2.1rem;border-bottom:1px solid #e6edf1}
.sg-check li::before{content:"";position:absolute;left:0;top:1.05rem;width:1.05rem;height:1.05rem;border-radius:50%;background:var(--sg-rojo);box-shadow:inset 0 0 0 4px #fff,0 0 0 2px var(--sg-rojo)}

/* Llamada a la acción */
.sg-cta{background:var(--sg-marino);color:#fff;border-radius:calc(var(--sg-radius)*1.4);padding:clamp(1.75rem,5vw,3.25rem);text-align:center}
.sg-cta h2,.sg-cta p{color:#fff}
.sg-cta .is-style-outline .wp-block-button__link{color:#fff;border:2px solid #fff;background:transparent}
.sg-cta .is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--sg-marino)}

/* Páginas interiores */
.sg-page{padding:clamp(2rem,5vw,4rem) 1.25rem}
.sg-page h1{text-align:center}
.sg-map iframe{width:100%;height:clamp(280px,45vw,420px);border:0;border-radius:var(--sg-radius);box-shadow:var(--sg-shadow)}
.wp-block-gallery img{border-radius:var(--sg-radius)}

/* Formulario (Contact Form 7) */
.wpcf7-form p{margin:0 0 1rem}
.wpcf7-form label{font-weight:600;color:var(--sg-marino)}
.wpcf7-form input[type=text],.wpcf7-form input[type=email],.wpcf7-form input[type=tel],.wpcf7-form input[type=number],.wpcf7-form select,.wpcf7-form textarea{width:100%;max-width:100%;box-sizing:border-box;padding:.75rem .9rem;border:1.5px solid #c9d5dd;border-radius:10px;font:inherit;background:#fff;color:var(--sg-marino);min-height:46px}
.wpcf7-form input:focus,.wpcf7-form select:focus,.wpcf7-form textarea:focus{border-color:var(--sg-rojo);outline:none;box-shadow:0 0 0 3px rgba(200,0,26,.15)}
.wpcf7-form h3{margin:1.8rem 0 .8rem;padding-bottom:.4rem;border-bottom:2px solid var(--sg-rojo);font-size:1.1rem;text-transform:uppercase}
.wpcf7-form input[type=submit]{background:var(--sg-rojo);color:#fff;border:0;border-radius:999px;padding:.95rem 2.2rem;font:inherit;font-weight:700;cursor:pointer;min-height:48px}
.wpcf7-form input[type=submit]:hover{background:var(--sg-marino)}
.wpcf7-not-valid-tip{color:var(--sg-rojo);font-size:.9rem}
.wpcf7 form .wpcf7-response-output{border-radius:10px;padding:.8rem 1rem}

/* ---------- Pie ---------- */
.sg-footer{background:var(--sg-marino);color:#cfd9e0;padding:clamp(2.5rem,5vw,4rem) 1.25rem 1.5rem}
.sg-footer a{color:#fff}
.sg-footer h2{color:#fff;font-size:1rem;text-transform:uppercase;letter-spacing:.12em;margin-bottom:1rem}
.sg-footer ul{list-style:none;padding:0;margin:0}
.sg-footer li{margin:.4rem 0}
.sg-footer__brand img{background:#fff;border-radius:10px;padding:.5rem .8rem;width:200px;height:auto}
.sg-footer__legal{border-top:1px solid rgba(255,255,255,.15);margin-top:2.2rem;padding-top:1.2rem;font-size:.88rem}
