/* =========================================================
   CTNR · Centro Técnico Norte Reparaciones, S.L.
   Hoja de estilos común: portada + páginas legales
   ========================================================= */

:root{
--ctnr-blue:#1376AF;
--ctnr-blue-dark:#0F6797;
--ctnr-blue-light:#59B1D9;
--gris-fondo:#f7f9fc;
--gris-texto:#667085;
--borde:#d9e3f0;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}

body{
font-family:'Inter',sans-serif;
color:#1a1a1a;
line-height:1.6
}

.container{
width:90%;
max-width:1400px;
margin:auto
}

/* ---------- Barra superior ---------- */

.top-bar{
background:var(--ctnr-blue);
color:#fff;
padding:12px 0;
font-size:14px
}

.top-contact{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
flex-wrap:wrap;
text-align:center
}

.separator{opacity:.5}

/* ---------- Cabecera ---------- */

header{
background:#fff;
box-shadow:0 2px 10px rgba(0,0,0,.05)
}

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:25px 0
}

.logo-area{
display:flex;
align-items:center;
gap:25px;
text-decoration:none;
color:inherit
}

.logo{
height:75px
}

.company{
border-left:1px solid #ddd;
padding-left:25px
}

.company h1,
.company .company-name{
display:block;
font-size:30px;
line-height:1.25;
color:var(--ctnr-blue);
font-family:'Times New Roman',serif;
font-weight:700;
letter-spacing:-0.5px;
}

.company strong{
color:var(--ctnr-blue-light)
}

.nav-right{
display:flex;
align-items:center;
gap:35px
}

.menu{
display:flex;
gap:30px
}

.menu a{
text-decoration:none;
color:var(--ctnr-blue);
font-weight:600;
font-size:16px;
transition:.3s
}

.menu a:hover{
color:var(--ctnr-blue-light)
}

.phone-btn{
background:var(--ctnr-blue);
color:#fff;
padding:14px 24px;
border-radius:40px;
text-decoration:none;
font-weight:700;
transition:.3s;
}

.phone-btn:hover{
background:var(--ctnr-blue-dark);
}

/* ---------- Hero ---------- */

.hero{
height:750px;
background:url('/salon-daikin.jpg') center/cover no-repeat;
position:relative
}

.hero:before{
content:'';
position:absolute;
inset:0;
background:linear-gradient(
90deg,
rgba(19,118,175,.95) 0%,
rgba(45,150,200,.82) 35%,
rgba(89,177,217,.25) 65%,
rgba(89,177,217,0) 100%
);
}

.hero-content{
position:relative;
z-index:2;
height:100%;
display:flex;
align-items:center
}

.hero-text{
max-width:700px;
color:#fff
}

.badge{
display:inline-block;
background:var(--ctnr-blue-light);
padding:12px 24px;
font-weight:700;
margin-bottom:30px
}

.hero h2{
font-size:72px;
line-height:1.05;
margin-bottom:30px
}

.hero p{
font-size:26px;
margin-bottom:40px
}

.buttons{
display:flex;
gap:20px;
flex-wrap:wrap
}

.btn-primary,
.btn-secondary{
padding:24px 32px;
border-radius:40px;
text-decoration:none;
font-weight:700;
}

.btn-primary{
background:#fff;
color:var(--ctnr-blue);
}

.btn-secondary{
border:2px solid var(--ctnr-blue-light);
color:#fff;
}

.btn-secondary:hover{
background:var(--ctnr-blue-light);
}

/* ---------- Ventajas ---------- */

.features{
margin-top:-70px;
position:relative;
z-index:10;
padding-bottom:80px
}

.features-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
background:#fff;
border-radius:20px;
box-shadow:0 15px 40px rgba(0,0,0,.08)
}

.feature{
padding:35px;
text-align:center
}

.feature h3{
color:var(--ctnr-blue)
}

/* ---------- Servicios ---------- */

.services{
padding:90px 0
}

.section-title{
text-align:center;
margin-bottom:60px
}

.section-title h2{
font-size:48px;
color:var(--ctnr-blue)
}

.section-title p{
color:var(--gris-texto)
}

.services-grid{
display:grid;
grid-template-columns:repeat(5,1fr);
gap:40px
}

.service-card{
text-align:center;
padding:20px
}

.service-icon{
font-size:34px;
color:var(--ctnr-blue-light);
margin-bottom:15px
}

.service-card h3{
font-size:22px;
color:var(--ctnr-blue);
margin-bottom:10px
}

.service-card p{
color:var(--gris-texto)
}

/* ---------- Contacto y mapa ---------- */

.location{
padding:100px 0;
background:var(--gris-fondo)
}

.location-content{
display:grid;
grid-template-columns:420px 1fr;
gap:50px;
align-items:center
}

.location-info h2{
font-size:42px;
color:var(--ctnr-blue);
margin-bottom:20px
}

.location-map{
position:relative;
min-height:500px;
border-radius:20px;
overflow:hidden;
background:#e8f1f8
}

.location-map iframe{
display:block;
width:100%;
height:500px;
border:0;
border-radius:20px
}

/* Aviso que tapa el mapa hasta que se aceptan las cookies */
.map-placeholder{
position:absolute;
inset:0;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:16px;
padding:30px;
text-align:center;
color:#334155;
background:#e8f1f8
}

.map-placeholder p{
max-width:380px
}

.map-placeholder a{
color:var(--ctnr-blue);
font-weight:600
}

/* ---------- Pie ---------- */

footer{
background:var(--ctnr-blue);
color:#fff;
text-align:center;
padding:40px 20px
}

.legal-links{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:6px 22px;
margin-top:14px;
font-size:14px
}

.legal-links a{
color:#fff;
text-decoration:none;
opacity:.9
}

.legal-links a:hover{
opacity:1;
text-decoration:underline
}

/* ---------- Páginas legales ---------- */

.legal-hero{
background:linear-gradient(90deg,var(--ctnr-blue) 0%,var(--ctnr-blue-light) 100%);
color:#fff;
padding:60px 0
}

.legal-hero h2{
font-size:44px;
line-height:1.1
}

.legal-hero p{
margin-top:10px;
opacity:.9
}

.legal-content{
max-width:860px;
margin:auto;
padding:60px 5% 90px
}

.legal-content h3{
font-size:22px;
color:var(--ctnr-blue);
margin:42px 0 12px
}

.legal-content h4{
font-size:17px;
margin:26px 0 8px
}

.legal-content p,
.legal-content li{
color:#344054;
margin-bottom:12px
}

.legal-content ul{
padding-left:22px
}

.legal-content a{
color:var(--ctnr-blue)
}

.legal-data{
background:var(--gris-fondo);
border-left:4px solid var(--ctnr-blue);
border-radius:10px;
padding:22px 26px;
margin:20px 0
}

.legal-data p{
margin-bottom:4px
}

.legal-toc{
background:var(--gris-fondo);
border-radius:10px;
padding:20px 26px;
margin-bottom:10px
}

.legal-toc ol{
padding-left:20px;
columns:2;
column-gap:30px
}

.legal-toc li{
margin-bottom:4px
}

.legal-content table{
width:100%;
border-collapse:collapse;
margin:20px 0;
font-size:14px
}

.legal-content th,
.legal-content td{
border:1px solid var(--borde);
padding:10px 12px;
text-align:left;
vertical-align:top
}

.legal-content th{
background:var(--gris-fondo);
color:var(--ctnr-blue)
}

.pending{                      /* datos por completar */
background:#fff3cd;
padding:0 4px;
border-radius:3px
}

.back-link{
display:inline-block;
margin-top:40px;
font-weight:700;
text-decoration:none
}

/* ---------- Botón genérico (banner y mapa) ---------- */

.btn-cookie{
font:inherit;
font-weight:700;
font-size:14px;
padding:12px 22px;
border-radius:40px;
cursor:pointer;
border:2px solid var(--ctnr-blue);
transition:.3s
}

.btn-cookie.solid{
background:var(--ctnr-blue);
color:#fff
}

.btn-cookie.solid:hover{
background:var(--ctnr-blue-dark);
border-color:var(--ctnr-blue-dark)
}

.btn-cookie.ghost{
background:#fff;
color:var(--ctnr-blue)
}

.btn-cookie.ghost:hover{
background:var(--gris-fondo)
}

/* ---------- Banner de cookies ---------- */

.cookie-banner{
position:fixed;
left:20px;
right:20px;
bottom:20px;
z-index:1000;
max-width:980px;
margin:auto;
background:#fff;
border-radius:16px;
box-shadow:0 20px 50px rgba(0,0,0,.18);
padding:22px 26px;
display:flex;
align-items:center;
gap:24px
}

.cookie-banner[hidden]{
display:none
}

.cookie-banner p{
font-size:14px;
color:#344054
}

.cookie-banner a{
color:var(--ctnr-blue);
font-weight:600
}

.cookie-actions{
display:flex;
gap:10px;
flex-shrink:0
}

/* ---------- Móvil ---------- */

@media(max-width:991px){

.top-bar{
padding:15px 0;
}

.top-contact{
flex-direction:column;
gap:8px;
font-size:13px;
}

.navbar,
.logo-area,
.nav-right{
flex-direction:column;
text-align:center;
}

.logo{
height:60px;
}

.company{
border:none;
padding-left:0;
}

.company h1,
.company .company-name{
font-size:22px;
line-height:1.2;
}

.company p{
font-size:14px;
}

.nav-right{
width:100%;
margin-top:20px;
gap:20px;
}

.menu{
width:100%;
display:grid;
grid-template-columns:1fr 1fr;
gap:0;
border:1px solid var(--borde);
border-radius:10px;
overflow:hidden;
}

.menu a{
padding:14px;
background:var(--gris-fondo);
text-align:center;
}

.menu a:first-child{
border-right:1px solid var(--borde);
}

.phone-btn{
width:100%;
text-align:center;
}

/* Hero */

.hero{
height:auto;
padding:70px 0 60px 0;
background-position:78% center;
}

.hero-content{
align-items:center;
}

.hero-text{
max-width:100%;
text-align:left;
}

.badge{
font-size:11px;
padding:6px 12px;
margin-bottom:12px;
background:rgba(255,255,255,.15);
backdrop-filter:blur(4px);
border:1px solid rgba(255,255,255,.25);
border-radius:20px;
}

.hero h2{
font-size:42px;
line-height:1.02;
letter-spacing:-1px;
margin-bottom:18px;
max-width:320px;
}

.hero p{
font-size:18px;
line-height:1.35;
max-width:320px;
margin-bottom:28px;
}

.buttons{
display:flex;
justify-content:center;
align-items:center;
gap:12px;
flex-wrap:nowrap;
}

.btn-primary,
.btn-secondary{
padding:14px 18px;
font-size:13px;
white-space:nowrap;
}

.features-grid,
.services-grid,
.location-content{
grid-template-columns:1fr;
}

.features{
margin-top:-40px;
padding-bottom:40px;
}

.feature{
padding:20px;
}

.services{
padding:35px 0;
}

.section-title{
margin-bottom:20px;
}

.section-title h2{
font-size:32px;
margin-bottom:10px;
}

.section-title p{
font-size:15px;
line-height:1.4;
}

.services-grid{
gap:5px;
}

.service-card{
padding:10px;
}

.service-icon{
font-size:28px;
margin-bottom:8px;
}

.service-card h3{
font-size:20px;
margin-bottom:5px;
}

.service-card p{
font-size:14px;
line-height:1.4;
}

.location{
padding:50px 0;
}

.location-info h2{
font-size:32px;
}

.location-map,
.location-map iframe{
min-height:350px;
height:350px;
}

/* Legales */

.legal-hero{
padding:40px 0;
}

.legal-hero h2{
font-size:30px;
}

.legal-content{
padding:40px 5% 60px;
}

.legal-toc ol{
columns:1;
}

.legal-content table{
display:block;
overflow-x:auto;
}

/* Banner */

.cookie-banner{
flex-direction:column;
align-items:stretch;
left:10px;
right:10px;
bottom:10px;
padding:20px;
gap:16px;
}

.cookie-actions .btn-cookie{
flex:1;
}

}
