/* =========================================================================
   Tipografías locales – ErikSon Tech
   ======================================================================== */
@font-face {
    font-family: 'Monroe Light';
    src:
        url('https://erikson-tech.com/wp-content/themes/erikson-tech/fonts/monroe-light.woff2') format('woff2'),
        url('https://erikson-tech.com/wp-content/themes/erikson-tech/fonts/monroe-light.woff')  format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('https://erikson-tech.com/wp-content/themes/erikson-tech/fonts/Inter_18pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('https://erikson-tech.com/wp-content/themes/erikson-tech/fonts/Inter_18pt-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('https://erikson-tech.com/wp-content/themes/erikson-tech/fonts/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('https://erikson-tech.com/wp-content/themes/erikson-tech/fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================================
   Estilos plantilla “Projectes” – ErikSon Tech (inspirado en MarkeThink)
   ========================================================================= */
body.page-template-projectes-inline {
    --azul: #005a87;
    --azulHover: #003f5c;
    --texto: #333;
    --fondo: #fdfdfd;

    background: var(--fondo);
    font-family: 'Inter', 'Monroe Light', sans-serif;
}

#inner-wrap * {
    font-family: inherit;
}

/* HERO */
.project-hero {
    min-height: 480px;
    padding: 90px 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    text-align: center;
    color: #fff;
}
.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.project-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}
.project-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    margin-top: 10%;
    color: #F1E5DC;
}
.btn-hero-web {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.btn-hero-web:hover {
    background: #eee;
}

/* IMAGEN DESTACADA */
.wrapper-img {
    text-align: center;
    padding: 50px 0 30px;
    background: #fdfdfd;
}
.wrapper-img img {
    max-width: 1080px;
    width: 100%;
    height: auto;
    border: 0;
}

/* LAYOUT PRINCIPAL */
.wrapper-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 80%;
    margin: 5% auto;
}
.sidebar-fijo {
    flex: 0 0 220px;
}
.columna-main {
    flex: 1 1 0%;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* INFORMACIÓN DEL PROYECTO */
.port-info p {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--texto);
    font-family: 'Inter', sans-serif;
	text-align: center;
}

/* BOTÓN “VER WEB” */
.btn-ver-web {
    display: block;
    text-align: center;
    width: 50%;
    margin: auto;
    padding: 12px;
    font-weight: 600;
    background: #F1E5DC;
    color: #005a87;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}
.btn-ver-web:hover {
    background: #F07900;
    color: #f1e5dc;
}

/* BOTÓN PDF */
.btn-descarga-pdf {
    display: block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #eaeaea;
    color: #111;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
.btn-descarga-pdf:hover {
    background: #d5d5d5;
}

/* TOC */
.toc {
    margin: 30px 0 0;
}
.toc li {
    margin: 6px 0;
    font-family: 'Inter', sans-serif;
}
.toc li a:hover {
    color: #fa3b04;
    text-decoration: underline;
    transition: color 0.3s ease;
}

/* CAMPOS PERSONALIZADOS */
.cliente-nombre {
    color: #0077cc;
    font-weight: bold;
}
.descripcion-proyecto {
    color: #cc5500;
    font-style: italic;
}
.ano-proyecto {
    color: #228B22;
    font-weight: 600;
    letter-spacing: 0.5px;
}



.post-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	margin-bottom: 5%;
}




.post-grid *{
	background-color: #f9efe8;
}

.post-grid article{
	border: 3px solid white;
	margin-left: 2%;
	margin-right: 2%;
}









/* =========================================================================
   RESPONSIVE – Tablet (≤ 1024 px)
   ========================================================================= */
@media (max-width: 1024px) {

  /* HERO */
  .project-hero {
    min-height: 380px;
    padding: 70px 20px;
    background-size: cover;               /* llena mejor en pantallas medianas */
  }
  .project-hero-title {
    font-size: 30px;
    margin-top: 12%;
  }

  /* LAYOUT PRINCIPAL */
  .wrapper-flex {
    gap: 30px;
    max-width: 90%;
    margin: 6% auto;
  }
  .sidebar-fijo {
    flex: 0 0 180px;
  }
  .columna-main {
    font-size: 15px;
  }

  /* BOTÓN “VER WEB” en sidebar */
  .btn-ver-web {
    width: 70%;           /* quepa dentro del sidebar reducido */
  }

  /* GRID Kadence (si cambias columnas) */
	.post-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
	
  .post-grid article {
    margin: 0 1.5%;
  }
}

/* =========================================================================
   RESPONSIVE – Móvil (≤ 768 px)
   ========================================================================= */
@media (max-width: 768px) {

  /* HERO */
  .project-hero {
    min-height: 300px;
    padding: 60px 15px;
  }
  .project-hero-title {
    font-size: 26px;
    margin-top: 18%;
  }
  .btn-hero-web {
    padding: 10px 20px;
    font-size: 15px;
  }

  /* LAYOUT: de columna a stacked */
  .wrapper-flex {
    flex-direction: column;
    gap: 50px;
    max-width: 92%;
    margin: 8% auto;
  }
  .sidebar-fijo {
    flex: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .columna-main {
    font-size: 14px;
  }

  /* TOC */
  .toc {
    margin-top: 40px;
  }

  /* BOTÓN “VER WEB” */
  .btn-ver-web {
    width: 100%;
  }

  /* GRID Kadence: una sola columna */
  .kadence-posts-grid,        /* contenedor que usa Kadence */
  .post-grid {
    display: grid !important;
    grid-template-columns: 2fr !important;
  }
  .post-grid article {
    margin: 0 0 20px;
  }
}

/* =========================================================================
   RESPONSIVE – Móvil pequeño (≤ 480 px)
   ========================================================================= */
@media (max-width: 480px) {

  /* Tipos y espaciados generales */
  body.page-template-projectes-inline {
    font-size: 15px;
  }

  /* HERO */
  .project-hero-title {
    font-size: 22px;
  }

  /* Sidebar info */
  .port-info p {
    font-size: 14px;
  }

  /* Botones */
  .btn-hero-web,
  .btn-ver-web,
  .btn-descarga-pdf {
    padding: 10px 16px;
    font-size: 14px;
  }
}