/*
 Theme Name:   fec
 Theme URI:    https://example.com/themes/fec
 Description:  Tema Foro Elección Ciudadana
 Author:       ClickNaranja SL
 Author URI:   https://clicknaranja.com
 Template:     bootstrap-basic
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         bootstrap, responsive, one-column, two-columns, right-sidebar, left-sidebar, fixed-layout
 Text Domain:  fec
*/

/* =Theme customization starts here
-------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
:root {
  --fec-black: #333343;
  --fec-bg-black: #121c27;
  --fec-blue: #00729d;
  --fec-bg-blue: #19a1d5;
  --fec-bg-grey: #cdcdcd;
  --fec-bg-grey-light: #F6F8FF;
  --font-base: "Lato", sans-serif;
  --font-alt: "Inter", sans-serif;
  --font-size-base: 1rem;
}
html,
body,
* {
  font-family: var(--font-base);
}
header#cn-header-container .cn-menu,
header#cn-header-container .cn-logo-col {
  width: auto;
}
header#cn-header-container .cn-logo-col img {
  max-width: 91px;
}
@media screen and (min-width: 768px) {
  .cn-menu-col ul.menu {
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
}

.cn-menu-col ul.menu li {
  list-style: none;
  margin: 0px 45px;
}

.cn-menu-col ul.menu li a {
  font-family: var(--font-alt);
  color: var(--fec-black);
  font-weight: 600;
}
.white-card,
.blue-card {
  min-height: 264px;
}
.blue-card {
  background: var(--fec-bg-blue);
}
.white-card {
  background: white;
}
.row.cn-fake-posts {
  margin-bottom: 30px;
}
.ultimos-posts-cajas {
  display: block;
}

.cn-post-thumbnail {
  min-height: 250px;
}

.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
.order-3 {
  order: 3;
}
.order-4 {
  order: 4;
}
.order-5 {
  order: 5;
}

.order-6 {
  order: 6;
}

.caja-post {
  background-color: white;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 30px;
}

.caja-post a {
  font-size: 19px;
  color: black;
  position: relative;
  padding-right: 50px;
}

@media (min-width: 768px) {
  .ultimos-posts-cajas {
    display: grid;
    grid-gap: 25px;
    grid-template-columns: repeat(
      3,
      1fr
    ); /* Define 3 columnas de igual ancho */
    grid-template-rows: repeat(2, 1fr); /* Define 2 filas de igual alto */
    grid-auto-flow: column dense;
  }
  .caja-post {
    margin-bottom: 0px;
  }
  .cn-post-thumbnail {
    min-height: 100%;
  }
  .order-3 {
    order: 4;
  }
  .order-4 {
    order: 3;
  }
  .caja-post a {
    float: right;
  }
}

.caja-post a:after {
  content: url(/wp-content/uploads/2025/04/arrow.svg);
  display: block;
  position: absolute;
  top: 2px;
  right: 0;
  left: auto;
}

#cn-tpl-header header {
    border-bottom: 16px solid var(--fec-bg-blue);
}

#cn-tpl-header .elementor-element-93a59b0 {
        padding: 0 !important;
}

.cn-entry {
    max-width: 860px;
    margin-top: 125px;
    font-family: "Lato", sans-serif;

}

.cn-entry h1 {
    font-weight: 700;
    font-size: 46px;
    line-height: 55px;
}

.cn-entry h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 50px;
    line-height: 35px;
}


.cn-entry + .cn-entry {
    margin-top: 60px;
}

.cn-entry.cn-body {
    font-size: 17px;
    line-height: 25px;
    margin-bottom: 50px;
}

.cn-entry-info {
    display: flex;
    gap: 20px;
    font-size: 20px;
    
}

.cn-entry-channel {
    color: var(--fec-blue);
    font-weight: 600;
}
.cn-entry-date {
    font-weight: 400;
}

a.cn-entry-link {
    background-color: var(--fec-bg-blue);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 50px;
    border-radius: 40px;
    margin-bottom: 100px;
    display: inline-block;
    transition: all 0.5s;
}

a.cn-entry-link:hover {
    background-color: var(--fec-blue);
}

/* Header */
.elementor-element-93a59b0, .elementor-element-6c86c3b2{
	padding: 0!important;
}

.elementor-element-93a59b0 ul#menu-main-menu-es, .elementor-element-6c86c3b2 ul#menu-main-menu-es{
	margin-bottom:3px!important;
}

/* FORM */
.cn_form,.nf-before-form-content {
    margin: 40px auto 0;
    width: 100%;
    max-width: 1080px;
}
.cn_form textarea{
    resize: vertical;
}
.cn_form .label-right .nf-field-label{
	padding-left: 0;
}

.cn_form input, .cn_form textarea{
	background-color: var(--fec-bg-grey-light);
}

.cn_form input[type="submit"]{
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    border: none;
    background-color: var(--fec-bg-blue);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}
.img-full{
	width: 100%;
  border-radius: 6px;
}

/* posts */
@media (min-width: 1200px) {
  .container {
    width: 1290px;
  }
}
.archive-container {
  margin-top: 50px;
}
.archive-container h1, .blog-fake-cover h1{
  font-size: 45px;
  font-weight: 500;
  text-align: center;
}
.post-list {
  display: grid;
   grid-template-columns: repeat(
    1,
    1fr
  ); 
}
.post-item {
  border: 1px solid var(--fec-bg-grey);
  padding: 10px;
  margin: 0 0 20px;

}
.post-categories{
  margin-top: 20px;
}
.post-categories a{
  padding: 5px 12px;
  border-radius: 6px;
  margin-right: 15px;
  background-color: rgba(25, 161, 213, .2);
  color: var(--fec-bg-blue);
  font-size: 13px;
}
@media (min-width:768px){
  .post-categories{
    margin-top: 25px;
  }
  .post-categories a{
    font-size: 14px;
  }
  .post-list {
    grid-template-columns: repeat(
      2,
      1fr
    ); 
  }
  .post-item {
    margin: 8px;
  }
}
@media (min-width:992px){
  .post-list {
    grid-template-columns: repeat(
      3,
      1fr
    ); 
  }
  .post-item {
    padding: 15px;
    margin: 10px;
  }
}


.post-item h2{
  color:#181A2A;
  font-size:19px;
  line-height: 1.2
}
.post-item .post-info{
  display: flex;
  margin-top: 25px;
  font-weight: bold;
  font-size: 14px;
  color: #97989F;
}
.post-item .post-info .medio{
  margin-right: 20px;
  text-transform: uppercase;
}
.post-item .bot_leer_mas{
  display: inline-block;
  margin-top: 25px;
  border: 1px solid var(--fec-bg-blue);
  background-color: var(--fec-bg-grey-light);
  border-radius: 25px;
  padding: 10px 25px;
  font-size: 12px;
  color:#333343;
}
.blog-fake-cover {
  height: 200px;
  background-image: url('/wp-content/uploads/2025/04/noticias-header.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cn-no-results{
  margin: 80px 0;
  text-align: center;
}
.cn-search-form{
  margin: 60px 0;
  display: flex;
}
.cn-search-form input{
  font-size: 17px;
  width: 100%;
  color: black;
  border: none;
  border-bottom: 1px solid var(--fec-bg-grey);
  background-color: white;
}
.cn-search-form input:focus-visible{
  border: none!important;
  border-bottom: 1px solid var(--fec-bg-grey)!important;
}
.cn-search-form label{
  width: 100%;
}
.cn-search-form button{
  background-color: white;
  border: none;
  padding: 0 0 5px 10px;
}
@media (min-width: 768px) {
  .cn-search-form {
    margin: 60px 8px;
  }
}
@media (min-width: 992px) {
  .cn-search-form {
    margin: 60px 10px;
  }
}

@media (min-width: 1200px) {
  .cn-search-form {
      margin: 60px 15px;
  }
  .archive-container h1, .blog-fake-cover h1 {
    font-size: 54px;
  }
  .post-item {
    padding: 20px;
    margin: 15px;
  }
  .post-item h2 {
    font-size: 24px;
  }
  .post-item .post-info {
    font-size: 16px;
  }
  .blog-fake-cover {
    height: 360px;
  }
}

.blog-fake-cover,
.hero-40 {
	min-height: max(40vh, 360px) !important;
}
#cn-manifiesto {
    max-width: 800px;
}
.cn-blue-btn a {
    display: inline-block;
    margin-top: 5px;
    border: 1px solid var(--fec-bg-blue);
    background-color: var(--fec-bg-grey-light) !important;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 12px;
    color: #333343 !important;
}

.cn-blue-btn a:hover {
    text-decoration: underline;
}

.nf-response-msg {
  text-align: center;
  font-size: 24px;
  color: var(--fec-blue);
}