/*
Theme Name: Fran
Author: Francisco Ruiz Malagón
Author URI: https://ideariodigital.com/
*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .hero, .post-del-mes {
    animation: fadeInUp 0.6s ease-out both;
}

/* Retraso en las tarjetas para efecto cascada */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.15);
  --shadow-card: rgba(0,0,0,0.35);
  --shadow-hover: rgba(56,189,248,0.25);
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.p-0{padding:0!important;}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* Todas iguales */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card-image img.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta sin deformar */
  display: block;
}

.post-header, .category-header{
  padding: 0 0 0;
}



body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
  background-image: 
    /* Nodos encendidos (La magia) */
    radial-gradient(circle at 1px 1px, rgba(56, 189, 248, 0.4) 1px, transparent 0),
    /* Cuadrícula de baja intensidad */
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    /* Gradiente fluido de personalidad */
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(30, 41, 59, 0.5) 0%, #010409 100%);
  
  background-size: 90px 90px, 90px 90px, 90px 90px, 100% 100%, 100% 100%;
  background-attachment: fixed;
    color: var(--text); 
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Añade una mancha de luz decorativa */
body::before {
    content: "";
    position: fixed;
    top: 20%;
    left: 80%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.site-header {
  padding: 0 0 0;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 10;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.70rem;
  font-weight: 500;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  margin:0.3em!important;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.4em;
  margin: 1rem 0 1rem !important;
  letter-spacing: -0.5px;
  background: linear-gradient(to bottom, #eaf4ff 20%, #75c6eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--muted);
  max-width: 650px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* Buttons */
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #020617;
  box-shadow: 0 4px 15px var(--shadow-card);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  border-color: #1f2933;
  color: var(--text);
}

.btn-secondary:hover {
  background: #020617;
  transform: translateY(-2px);
}

/* Main content */
main {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  gap: 2rem;
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  margin-top: 2em;
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
    background: rgba(17, 24, 39, 0.7); /* Fondo semi-transparente */
    backdrop-filter: blur(10px); /* Efecto cristal */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.1);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus-visible {
  text-decoration: underline;
}
p{font-size:18px;}
.card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Skills / tags */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.skill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2933;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.skill:hover,
.skill:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
  background: rgba(56,189,248,0.05);
}

/* Footer */
footer {
  border-top: 1px solid #1f2933;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
}
.margin-bottom-3{
  margin-bottom:0.3em;
} 

/* Filters */
.filters {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.filter-block {
  display: grid;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1.5em;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2933;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  box-shadow: 0 6px 20px var(--shadow-card);
}

.filter-pill:hover,
.filter-pill:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
  background: rgba(56,189,248,0.06);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.filter-pill.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* Contenedor de la imagen */
.post-thumbnail {
    width: 100%;
    height: 400px; /* Ajusta este valor a la altura fija que desees */
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px; /* Opcional: para bordes redondeados */
}

/* La imagen dentro del contenedor */
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto recorta la imagen para que llene el espacio sin deformarse */
    object-position: center; /* Centra el recorte en el medio */
    display: block;
}
.post-thumbnail, .post-categories{
    padding: 1em 0;
}
.post-content h3{line-height: 1em;}
.post-content h3 a, .post-content a{ color:#fff;}
.card-post h3{margin-bottom:0.5em!important;}
.post-date{
    padding-bottom: 1em;
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 10px 25px var(--shadow-card);
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: var(--accent-soft);
}

thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text);
}

tbody tr:hover {
    background: rgba(56,189,248,0.1);
    transform: translateX(0);
}

tbody tr:last-child td {
    border-bottom: none;
}

table th, table td {
    transition: all 0.25s ease;
}

/* Responsive */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tbody tr {
        margin-bottom: 1rem;
        background: var(--card);
        padding: 1rem;
        border-radius: 12px;
    }
    tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--accent);
    }
}
.post-content img{
    width: fit-content;
    max-width: 100%;
}

/* Contenedor principal de la calculadora */
.calculadora-container {
  background: var(--card);
  margin: auto;
  display: grid;
  gap: 1.5rem;
}

.calculadora-container h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.calculadora-container label {
  font-size: 1rem;
  color: var(--muted);
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

.calculadora-container input,
.calculadora-container select {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #1f2933;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.calculadora-container input:focus,
.calculadora-container select:focus {
  border-color: var(--accent);
  outline: none;
}

.calculadora-container button {
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: #020617;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  margin-top: 1.5rem;
  width: 100%;
}

.calculadora-container button:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 8px 20px var(--shadow-hover);
}

.calculadora-container .result {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
  background: var(--accent-soft);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 15px var(--shadow-card);
  transition: all 0.25s ease;
}

.calculadora-container .result p {
  margin: 0.5rem 0;
}

.calculadora-container .result .significant {
  color: var(--accent);
}

.calculadora-container .result .not-significant {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .calculadora-container button {
    padding: 1rem;
  }
}

.page-id-330 .filter-tag{display:none;}

.page-template-page-generica h2{
    margin-top: 1em;
}

.page-template-page-generica section h3 {
    font-size: 1.4rem;
    margin-top: 1.5em;
    margin-bottom: 0.3em;
    position: relative;
    padding-left: 12px;
}

.page-template-page-generica section h3::before {
    content: "•"; 
    color: #38bdf8;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-template-page-generica  .diccionario section p {
    font-size: 1rem;
    margin-bottom: 1em;
    padding-left: 1.2em;
    line-height: 1.7;
}

.page-template-page-generica  .diccionario section a{
  color:#007cba;
}

/* ========================= */
/* FOOTER ESTILOS */
/* ========================= */

.site-footer {
    background-color: #10131c;
    color: #f9fafb; /* blanco suave */
    padding: 20px 15px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Columnas */
.footer-col {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.footer-col-left {
    flex: 1;
}

.footer-col-center {
    flex: 2;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-col-right {
    flex: 1;
    justify-content: flex-end;
    text-align: right;
    flex-wrap: wrap;
}

/* Favicon */
.footer-favicon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

/* Nombre */
.footer-name {
    font-weight: 500;
}

/* Categorías */
.footer-pill {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 20px;
    background-color: #38bdf8;
    color: #020617;
    text-decoration: none;
    font-size: 0.75rem;
    transition: background-color 0.3s;
}

.footer-pill:hover {
    background-color: #ffffff;
}

/* Diccionario */
.footer-diccionario {
    color: #fff;
    text-decoration: underline;
    margin-right: 10px;
}

.footer-copy {
    color: #d1d5db;
}

.footer-container h4{
    font-size:1.3em;
    width: 100%;
    margin: 0 0 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col-center {
        justify-content: center;
        margin: 10px 0;
    }
    .footer-col-right {
        justify-content: center;
        text-align: center;
    }
}

/* Asegura que las imágenes dentro de .card-about no se salgan */
.card-about img {
    width: 100%;       /* que no exceda el contenedor */
    height: auto;      /* mantiene proporción */
    border-radius: 8px; /* opcional, para que siga tu estilo de tarjetas */
    display: block;    /* evita espacios extra abajo */
    object-fit: cover; /* recorta si hace falta sin deformar */
}

/* Si quieres que la altura máxima sea fija (opcional) */
.card-about img {
    max-height: 300px; /* ajusta a la altura que quieras */
    object-fit: cover;
    padding-bottom:1em;
}

/* Evita que el grid haga que la imagen se salga */
.hero {
    gap: 2rem;
    align-items: start; /* que la imagen no estire la columna */
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 2fr 1fr;
    }
    .card-about img {
        max-width: 100%; /* importante para que no supere la columna */
    }
}


footer .legales{
   padding-top:2em;
}

footer .legales a{
   color:#fff;
}

#respond a{
  color:#38bdf8!important;
}

.logo-top{
  width:3em; 
  height:3em;
}


.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  display: flex;
  align-items: center;
}

/* Menú desktop */
.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

/* Burger oculto en desktop */
.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu {
        position: absolute;
        top: 100px;
        right: 24px;
        flex-direction: column;
        background: #10131c;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
        display: none;
        z-index: 9999;
        WIDTH: 11em;
  }

  .menu.active {
    display: flex;
  }

  .burger {
    display: block;
    color: #fff;
  }
}
@media (max-width: 768px) {
  .post-thumbnail{
     height:200px!important;
   }
  .post h1{
     font-size: 1.8em;
   }
  .post h2{
     font-size: 1.5em;
   }

}

.post-del-mes {
    margin: 5rem 0;
    position: relative;
}

.post-del-mes::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    opacity: .35;
    filter: blur(18px);
    z-index: -1;
}

.post-del-mes h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: #f8fafc;
    letter-spacing: .02em;
}

.post-preview {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 1.75rem;
    transition: transform .3s ease;
}

.post-preview:hover {
    transform: translateY(-4px);
}

.post-preview img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.post-preview__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-preview__content h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0 0 .75rem;
}

.post-preview__content h3 a {
    color: #e0f2fe;
    text-decoration: none;
}

.post-preview__content h3 a:hover {
    text-decoration: underline;
}

.post-preview__content p {
    color: #cbd5f5;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.w-fitcontent{
    width: fit-content;
}

@media (max-width: 768px) {
    .post-preview {
        grid-template-columns: 1fr;
    }

    .post-preview img {
        max-height: 240px;
    }
}

.dicionario a{
  color:#38bdf8;
}

section#faqs details{border: 1px solid #ddd; padding: 15px; border-radius: 5px; margin-bottom: 10px; cursor: pointer;}
section#faqs summary{font-weight: bold; color: #ffffff;}
.screen-reader-response, .hidden-fields-container{display:none!important;}

/* Estilo del Logo */
.company-logo {
  max-width: 120px;       /* Ancho máximo del logo */
  height: 60px;          /* Altura fija para uniformidad */
  object-fit: contain;   /* Importante: ajusta la imagen sin deformarla y manteniendo proporciones */
  margin-bottom: 10px;   /* Espacio entre logo y h3 */
  filter: grayscale(100%); /* Opcional: logos en blanco y negro por defecto */
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-pill.icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espacio entre icono y texto */
    padding: 8px 15px; /* Ajusta según tu diseño actual */
}

.footer-pill.icon-pill svg {
    flex-shrink: 0;
}

/* --- ESTILO DE LA TARJETA --- */
.newsletter-card {
    margin: 0 auto;
    background: #ffffff;
    padding: 1em;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.newsletter-card .badge {
    background: #101928;
    color: #ffffff;
    padding: 5px 12px;
    margin-bottom:1em!important;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.newsletter-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #1a1a1a;
}
.newsletter-inline-group{margin-top:1em;}


.newsletter-inline-group input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-inline-group input[type="email"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.newsletter-inline-group input[type="submit"] {  
    font-size:1em!important;
    text-transform: uppercase;
    width: 100%;
    margin-top: 1.5em;
    height: 50px;
    padding: 0 30px;
    background-color: #38bdf8;
    color: #020617;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.newsletter-inline-group input[type="submit"]:hover {
    color:#38bdf8;
    background-color: #020617;
    transform: translateY(-1px);
}

/* --- MENSAJES DE CF7 --- */
.wpcf7-response-output {
    margin-top:0.5em;
    font-size: 15px;
    color: #166534 !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc2626;
    text-align: left;
    margin-top: 5px;
}

.newsletter-footer {
    margin-top: 20px;
    color: #9ca3af;
    font-size: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 550px) {
    .newsletter-inline-group {
        flex-direction: column;
    }
    .newsletter-card {
        padding: 30px 20px;
    }
    .newsletter-inline-group input[type="submit"] {
        width: 100%;
    }
}

/* CONTENEDOR DEL FORMULARIO */
.searchform div {
    display: flex;
    gap: 0; /* Unimos el input y el botón */
    max-width: 600px;
    margin: 1.5rem 0;
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.searchform div:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: var(--primary-color); /* Usa tu color corporativo */
}

.searchform input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    color: #333;
    width: 100%;
}

.searchform input[type="text"]::placeholder {
    color: #aaa;
}

.searchform input[type="submit"] {
    background-color: #38bdf8;
    color: #020617;
    border: none;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.searchform input[type="submit"]:hover {
    color: #38bdf8;
    background-color: #020617;
}

/* OCULTAR LABEL PARA LECTORES DE PANTALLA (ACCESIBILIDAD) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* AJUSTE PARA MÓVILES */
@media (max-width: 480px) {
    .searchform input[type="submit"] {
        padding: 1rem;
    }
}
/* ESTRUCTURA GENERAL DEL HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ESTILOS DEL BUSCADOR EN EL HEADER */
.header-search .search-wrapper {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 20px;
    padding: 2px 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.header-search .search-wrapper:focus-within {
    background: #fff;
    border-color: #30B0F5;
    box-shadow: 0 0 8px rgba(48, 176, 245, 0.2);
}

.header-search input[type="text"] {
    border: none;
    background: transparent;
    padding: 8px;
    outline: none;
    font-size: 0.9rem;
    width: 150px; /* Ancho base en escritorio */
    transition: width 0.3s ease;
}

.header-search input[type="text"]:focus {
    width: 200px; /* Se expande al hacer clic */
}

.header-search button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    padding: 5px;
}

.header-search button:hover {
    color: #30B0F5;
}


/* Tablet/Móvil */
@media (max-width: 992px) {
    .header-search input[type="text"] {
        width: 100px;
    }
    .header-search input[type="text"]:focus {
        width: 130px;
    }
}

/* Móvil pequeño: Ocultamos texto o movemos el buscador */
@media (max-width: 600px) {
    .menu {
        display: none; /* Tu lógica de menú burger aquí */
    }
 
    
    .header-search {
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;
    }

    .header-search input[type="text"] {
        width: 80px;
    }
    
    .header-search input[type="text"]:focus {
        width: 120px;
    }
}

/* 1. El contenedor circular del icono */
.icon-wrapper {
    background-color: rgba(255, 255, 255, 0.03); /* Fondo muy sutil */
    width: 50px; /* Un poco más grande para que respire */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Círculo perfecto */
    margin-bottom: 24px; /* Espacio con el título */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borde sutil del círculo */
}

.card-icon {
    width: 24px;  /* Tamaño estándar y claro */
    height: 24px;
    color: #a0aec0; /* Color gris azulado por defecto (muted) */
    transition: color 0.3s ease; /* Transición suave para el hover */
}

.card-service:hover .card-icon {
    color: #ffffff; /* El icono se ilumina en blanco al hacer hover en la tarjeta */
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-service {
    background: #121b29;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2em!important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-service:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-anchor {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

.icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--text-main);
}

.card-icon {
    width: 20px;
    height: 20px;
}

.card-title {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.card-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Responsividad */
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .cards-grid { grid-template-columns: 1fr; }
}
.category-hero-container {
    display: flex;
    align-items: center; /* Centra verticalmente el texto con la imagen */
    justify-content: space-between;
    gap: 40px; /* Espacio entre texto e imagen */
    padding: 0;
}

.category-hero-content {
    flex: 1; /* El texto ocupa el espacio sobrante */
}

.category-hero-image {
    flex: 0 0 40%; /* La imagen ocupa un 40% del ancho fijo */
    max-width: 500px; /* Limita el tamaño máximo de la ilustración */
}

.category-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; /* Opcional: para darle un toque moderno */
}

/* Responsive: en móvil se ponen uno debajo de otro */
@media (max-width: 768px) {
    .category-hero-container {
        flex-direction: column-reverse; /* Imagen arriba o abajo según prefieras */
        text-align: center;
    }
    .category-hero-image {
        flex: 1;
        width: 100%;
    }
}

.resource-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    text-align: center;
    margin-top: 20px;
}

.resource-summary-item {
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.resource-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.resource-value {
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
}

.resource-value.rating {
    color: #f1c40f;
}

.resource-value.apply {
    color: #27ae60;
}

/* Layout General */
.ads-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1400px; /* Ajusta según el ancho de tu web */
    margin: 0 auto;
}

/* Estilo para los bloques de anuncios laterales */
.ad-side {
    width: 160px; /* Ancho estándar de rascacielos */
    position: sticky;
    top: 20px; /* Se queda pegado al hacer scroll */
    min-height: 600px;
    background: transparent; /* Puedes poner #f4f4f4 para pruebas */
}

/* El contenido del post */
.post {
    flex: 1;
    max-width: 800px; /* Para que el texto sea legible */
    min-width: 0;
}

/* Ad móvil oculto por defecto */
.ad-mobile-only, .ad-mobile {
    display: none;
    text-align: center;
    margin: 20px 0;
}

/* --- RESPONSIVE --- */

@media (max-width: 1100px) {
    /* Escondemos los laterales si la pantalla es estrecha */
    .ad-desktop-only, .ad-side {
        display: none;
    }
    
    /* Mostramos el anuncio específico para móvil */
    .ad-mobile-only, .ad-mobile {
        display: block;
    }

    .ads-wrapper {
        display: block; /* El post ocupa todo el ancho */
    }
}

/* Contenedor del anuncio */
.ad-container-horizontal {
    max-width: 1200px; /* Alineado con tu contenedor principal */
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
}

/* Etiqueta sutil de Publicidad */
.ad-label {
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Espacio reservado para evitar saltos de contenido (CLS) */
.ad-content {
    min-height: 90px; /* Altura mínima para PC */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajustes para Móvil */
@media (max-width: 768px) {
    .ad-container-horizontal {
        margin: 15px 10px;
    }
    .ad-content {
        min-height: 50px; /* Altura típica de banners móviles */
    }
}

.newsletter-content{text-align: left;}
.card.newsletter-card{margin-top:3em}