/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.am-cursos-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.am-cursos-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.am-cursos-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.am-cursos-grid.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.am-curso-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.3s ease;
}

.am-curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Imagen ocupando todo el ancho de la card */
.am-curso-image {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #111827;
}

.am-curso-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Contenido interno */
.am-curso-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.am-curso-title {
  margin: 0;
  font-size: 22px !important;
  line-height: 1.2;
  color: #fff;
}

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

.am-curso-price {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #9333ea;
}

.am-curso-rating {
  margin: 0;
  color: #facc15;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

.am-curso-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

/* Botón agregar al carrito */
.am-curso-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a855f7;
  color: #fff;
  border: 1px solid #a855f7;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
}

.am-curso-buttons .button:hover {
  background: #9333ea;
  border-color: #9333ea;
  color: #fff !important;
}

/* Botón ver curso */
.am-ver-curso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a855f7;
  color: #fff !important;
  border: 1px solid #a855f7;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
  width: 100%;
}

.am-ver-curso-btn:hover {
  background: #9333ea;
  color: #fff !important;
}

@media (max-width: 1024px) {
  .am-cursos-grid.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am-cursos-grid.columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .am-cursos-grid.columns-2,
  .am-cursos-grid.columns-3,
  .am-cursos-grid.columns-4 {
    grid-template-columns: 1fr;
  }

  .am-curso-title {
    font-size: 20px;
  }

  .am-curso-buttons {
    flex-direction: column;
  }

  .am-curso-buttons .button,
  .am-ver-curso-btn {
    width: 100%;
  }
}

/* =========================
   CARRITO (WOOCOMMERCE)
========================= */

body.woocommerce-cart main {
  padding-top: 120px;
}

.woocommerce-cart table.shop_table {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.woocommerce-cart td,
.woocommerce-cart th {
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Botón checkout */
.woocommerce-cart .checkout-button {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
}

/* Cantidad */
.woocommerce-cart .quantity input {
  background: #020617;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cross-sells */
.woocommerce-cart .cross-sells ul.products li.product {
  background: #020617;
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.2s ease;
}

.woocommerce-cart .cross-sells ul.products li.product:hover {
  transform: translateY(-5px);
}

.woocommerce-cart .products li.product img {
  border-radius: 12px;
}

.woocommerce-cart .products li.product .button {
  background: #7c3aed;
  border-radius: 999px;
  color: #fff;
}

/* ========================================
   CARRITO - WOOCOMMERCE BLOCKS
======================================== */

/* Contenedor general */
body.woocommerce-cart .wc-block-cart {
  color: #fff;
}

/* Items del carrito */
body.woocommerce-cart .wc-block-cart-items__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

/* Nombre producto */
body.woocommerce-cart .wc-block-components-product-name {
  color: #fff !important;
}

/* Precio */
body.woocommerce-cart .wc-block-formatted-money-amount {
  color: #fff !important;
}

/* Inputs cantidad */
body.woocommerce-cart .wc-block-components-quantity-selector input {
  background: #020617 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botones + / - */
body.woocommerce-cart .wc-block-components-quantity-selector button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Caja total */
body.woocommerce-cart .wc-block-cart__totals {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

/* Totales */
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value {
  color: #fff !important;
}

/* Botón checkout */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 600;
  min-height: 48px;
}

/* Hover botón */
body.woocommerce-cart .wc-block-components-button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Cross-sells (recomendados) */
body.woocommerce-cart .wc-block-components-product-card {
  background: #020617;
  border-radius: 16px;
  padding: 16px;
}

/* ========================================
   CHECKOUT - WOOCOMMERCE BLOCKS
======================================== */
.wc-blocks-components-select .wc-blocks-components-select__select{
  margin-top: 12px;
}

#radio-control-wc-payment-method-options-bacs__content div{
  padding: 16px!important;
}
.wc-block-components-address-card address .wc-block-components-address-card__address-section--secondary{
  color: #94A3B8!important;
}

.am-cursos-toggle-grid .am-curso-card-toggle {
  position: relative;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before{
  background: #9333ea!important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{
  background: #7b2cff !important;
}

#checkbox-control-0{
  border: 1px solid #9333ea !important;
}

.wc-block-components-radio-control__input{
  border: 1px solid #9333ea !important;
}
.wc-block-components-textarea::placeholder {
  color: #94A3B8!important; /* el color que quieras */
  opacity: 1; /* importante para que se vea bien en algunos navegadores */
}

.am-curso-toggle-switch {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  width: fit-content;
}

.am-toggle-btn {
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 600;
  transition: all 0.25s ease;
}

.am-toggle-btn.is-active {
  background: linear-gradient(90deg, #7b2cff 0%, #c15cff 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(123, 44, 255, 0.35);
}

.am-curso-price-dynamic {
  min-height: 28px;
}

.am-curso-price-dynamic .amount,
.am-curso-price-dynamic {
  font-weight: 700;
}

@media (max-width: 767px) {
  .am-curso-toggle-switch {
    width: 100%;
    justify-content: center;
  }

  .am-toggle-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
.am-curso-toggle-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  font-weight: 500;
}

.am-curso-toggle-switch {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.am-curso-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  flex-wrap: wrap; /* importante para mobile */
}

.am-curso-toggle-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
}

.am-curso-toggle-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .am-curso-toggle-row {
    justify-content: space-between;
  }

  .am-curso-toggle-switch {
    width: 100%;
    justify-content: center;
  }
}

.am-toggle-compra-box {
  width: 100%;
}

.am-toggle-compra-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.am-toggle-compra-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  white-space: nowrap;
}

.am-toggle-compra-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.am-toggle-compra-btn {
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.am-toggle-compra-btn.is-active {
  background: linear-gradient(90deg, #7b2cff 0%, #c15cff 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(123, 44, 255, 0.35);
}

.am-toggle-compra-price {
  font-size: 32px;
  font-weight: 700;
  color: #b14cff;
  margin-bottom: 18px;
  transition: opacity 0.2s ease;
}

.am-toggle-compra-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .am-toggle-compra-row {
    align-items: flex-start;
  }

  .am-toggle-compra-switch {
    width: 100%;
    justify-content: center;
  }

  .am-toggle-compra-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ===== TOGGLE COMPRA EN PÁGINA DE CURSO ===== */

.am-toggle-compra-box {
  width: 100%;
}

.am-toggle-compra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.am-toggle-compra-label {
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

.am-toggle-compra-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  width: auto;
  margin-left: auto;
}

.am-toggle-compra-btn {
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 7px 14px;
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.am-toggle-compra-btn.is-active {
  background: linear-gradient(90deg, #7b2cff 0%, #c15cff 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(123, 44, 255, 0.35);
}

.am-toggle-compra-price {
  font-size: 18px;
  font-weight: 700;
  color: #b14cff;
  margin-bottom: 14px;
  transition: opacity 0.2s ease;
}

.am-toggle-compra-link.elementor-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.am-toggle-compra-link.elementor-button .elementor-button-content-wrapper {
  width: 100%;
  justify-content: center;
}

/* Mobile */
@media (max-width: 767px) {
  .am-toggle-compra-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .am-toggle-compra-switch {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .am-toggle-compra-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .am-toggle-compra-link.elementor-button {
    width: 100%;
  }
}

.am-thank-you-box {
	max-width: 820px;
	margin: 0 auto;
	padding: 32px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
}

.am-thank-you-title {
	margin: 0 0 24px;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 700;
	color: #fff;
	text-align: center;
}

.am-thank-you-order-meta {
	margin-bottom: 24px;
	padding: 20px 24px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.am-thank-you-line {
	margin: 0 0 10px;
	color: #d7d7e0;
	font-size: 16px;
}

.am-thank-you-line:last-child {
	margin-bottom: 0;
}

.am-thank-you-card {
	margin-bottom: 20px;
	padding: 24px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(167, 95, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
	border: 1px solid rgba(167, 95, 255, 0.18);
}

.am-thank-you-card-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 600;
	color: #fff;
}

.am-thank-you-text {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: #d7d7e0;
}

.am-thank-you-actions {
	margin-top: 28px;
	text-align: center;
}

.am-thank-you-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	background: linear-gradient(90deg, #a855f7 0%, #d946ef 100%);
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.am-thank-you-button:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

@media (max-width: 767px) {
	.am-thank-you-box {
		padding: 22px;
	}

	.am-thank-you-title {
		font-size: 32px;
	}

	.am-thank-you-card {
		padding: 18px;
	}
}

/*Mis cursos*/
.eb-my-courses-h2{
  color: #94a3b8 !important;
}

.eb-course-card-title.eb-course-title, .eb-course-card-title{
  color: #7b2cff !important;
}
.eb-course-action-btn-start{
  background: #9333ea!important;
  border-radius: 30px!important;
}

@media (max-width: 767px) {
  .woocommerce-cart .wp-block-woocommerce-cart.alignwide {
    margin-inline: 0 !important;
  }
}