/*
	Theme Name: Refined Theme
	Theme URI: http://restored316designs.com/themes
	Description: A mobile responsive and HTML5 feminine WordPress theme built for the Genesis Framework by Lauren Gaige of Restored 316.
	Author: Restored 316 Designs // Lauren Gaige
	Author URI: http://www.restored316designs.com/
	Copyright: Copyright (c) 2015, Restored 316 LLC, Released 04/12/2017

	Template: genesis
	Template Version: 2.0.1

	License: GPL-2.0+
	License URI: http://www.opensource.org/licenses/gpl-license.php
*/

/* --- CONTENEDOR GENERAL --- */
.aprende-wrapper {
    padding: 2rem 1rem;
}

/* --- SECCIONES --- */
.aprende-seccion {
    margin-bottom: 4rem;
}

/* --- TÍTULO DE SECCIÓN --- */
.seccion-titulo {
font-family: "Playfair Display", serif; /* o la fuente que use tu theme */
    font-size: 2.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #333;
    margin: 4rem 0 2rem;
}

/* --- GRID DE TARJETAS --- */
.aprende-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}

/* --- TARJETA --- */
.aprende-grid article {
    flex: 1 1 calc(33.333% - 2rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #eee;
}
.aprende-tarjeta {
    flex: 1 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
    box-sizing: border-box;
    background: #fff;
    padding: 1rem;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 100%;
    /* SIN centrado */
}

/* EXTRACTO */
.tarjeta-extracto {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}


/* --- IMAGEN --- */
.tarjeta-imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.entry-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
}

.entry-content {
    flex-grow: 1;
}

.entry-title a {
    text-decoration: none;
    color: inherit;
}

/* TÍTULO */
.tarjeta-titulo {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.tarjeta-titulo a {
    font-weight: bold;
    text-transform: uppercase;
    color: #c52a5a;
    text-decoration: none;
}


/* BOTÓN */
.boton-aprende {
    display: inline-block;
    background-color: #6f8e7d;
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    align-self: center;
}

.boton-aprende:hover {
    background-color: #5c7b6a;
    color: #fff;
}

/*PLANTILLA APRENDE A TEJER*/
/* Navegación de categorías al principio */
.menu-lecciones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: flex-start;
}

.menu-lecciones a {
    text-decoration: none;
    font-weight: 300;
    background: #eee;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    color: #333;
}

.menu-lecciones a:hover {
    background: #ccc;
}

/* Cuadrícula de miniaturas */
.aprende-grid-miniaturas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
}

.aprende-grid-miniaturas .entry {
    text-align: center;
    border: none;
    padding: 0;
}

.aprende-grid-miniaturas img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* --- RESPONSIVE --- */
/* Responsive para tablet */
@media (max-width: 1024px) {
    .aprende-grid .entry {
        flex: 1 1 calc(50% - 2rem);
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .aprende-grid .entry {
        flex: 1 1 100%;
    }
}

/* ------------------------- CSS DE LAS PÁGINAS QUE MUESTRAN LOS VIDEOS DE YOUTUBE --- */

.grid-shorts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

 .card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
}

 .video-embed iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    border: none;
    max-height: 500px;
}

.grid-shorts .card-content {
    padding: 1rem;
}

.grid-shorts .entry-title {
    font-size: 1rem;
    margin: 0;
}



