Overrides for Astra Child Theme */
/*
Theme Name: Astra Child
Theme URI: https://yourwebsite.com
Description: Child theme for Astra
Author: Magiovillo
Author URI: https://yourwebsite.com
Template: astra
Version: 1.0.0
*/

/* Typography */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  color: #111;
  font-weight: normal;
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 30px 0;
  text-align: center;
}

.site-title {
  font-family: "Georgia", serif;
  font-size: 42px;
  letter-spacing: 1px;
  margin: 0;
}
.site-branding{
	margin-left: auto;
    max-width: 80%;
    margin-right: auto;
}
/* Navigation */
.nyt-main-navigation {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  margin-top: 20px;
  text-align: center;
}

.nyt-menu {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nyt-menu li {
  margin: 0 15px;
}

.nyt-menu li a {
  font-size: 14px;
  font-family: "Georgia", serif;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
}

.nyt-menu li a:hover {
  text-decoration: underline;
}

/* Main Content Grid */
.main-content {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  background: #fff;
}

/* Article Title and Meta */
.entry-title {
  font-size: 28px;
  font-family: Georgia, serif;
  line-height: 1.4;
  margin-bottom: 10px;
}

.entry-meta {
  font-size: 14px;
  color: #888;
  font-family: Arial, sans-serif;
}

/* Links */
a {
  color: #111;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Cards/Modules */
.card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Sidebar and Widgets */
.article-preview,
.widget,
.sidebar {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 20px;
}

/* Page Background */
body {
  background-color: #fff !important;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 26px;
  border-bottom: 2px solid #000;
  margin-top: 60px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}



/* ======= MAIN FEATURE (HERO) ======= */
/* Centra el hijo main-feature dentro del grid */
.main-feature {
  justify-self: center;               
  width: 100%;
  max-width: 1200px;                  
  margin: 0 0 2.5rem;                 
}


.feature-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  background: #111;
	width: 100%;
}

/* Fondo cuando no hay video (usa imagen destacada) */
.feature-card.has-image .feature-image {
  width: 100%;
  height: clamp(220px, 48vw, 520px);
  background-image: var(--feature-bg);
  background-size: cover;
  background-position: center;
}

/* Video responsive */
.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}
.ratio-16x9 iframe,
.ratio-16x9 video,
.ratio-16x9 embed,
.ratio-16x9 object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Overlay para mejorar legibilidad del texto */
.feature-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.feature-card.has-video .feature-overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.6) 100%); }

/* Contenido */
.feature-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 3vw, 28px);
  color: #fff;
}

.feature-meta {
  font-size: .9rem;
  opacity: .9;
  display: flex;
  gap: .75rem;
  margin-bottom: .4rem;
}
.feature-cat {
  background: rgba(255,255,255,.12);
  padding: .2rem .5rem;
  border-radius: 6px;
}

.feature-title {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin: .2rem 0 .5rem;
}
.feature-title a { color: #fff; text-decoration: none; }
.feature-title a:hover { text-decoration: underline; }

.feature-excerpt {
  max-width: 900px;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  opacity: .95;
  margin: 0 0 .9rem;
}

.feature-readmore {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-readmore:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* Espaciados del grid principal para que “respire” */
.content-grid {
  display: grid;
  gap: 2rem;
}
/* -----------------------Termina Main Feature ------------------------*/

/* ===== TOP Search ===== */
/* Oculta el botón de texto "Buscar" */
#topbar-widgets .search-form input[type="submit"] {
  display: none;
}


#topbar-widgets .search-form label {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
}


#topbar-widgets .search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 999px 0 0 999px;
  outline: none;
}

#topbar-widgets .search-form button[type="submit"] {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 16px 16px;
  border: 1px solid #ccc;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  padding: 0 18px;
  cursor: pointer;
}


/* ===== MODAL ===== */
.ec-modal { 
  position: fixed; inset: 0; z-index: 2000;
  display: block;
}
.ec-modal[hidden] { display: none; }
.ec-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.ec-modal__dialog {
  position: relative;
  max-width: 960px;
  width: min(92vw, 960px);
  max-height: 86vh;
  margin: 6vh auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ec-modal__close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: 0; font-size: 28px; line-height: 1;
  cursor: pointer; color: #666;
}
#ec-modal-title {
  margin: 0; padding: 16px 20px; border-bottom: 1px solid #eee; font-size: 1.1rem;
}
.ec-modal__body {
  padding: 16px 20px;
  overflow: auto;
}

/* Resultados */
.ec-result {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ec-result:last-child { border-bottom: 0; }
.ec-result__thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
.ec-result__title { margin: 0 0 6px; font-size: 1.05rem; }
.ec-result__excerpt p { margin: 0; color: #555; }

@media (max-width: 600px) {
  .ec-result { grid-template-columns: 1fr; }
  .ec-result__thumb img { width: 100%; height: auto; }
}

/* Bloquear scroll del body cuando el modal está abierto */
.ec-modal-open { overflow: hidden; }


/*-------------------Termina nuevo Sidebar------------------*/
/* Para que aparezcan las notas acomodadas en columnas */
.post-grid {
    width: 90%;
    margin: auto;
}
.row {
    display: flex;
	flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}
.col {
    width: 95%;
    margin-bottom: 20px;
}
@media(min-width:900px){
	.row{
		flex-direction:row;
	}
	.col {
    width: 32%;
    
	}
}

.post-item {
    border: 1px solid #ddd;
    padding: 15px;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.post-item h2 a{
	color: #111 !important;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
}

* Pie de página 
.footer-social-networks .dashicons {
  font-size: 24px;
  color: #fff;
}

.footer-social-networks {
  display: flex;
  gap: 20px;
  justify-content: center; /* Centra los iconos */
  padding: 20px 0;
  background-color: #333333; /* Fondo gris oscuro */
}

.footer-social-networks a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Hace el ícono blanco */
  transition: opacity 0.3s ease;
}

.footer-social-networks a:hover img {
  opacity: 0.7;
}

/* Si tienes texto, ponlo blanco */
.footer-social-networks a {
  color: #ffffff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.site-footer {
  background-color: #333333; /* Fondo gris oscuro para todo el footer */
  color: #ffffff; /* Texto blanco */
  padding: 30px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

.footer-menu .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: inline-flex;
  gap: 20px;
  justify-content: center;
}

.footer-menu .footer-menu li a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-menu .footer-menu li a:hover {
  opacity: 0.7;
}

.footer-social-networks {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 10px;
}

.footer-social-networks a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Íconos blancos */
  transition: opacity 0.3s ease;
}

.footer-social-networks a:hover img {
  opacity: 0.7;
}

.site-footer p {
  margin: 10px 0 0 0;
  color: #ccc;
  font-size: 13px;

}

/*Terminan estilos en general*/



/*Inicia sidebar-and-columns-container*/

#sidebar-and-columns-container{
	display:flex;
	flex-direction:column;
}

@media(min-width: 1250px) {
	#sidebar-and-columns-container{	
		flex-direction:row;
	}	
}

#secondary{
	width:100% !important; /*Sobreescribe el estilo del tema padre para el ancho del sidebar*/
}
/*termina sidebar-and-columns-container*/



/*Estilos para la sección de columnas*/
.column-section {
    padding: 2rem;
    background-color: #f5f5f5;
    text-align: center;
	width: 100%;
}

.column-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.column-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 260px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    text-align: left;
}

.column-card:hover {
    transform: translateY(-5px);
}

.column-card .card-image img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.author-avatar {
    text-align: center;
    margin-bottom: 0.5rem;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}




/*Terminan estilos de columnas*/


/*Nuevos estilos de columnas*/ }
.column-card { border:1px solid #eee; border-radius:12px; overflow:hidden; background:#fff; }
.column-card a { text-decoration:none; color:inherit; display:block; padding:12px; }
.column-card h3 { margin:0 0 8px; font-size:1.1rem; }
.card-image img { width:100%; height:auto; display:block; border-radius:8px; }

.columnist-badge { display:flex; align-items:center; gap:8px; margin:6px 0 10px; }
.columnist-photo { border-radius:50%; width:40px; height:40px; object-fit:cover; }
.columnist-name { font-weight:600; font-size:0.95rem; }



/*---------- Sección HERO video + imagen --------------------------*/
.media-split {
  margin: auto;
  
  padding: 0 16px;
}


	.media-split__inner {
	  display: grid;
	  grid-template-columns: 2fr 1fr; /* video más ancho que la imagen */
	  gap: 24px;
	  align-items: center;
	}


/* Ratio 16:9 para el video */
.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.ratio-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Imagen ocupa su columna */
.media-split__right img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  display: block;
  object-fit: cover;
}

/* Responsive: apila */
@media (max-width: 900px) {
  .media-split__inner {
    grid-template-columns: 1fr;
  }
}

/*---------- Termina Sección HERO video + imagen --------------------------*/

/* -------------------- Posts ----------------------------------------*/
#primary{ 
	padding: 4em 1.5em !important;
	width: unset !important;
}
@media(min-width:900px){
	#primary{ 
		padding: 4em 4em !important;
	}
}
/* --------------------Terminan estilos de Posts ----------------------------------------*/

/* ----------------- Estilos provisionales de emergencia de Swipe.js-------------------------*/
/* --- Fallback crítico para Swiper si el CSS del CDN no cargó --- */
.ec-swiper-wrap { position: relative; width: 100%; }
.ec-swiper-ratio { position: relative; width: 100%; }
.ec-swiper-ratio::before { content:''; display:block; padding-top:56.25%; } /* o tu height del shortcode */
.ec-swiper-ratio > .swiper { position: absolute; inset: 0; }

/* Lo importante: que el wrapper sea flex horizontal y oculte overflow */
.ec-swiper, 
.ec-swiper-thumbs { overflow: hidden; }

.ec-swiper .swiper-wrapper,
.ec-swiper-thumbs .swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.ec-swiper .swiper-slide,
.ec-swiper-thumbs .swiper-slide {
  flex: 0 0 100%;
  max-width: 100%;
  height: 100%;
}

/* Miniaturas: varias por fila */
.ec-swiper-thumbs .swiper-slide { flex: 0 0 auto; }

/* Imagen a contenedor */
.ec-swiper .swiper-image,
.ec-swiper-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------- Terminan  Estilos provisionales de emergencia de Swipe.js-------------------------*/


/************************************ Estilos responsivos *******************************************/
/* Basicos para tipografía/columnas en móviles */
html { -webkit-text-size-adjust: 100%; }
.entry-content, .post-content, .single .content-area { overflow-wrap: anywhere; }

/* Imágenes Gutenberg y clásicas */
.entry-content img,
.wp-block-image img,
figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Figuras con alineaciones de WP */
.wp-block-image,
figure {
  margin: 0 auto 1rem;
}

/* Videos/iframes responsivos (YouTube, etc.) */
.entry-content iframe,
.wp-block-embed__wrapper iframe,
.wp-block-video video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* Tablas y códigos que desbordan */
.entry-content table,
.wp-block-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.entry-content pre,
.wp-block-code {
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Bloques ancho completo/ancho amplio */
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.alignwide { max-width: min(1100px, 100%); margin-left: auto; margin-right: auto; }

/* Evitar que contenedores fijos rompan el viewport */
.container, .site-container, .content-area {
  max-width: 100%;
}

/* Imágenes destacadas dentro del contenido */
.single-post .post-thumbnail img,
.single .featured-media img {
  width: 100%;
  height: auto;
}

/* Menús o barras horizontales que empujan el ancho */
.site-header, .site-nav, .widget-area { overflow-x: hidden; }



/**************************** Terminan estilos responsivos **************************************/
