/*
Theme Name: Luna Di Carta
Author: Yanet
Version: 1.0
*/

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#f5f5f5;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

.hero{
    background:linear-gradient(135deg,#7b2ff7,#f107a3);
    color:white;
    padding:120px 20px;
    text-align:center;
}

.hero h1{
    font-size:64px;
    margin-bottom:20px;
}

.hero p{
    font-size:22px;
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
}

.hero-buttons a{
    text-decoration:none;
    padding:15px 30px;
    border-radius:10px;
    font-weight:bold;
}

.btn-primary{
    background:white;
    color:#7b2ff7;
}

.btn-secondary{
    border:2px solid white;
    color:white;
}

.featured-books{
    padding:80px 20px;
}

.featured-books h2{
    text-align:center;
    font-size:42px;
    margin-bottom:10px;
}

.section-text{
    text-align:center;
    color:#666;
    margin-bottom:50px;
}

.books-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.book-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.book-card img{
    width:100%;
    height:350px;
    object-fit:cover;
}

.book-info{
    padding:20px;
}

.price{
    color:#f107a3;
    font-size:22px;
    font-weight:bold;
}


.site-header{
    background:white;
    padding:18px 40px;
    box-shadow:0 2px 12px rgba(0,0,0,0.06);
    position:sticky;
    top:0;
    z-index:1000;
}

.admin-bar .site-header{
    top:32px;
}

.header-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.logo{
    font-size:32px;
    font-weight:bold;
    color:#1e1e1e;
    text-decoration:none;
    font-family:Georgia,serif;
}

.main-menu{
    display:flex;
    gap:35px;
}

.main-menu a{
    text-decoration:none;
    color:#333;
    font-size:18px;
    font-weight:500;
}

.header-icons{
    display:flex;
    gap:18px;
}

.header-icons a{
    text-decoration:none;
    font-size:24px;
}

@media(max-width:768px){
    .header-container{
        flex-direction:column;
    }

    .main-menu{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }
}

.single-book{
    padding:80px 20px;
    background:#f5f5f5;
}

.single-book-container{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:60px;
    align-items:start;
}

.book-image{
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.book-image img{
    width:100%;
    height:auto;
    border-radius:12px;
}

.book-details{
    background:white;
    padding:45px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.book-details h1{
    font-size:46px;
    margin:0 0 20px;
}

.single-price{
    color:#f107a3;
    font-size:32px;
    font-weight:bold;
    margin-bottom:25px;
}

.single-description{
    font-size:18px;
    color:#555;
    line-height:1.7;
    margin-bottom:30px;
}

.single-cart button,
.single-cart .button{
    background:#7b2ff7 !important;
    color:white !important;
    border:none !important;
    padding:15px 30px !important;
    border-radius:10px !important;
    font-weight:bold !important;
    cursor:pointer;
}

.quantity input{
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
    margin-right:10px;
}

@media(max-width:768px){
    .single-book-container{
        grid-template-columns:1fr;
    }

    .book-details h1{
        font-size:34px;
    }
}

.book-details > form.cart{
    display:none !important;
}
/* ==========================
   CARRITO WOOCOMMERCE
========================== */

.woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.woocommerce-cart-form,
.cart-collaterals {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.woocommerce table.shop_table {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.woocommerce table.shop_table th {
    background: #f7f7f7;
    padding: 15px;
}

.woocommerce table.shop_table td {
    padding: 15px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button {
    background: #8c5cc4 !important;
    color: white !important;
    border-radius: 8px;
    padding: 12px 20px;
    border: none;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: #7348a6 !important;
}

.woocommerce-cart .cart_totals {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.woocommerce-cart h2 {
    margin-bottom: 20px;
}

.woocommerce img {
    border-radius: 10px;
}
.cart-count {
    background: #ff2ea6;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}
/* ==========================================
   CARRITO WOOCOMMERCE
========================================== */

/* Campo de cupón más ancho */
.coupon #coupon_code {
    width: 180px !important;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form input {
    width: 150px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

/* ===== INICIO MEJORADO ===== */

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    color: white;
    padding: 90px 20px;
}

.hero-content {
    max-width: 900px;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 720px;
    margin: 0 auto 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: #7b2ff7;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.featured-books {
    padding: 80px 20px;
    background: #f5f5f5;
}

.featured-books h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.book-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.book-card:hover {
    transform: translateY(-6px);
}

.book-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.book-info {
    padding: 20px;
    text-align: center;
}

.book-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.book-info .price {
    color: #e6009c;
    font-size: 20px;
    font-weight: 800;
}

.buy-btn {
    display: inline-block;
    margin-top: 12px;
    background: #8e57d1;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.home-benefits {
    padding: 70px 20px;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: #fafafa;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid #eee;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 40px;
    }

    .books-grid,
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .books-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CORRECCIÓN VISUAL INICIO ===== */

.site-header {
    position: sticky;
    top: 32px;
    z-index: 999;
    background: white;
}

.featured-books {
    padding-top: 110px !important;
}

.book-image img {
    height: 300px !important;
    object-fit: contain !important;
    background: #f8f8f8;
    padding: 14px;
}

.book-card {
    min-height: 500px;
}

/* ===== LOGO ===== */

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.site-title {
    font-size: 38px;
    font-weight: 700;
    color: #2d2d2d;
    font-family: Georgia, serif;
}

/* ===== ENCABEZADO ELEGANTE ===== */

.site-header {
    padding: 12px 0 !important;
    box-shadow: 0 4px 18px rgba(80, 55, 120, 0.08);
}

.header-container {
    align-items: center;
}

.site-logo {
    width: 54px !important;
    height: 54px !important;
}

.site-title {
    font-size: 36px !important;
    color: #2f2438 !important;
}

.main-menu a {
    font-weight: 500;
    color: #2f2438;
}

.main-menu a:hover {
    color: #8e6bc5;
}

.search-form input {
    border: 1px solid #e2d8ee !important;
    background: #fbf8ff;
}

.cart-count {
    background: #e83ea9 !important;
}

/* ===== HERO LUNA DI CARTA - SUAVE ===== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px !important;
    background: linear-gradient(135deg, #fbf7ff, #eadcf8, #d3bdea) !important;
    color: #2f2438 !important;
}

.hero::before {
    content: "";
    position: absolute;
    right: 8%;
    top: 50%;

    width: 380px;
    height: 380px;

    transform: translateY(-50%);

    background-image: url("https://206.189.197.55/wp-content/uploads/2026/05/ChatGPT-Image-14-may-2026-08_34_21-a.m.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0.10;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    background: rgba(142, 107, 197, 0.16) !important;
    color: #7b5ab4 !important;
}

.hero h1 {
    color: #2f2438 !important;
}

.hero p {
    color: #5f536a !important;
}

.btn-primary {
    background: #8e6bc5 !important;
    color: white !important;
}

.btn-primary:hover {
    background: #7753b4 !important;
}

.btn-secondary {
    border: 2px solid #8e6bc5 !important;
    color: #8e6bc5 !important;
    background: transparent !important;
}

.btn-secondary:hover {
    background: #8e6bc5 !important;
    color: white !important;
}
/* ===== AJUSTES FINALES DEL INICIO ===== */

/* Reduce la altura del banner principal */
.hero {
    min-height: 420px !important;
    padding: 70px 20px !important;
}

/* Efecto elegante al pasar el mouse sobre los libros */
.book-card {
    transition: all 0.3s ease !important;
}

.book-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(126, 87, 194, 0.20) !important;
}

/* Mejora las tarjetas inferiores */
.benefit-card {
    transition: all 0.3s ease !important;
}

.benefit-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 30px rgba(126, 87, 194, 0.12) !important;
}

/* Íconos arriba de las tarjetas */
.benefit-card:nth-child(1)::before {
    content: "📚";
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
}

.benefit-card:nth-child(2)::before {
    content: "🛒";
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
}

.benefit-card:nth-child(3)::before {
    content: "💜";
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
}

/* ===== AJUSTE ESPACIO ENTRE HERO Y LIBROS ===== */

.hero {
    min-height: 480px !important;
    padding: 60px 20px !important;
}

.featured-books {
    padding-top: 60px !important;
}

/* ===== TARJETAS DE LIBROS MEJORADAS ===== */

.book-card {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
    transition: all .3s ease !important;
}

.book-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(142,91,209,.25) !important;
}

.book-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

.book-info{
    padding:20px;
    text-align:center;
    min-height:180px;
}
.book-card h3{
    font-size:18px;
    line-height:1.4;
    min-height:55px;
    margin-bottom:15px;
}
.price{
    font-size:22px;
    font-weight:700;
    color:#d61ea8;
    margin:15px 0;
}

/* ===== HEADER MEJORADO ===== */

.site-header {
    position: sticky !important;
    top: 32px !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(80, 55, 120, 0.10) !important;
}

.header-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.site-logo {
    width: 48px !important;
    height: 48px !important;
}

.site-title {
    font-size: 34px !important;
    color: #2f2438 !important;
}

.main-menu a {
    color: #2f2438 !important;
    text-decoration: none !important;
    transition: 0.3s ease !important;
}

.main-menu a:hover {
    color: #8e6bc5 !important;
}

.header-icons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* ===== AJUSTES DE ESPACIADO Y TARJETAS ===== */

/* Reduce espacio grande del banner principal */
.hero {
    min-height: 430px !important;
    padding: 55px 20px !important;
}

/* Acerca y ordena la sección de libros destacados */
.featured-books {
    padding-top: 50px !important;
    padding-bottom: 60px !important;
}

/* Mejora las tarjetas de libros */
.book-card {
    min-height: auto !important;
    padding-bottom: 15px !important;
    box-shadow: 0 12px 30px rgba(142, 107, 197, 0.15) !important;
}

/* Ajusta la imagen para que no haga la tarjeta tan alta */
.book-card img {
    height: 250px !important;
}

/* Agranda un poco los iconos de beneficios */
.benefit-card::before {
    font-size: 44px !important;
    margin-bottom: 18px !important;
}

/* ===== CORRECCIONES LIBROS DESTACADOS ===== */

/* Alinea todos los títulos para que precios y botones queden parejos */
.book-info h3 {
    min-height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 10px !important;
}

/* Reduce un poco el espacio inferior de las tarjetas */
.book-card {
    padding-bottom: 15px !important;
}

/* Hace más elegantes las portadas */
.book-card img {
    border-radius: 12px !important;
    transition: 0.3s ease !important;
}

/* Efecto suave al pasar el mouse sobre la portada */
.book-card:hover img {
    transform: scale(1.03) !important;
}

/* Hace un poco más visible el logo del hero */
.hero::before {
    opacity: 0.20 !important;
}

/* ===== ALINEAR TARJETAS DE LIBROS CORRECTAMENTE ===== */

.book-card {
    display: flex !important;
    flex-direction: column !important;
}

.book-image {
    display: block !important;
}

.book-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

.book-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 24px 20px !important;
}

.book-info h3 {
    min-height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
}

.book-info .price {
    margin: 0 0 18px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #e6009c !important;
}

.book-info .buy-btn {
    margin-top: auto !important;
}
/* ===== FOOTER LUNA DI CARTA ===== */

.site-footer {
    background: #2f2438 !important;
    color: #ffffff !important;
    padding: 50px 20px 20px !important;
    margin-top: 80px !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.footer-brand img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    display: block !important;
    margin-bottom: 12px !important;
}

.footer-brand h3,
.footer-section h4 {
    color: #ffffff !important;
    margin-bottom: 15px !important;
}

.footer-brand p,
.footer-section p {
    color: #e8dcf7 !important;
    margin-bottom: 8px !important;
}

.footer-section a {
    display: block !important;
    color: #e8dcf7 !important;
    text-decoration: none !important;
    margin-bottom: 8px !important;
}

.footer-section a:hover {
    color: #c9a9e9 !important;
}

.footer-bottom {
    max-width: 1200px !important;
    margin: 30px auto 0 !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    text-align: center !important;
}

.footer-bottom p {
    color: #e8dcf7 !important;
    margin: 0 !important;
}

/* ===== QUITAR FRANJAS BLANCAS CORRIDAS EN TARJETAS ===== */

.book-card::before,
.book-card::after,
.book-image::before,
.book-image::after {
    display: none !important;
    content: none !important;
}

/* ===== CORREGIR FOOTER EN CATÁLOGO / WOOCOMMERCE ===== */

.site-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Evita espacio extraño antes del footer */
.woocommerce-page .site-footer {
    margin-top: 80px !important;
}

/* Corrige el ancho interno del contenido del footer */
.footer-container,
.footer-bottom {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== MEJORAR PÁGINAS INTERNAS ===== */

.page .site-main,
.page main,
.page-content {
    min-height: 260px !important;
    padding: 50px 20px 70px !important;
}

.page h1 {
    font-size: 36px !important;
    margin-bottom: 25px !important;
    color: #2f2438 !important;
}

.page p {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

/* Ajustar footer para que no quede demasiado separado */
.site-footer {
    margin-top: 0 !important;
}

/* ===== MEJORAR PÁGINAS INTERNAS ===== */

.page .site-main,
.page main,
.page-content {
    min-height: 260px !important;
    padding: 50px 20px 70px !important;
}

.page h1 {
    font-size: 36px !important;
    margin-bottom: 25px !important;
    color: #2f2438 !important;
}

.page p {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

/* Ajustar footer para que no quede demasiado separado */
.site-footer {
    margin-top: 0 !important;
}

/* ===== DISEÑO PÁGINA QUIÉNES SOMOS ===== */

.page-id-46 .site-main,
.page-id-46 main,
.page-id-46 .page-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 70px 30px !important;
}

.page-id-46 h1 {
    font-size: 42px !important;
    color: #2f2438 !important;
    margin-bottom: 25px !important;
}

/* SOLO EL CONTENIDO DE QUIÉNES SOMOS */

.page-id-46 .entry-content p {
    background: #ffffff !important;
    padding: 26px 30px !important;
    border-radius: 18px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 10px 30px rgba(142,107,197,0.12) !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
}


/* ===== QUIÉNES SOMOS MEJORADO ===== */

.about-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 25px;
}

.about-card {
    background: linear-gradient(135deg, #ffffff, #f4ecff);
    border-radius: 28px;
    padding: 45px;
    box-shadow: 0 18px 45px rgba(142, 107, 197, 0.16);
}

.about-label {
    display: inline-block;
    background: #eadcf8;
    color: #8e5bd1;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-card h1 {
    margin-bottom: 25px;
    color: #2f2438;
}

.about-card p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.about-values div {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(142, 107, 197, 0.12);
}

.about-values span {
    font-size: 34px;
}

.about-values h3 {
    margin: 15px 0 10px;
    color: #2f2438;
}

