/* === RESET SENCILLO === */
* { box-sizing: border-box; }
html, body {
  background-color: #f0f6ff !important; /* azul claro */
  margin: 0;
  color: #333;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* === LAYOUT GENERAL === */
.section { padding: 3rem 1.25rem; }
.container { max-width: 1100px; margin: 0 auto; }
.center { text-align:center; }
.section-title { font-size:2rem; margin: 0 0 1.25rem; }

/* === HEADER UNIFICADO === */
.site-header {
  background: #007BFF;
  color: #fff;
  /* ❌ QUITAMOS: border-bottom: 1px solid rgba(255,255,255,.15); */
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;       /* título centrado */
  gap: 12px;
  padding: .75rem 1rem 0;        /* sin cargar demasiado arriba */
}

.header-logo {
  height: 90px;   /* más destacado que los demás */
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

/* Fila de CTAs (nav) */
.site-nav {
  padding: .5rem 1rem 0.75rem;   /* separa la fila de CTAs */
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;               /* para que no rompa en móviles */
}

.site-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 999px;          /* pastilla/CTA */
  background: rgba(255,255,255,0.12);
  transition: background .15s ease, transform .15s ease;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* Responsive: en pantallas pequeñas reducimos el logo y el título */
@media (max-width: 600px) {
  .header-logo { height: 64px; }
  .site-title { font-size: 1.25rem; }
}

/* === HERO === */
.hero img { width:100%; max-height:460px; object-fit:cover; border-radius:12px; }
.hero p { max-width:800px; margin:.5rem auto; text-align:justify; }

/* === CTA === */
.btn-cta {
  display:inline-block; background:#ff6600; color:#fff; text-decoration:none;
  padding:.8rem 1.2rem; border-radius:8px; font-weight:600; margin-top:1rem;
}
.btn-cta:hover { filter:brightness(.95); }

/* === QUIÉNES SOMOS === */
.figure { display:block; max-width:900px; width:100%; margin: 0 auto 1rem; border-radius:10px; }
.copy { max-width:900px; margin: 0 auto; text-align:justify; }

/* === SERVICIOS === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 x 2 en escritorio */
  gap: 1.25rem;
}

.tarjeta-servicio {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tarjeta-servicio:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* 👉 Más altura + enfoque arriba para no cortar cabezas */
.tarjeta-servicio img {
  width: 100%;
  height: 240px;                 /* antes ~160px */
  object-fit: cover;
  object-position: center top;   /* centra y prioriza la parte superior */
  border-radius: 12px 12px 0 0;
}

/* Texto */
.tarjeta-servicio .contenido { padding: 1rem; }
.tarjeta-servicio h3 { margin: .2rem 0 .4rem; }

/* Responsivo */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .tarjeta-servicio img { height: 200px; }
}
@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .tarjeta-servicio img { height: 180px; }
}

/* === ESTAMENTOS === */
.grid-estamentos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  justify-items: center;
}

.grid-estamentos .estamento-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  background: transparent;   /* o #fff si prefieres tarjetita blanca */
  cursor: pointer;
}

.grid-estamentos .estamento-logo:hover,
.grid-estamentos .estamento-logo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  background: rgba(255,255,255,.6);  /* muy sutil; cambia a #fff si lo quieres sólido */
  outline: none;
}

.grid-estamentos img {
  max-height: 100px;  /* ya lo tenías grande; mantenemos */
  width: auto;
}

/* === HERRAMIENTAS IA === */
#herramientas { padding-top:3rem; }
#herramientas h2 { text-align:center; margin-bottom:.25rem; }
#herramientas p { text-align:center; max-width:800px; margin:.25rem auto 1.25rem; }

/* Parrilla 6x2 para logos de herramientas */
.grid-herramientas {
  display: grid;
  grid-template-columns: repeat(6, 1fr);  /* 6 columnas */
  gap: 2rem;  /* espacio entre logos */
  justify-items: center;
  align-items: center;
}

.grid-herramientas img {
  max-height: 80px;   /* más grandes que antes */
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Ocultar nombres bajo logos de herramientas */
.grid-herramientas p {
  display: none;
}

@media (max-width: 900px) {
  .grid-herramientas {
    grid-template-columns: repeat(3, 1fr); /* en tablets → 3 columnas */
  }
}

@media (max-width: 600px) {
  .grid-herramientas {
    grid-template-columns: repeat(2, 1fr); /* en móviles → 2 columnas */
  }
}

/* === BLOG === */
.blog .blog-row {
  display:grid; gap:1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.blog-card {
  display:block; background:#fff; border:1px solid #eee; border-radius:12px; overflow:hidden;
  color:inherit; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.08); }
.card-image { width:100%; height:160px; object-fit:cover; }
.card-content { padding:1rem; }
.card-title { margin:.2rem 0 .4rem; font-size:1.05rem; }
.card-description { font-size:.95rem; color:#444; }

/* === FOOTER === */
.footer {
  background: #007BFF;   /* igual que el header */
  color: #fff;
  padding: 2rem 1rem;
}

.footer a {
  color: #fff;           /* enlaces en blanco */
  text-decoration: underline;
}

.footer a:hover {
  color: #ffdd99;        /* un toque distinto al pasar el ratón */
}

.footer-bottom {
  background: #0066cc;   /* un azul un poco más oscuro, opcional */
  color: #eaeaea;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width:1100px; margin:0 auto; padding:2rem 1.25rem;
  display:grid; gap:1.25rem; grid-template-columns: 2fr 1fr 1fr;
}
.footer h3, .footer h4 { color:#fff; margin:.25rem 0 .5rem; }
.btn-footer { display:inline-block; background:#ff6600; color:#fff; padding:.6rem 1rem; border-radius:8px; margin-bottom:.75rem; }
.social-icons { display:flex; gap:.75rem; }
.social-icon { width:24px; height:24px; }

/* === RESPONSIVE MENORES === */
@media (max-width: 900px){
  .footer-container { grid-template-columns: 1fr; }
}

/* === CONTACTO (coherente con el sitio) === */
.page-contact { background: #f0f6ff; } /* mismo fondo general */

.page-contact .contact-hero {
  background: #007BFF; color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
}
.page-contact .contact-hero h1 {
  margin: 0 0 .5rem; font-size: 2rem; font-weight: 700;
}
.page-contact .contact-hero p {
  margin: 0 auto; max-width: 720px; opacity: .95;
}

.page-contact .contact-container {
  max-width: 980px; margin: -1.25rem auto 0; padding: 0 1rem 3rem;
}

.page-contact .contact-form-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.page-contact .form-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr; /* 2 columnas */
}
.page-contact .form-group { display:flex; flex-direction:column; }
.page-contact .form-group.full-width { grid-column: 1 / -1; }

.page-contact label { font-weight:600; margin-bottom:.35rem; color:#333; font-size:.95rem; }
.page-contact input, .page-contact select, .page-contact textarea {
  padding: .8rem 1rem; border:2px solid #e1e5e9; border-radius:10px;
  font-size:1rem; background:#f8f9fa; transition:.2s;
}
.page-contact input:focus, .page-contact select:focus, .page-contact textarea:focus {
  outline:none; border-color:#007BFF; background:#fff; box-shadow:0 0 0 3px rgba(0,123,255,.12);
}
.page-contact textarea { resize: vertical; min-height: 120px; }

.page-contact .submit-btn {
  display:block; width:100%;
  background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
  color:#fff; border:none; border-radius:10px;
  padding: 1rem 1.2rem; font-size:1.05rem; font-weight:700; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  margin-top: .5rem;
}
.page-contact .submit-btn:hover { transform: translateY(-2px); box-shadow:0 10px 24px rgba(229,90,0,.25); }

.page-contact .success-message {
  background:#d4edda; color:#155724; border:1px solid #c3e6cb;
  padding: .8rem 1rem; border-radius:10px; display:none; margin-bottom:1rem;
}

/* Tarjetas de info: más pequeñas, bajo el botón en parrilla 3×1 */
.page-contact .contact-info {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);   /* 3 columnas en escritorio */
  margin-top: .5rem;
}
.page-contact .info-card {
  background:#fff; border-radius:12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 1.1rem; text-align:center;
}
.page-contact .info-card .icon { font-size: 1.8rem; margin-bottom: .25rem; }
.page-contact .info-card h3 { color:#007BFF; margin:.15rem 0 .15rem; font-size:1.05rem; }
.page-contact .info-card p { color:#444; margin:.2rem 0; font-size:.95rem; }
.page-contact .info-card a { color:#007BFF; text-decoration:none; }
.page-contact .info-card a:hover { text-decoration:underline; }

/* Responsive */
@media (max-width: 900px){
  .page-contact .form-grid { grid-template-columns: 1fr; } /* 1 columna en tablet/móvil */
  .page-contact .contact-info { grid-template-columns: repeat(2, 1fr); } /* 2 columnas */
}
@media (max-width: 600px){
  .page-contact .contact-info { grid-template-columns: 1fr; } /* 1 columna en móvil */
}

/* === Páginas legales === */
.page-legal {
  background: #f0f6ff; /* mismo fondo general */
}

/* contenedor cómodo y centrado */
.page-legal .container,
.page-legal main,
.page-legal .legal-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Títulos centrados */
.page-legal h1 {
  text-align: center;
  margin: 1rem 0 1.25rem;
  font-size: 2rem;
  font-weight: 700;
}

.page-legal h2 {
  text-align: center;        /* si solo quieres H1, quita esta línea */
  margin: 1.25rem 0 .75rem;
}

/* Fechas o metainformación bajo el H1 */
.page-legal .last-update,
.page-legal time {
  display: block;
  text-align: center;
  opacity: .8;
  margin-bottom: .75rem;
}

/* Cuerpo del texto: mantener justificado y legible */
.page-legal p,
.page-legal li {
  text-align: justify;
  line-height: 1.75;
}

/* Fondo consistente en legales (igual que Home) */
body.page-legal {
  background-color: #f0f6ff !important;   /* azul claro suave */
}

/* Por si alguna página legal trae estilos antiguos incrustados */
.page-legal main,
.page-legal .container,
.page-legal .legal-container {
  background: transparent !important;
}

.page-legal .last-update {
  display:block; text-align:center; opacity:.8;
  margin: .5rem auto 1.25rem;
}
.page-legal .legal-content {
  max-width: 900px; margin: 0 auto; text-align: justify;
}

/* Logos de navegadores (cookies) */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  justify-items: center;
  align-items: center;
  margin-top: .5rem;
}

.browser-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  background: transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}

.browser-logo:hover,
.browser-logo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  background: rgba(255,255,255,.6);
  outline: none;
}

.browser-grid img {
  max-height: 64px;
  width: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .browser-grid { grid-template-columns: repeat(2, 1fr); }
  .browser-grid img { max-height: 56px; }
}
@media (max-width: 600px) {
  .browser-grid img { max-height: 52px; }
}

/* Solo accesibilidad: ocultar texto visual, mantener para lectores de pantalla */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* === DESACTIVAR TOOLTIPS DE ESTAMENTOS (elimina línea negra) === */
#estamento-info {
  display: none !important;  /* Ocultar tooltip completamente */
}

/* Mantener solo el efecto hover visual en las tarjetas */
.grid-estamentos .estamento-logo:hover,
.grid-estamentos .estamento-logo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  background: rgba(255,255,255,.6);
  outline: none;
}

/* === BANNER DE COOKIES - FUNCIONAL === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 1.2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: 'Poppins', system-ui, sans-serif;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-text {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-text a {
    color: #ffeb3b;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 120px;
}

.cookie-btn-accept {
    background: #28a745;
    color: white;
}

.cookie-btn-accept:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        max-width: none;
        width: 100%;
    }
}
<style>
/* Optimizaciones SEO textos */
.contenido p strong {
  color: #ff6600;
}

.footer-info p {
  line-height: 1.4;
}

/* Destacar términos Catalunya en textos */
.section p strong {
  font-weight: 600;
}

/* Mejorar legibilidad móvil */
@media (max-width: 768px) {
  .hero p {
    font-size: 1rem !important;
  }
  
  .contenido p {
    font-size: 0.95rem;
  }
}
</style>