/*
 Theme Name:   Amandalite Child 2 para Cristina Granados
 Theme URI:    https://twitter.com/draxus
 Description:  Professional design for custom crochet-amigurumi dolls.
 Author:       Draxus ♥
 Author URI:   https://twitter.com/draxus
 Template:     amandalite
 Version:      3.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  amandalitechild2
*/

/* Root Variables for Consistent Theming */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --soft-accent: #f8e8e7;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Enhanced Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Professional Button Styles */
.wp-block-button__link,
.button,
.btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.wp-block-button__link:hover,
.button:hover,
.btn:hover {
    background: #d63031;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.wp-block-buttons{
    justify-content: center;
}

/* Enhanced Sidebar */
.sidebar .inner-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.sidebar .inner-sidebar > * {
    flex: 1 0 300px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

/* Professional Cards and Sections */
.professional-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Product Display */
.woocommerce .woocommerce-pagination {
    margin-bottom: 30px;
}

.woocommerce #content div.product div.images, 
.woocommerce div.product div.images, 
.woocommerce-page #content div.product div.images, 
.woocommerce-page div.product div.images { 
    width: 30%; 
}

.woocommerce #content div.product div.summary, 
.woocommerce div.product div.summary, 
.woocommerce-page #content div.product div.summary, 
.woocommerce-page div.product div.summary { 
    width: 68%; 
}

.woocommerce .producttype {
    margin-top: -6px;
    color: var(--light-text);
    font-style: italic;
}


@media screen and (max-width: 768px){
.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images{ width:100%; }
.woocommerce #content div.product div.summary, .woocommerce div.product div.summary, .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary{ width:100%; }
.woocommerce .producttype{
    margin-top: -10px;
}

}

.related.products{
	clear:both;
}

.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1, .woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2{
	flex:none;
	max-width:none;
}

.woocommerce form .form-row{
	display:block;
}

.exif-info{
margin-top:20px;
}

.exif-info > *{
display:block;
}
.exif-info > *:before{
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "";
    margin-right: 8px;
    min-width:16px;
    display: inline-block;
}
.exif-info > .exif-aperture:before{
    content: "\f111";
}
.exif-info > .exif-camera:before{
    content: "\f030";
}
.exif-info > .exif-focal_length:before{
    content: "\f1e5";
}
.exif-info > .exif-iso:before{
    content: "\f186";
}
.exif-info > .exif-shutter_speed:before{
    content: "\f253";
}
.exif-info > .exif-flash:before{
    content: "\f0e7";
}

/* Cristina Granados brand chrome refresh */
#amandalite-header.header {
    background: #fffdfb;
    border-bottom: 1px solid rgba(234, 176, 146, 0.22);
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(39, 36, 63, 0.04);
    position: relative;
    z-index: 20;
}

body.single .header,
body.archive .header,
body.search-results .header,
body.page .header {
    border-bottom: 1px solid rgba(234, 176, 146, 0.22);
    margin-bottom: 52px;
}

body.home .header,
body.front-page .header {
    margin-bottom: 0;
}

#amandalite-header .header-maintop {
    min-height: 78px;
    padding: 0 clamp(20px, 5vw, 64px);
    background: #fffdfb;
    gap: 24px;
}

#amandalite-header .amandalite-logo {
    flex: 0 0 auto;
    padding: 12px 0;
}

#amandalite-header .amandalite-logo img {
    max-width: 96px;
    height: auto;
}

#amandalite-header .nav-main {
    flex: 1 1 auto;
    text-align: center;
}

#amandalite-header div.amandalite-main-menu > ul > li > a,
#amandalite-header ul.amandalite-main-menu > li > a {
    color: #27243f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 28px 13px;
    text-transform: none;
}

#amandalite-header div.amandalite-main-menu > ul > li > a:hover,
#amandalite-header ul.amandalite-main-menu > li > a:hover,
#amandalite-header .amandalite-main-menu a:focus {
    color: #d66f55;
    text-decoration: none;
}

.cg-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
}

.cg-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #d66f55;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(214, 111, 85, 0.2);
}

.cg-header-cta:hover,
.cg-header-cta:focus {
    background: #bd5d47;
    color: #fff;
    text-decoration: none;
}

.cg-header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #d66f55;
    text-decoration: none;
}

.cg-header-cart:hover,
.cg-header-cart:focus {
    color: #bd5d47;
    text-decoration: none;
}

#amandalite-header .menu-touch {
    flex: 0 0 auto;
}

#amandalite-footer {
    background: #171719;
    color: rgba(255, 255, 255, 0.76);
}

#amandalite-footer .footer-instagram-cta {
    padding: 44px 20px !important;
    background: linear-gradient(135deg, #ed6948 0%, #ea4e75 52%, #d84cbd 100%) !important;
}

#amandalite-footer .instagram-cta-inner {
    max-width: 1120px;
    justify-content: space-between;
}

#amandalite-footer .instagram-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    animation: none;
}

#amandalite-footer .instagram-icon-wrapper .fab.fa-instagram {
    font-size: 38px !important;
}

#amandalite-footer .instagram-cta-content {
    max-width: 460px;
}

#amandalite-footer .instagram-cta-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 38px) !important;
}

#amandalite-footer .instagram-cta-text {
    font-size: 16px !important;
}

#amandalite-footer .instagram-cta-button {
    padding: 10px 20px !important;
    font-size: 14px !important;
}

#amandalite-footer .instagram-cta-gallery {
    display: grid;
    grid-template-columns: repeat(3, 128px);
    gap: 18px;
}

#amandalite-footer .instagram-cta-gallery img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.58);
    border-radius: 8px;
    box-shadow: 0 14px 26px rgba(38, 32, 54, 0.24);
}

#amandalite-footer .footer-navigation {
    padding: 54px 0 36px;
    background: #171719;
}

#amandalite-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
}

#amandalite-footer .footer-heading {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

#amandalite-footer .footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

#amandalite-footer .footer-links li {
    margin-bottom: 9px;
}

#amandalite-footer .footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    text-decoration: none;
}

#amandalite-footer .footer-links a:hover,
#amandalite-footer .footer-links a:focus {
    color: #eab092;
}

#amandalite-footer .footer-brand {
    text-align: right;
}

#amandalite-footer .footer-brand img {
    width: 128px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

#amandalite-footer .footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.6;
}

#amandalite-footer .footer-copyright {
    padding: 0 0 28px;
    background: #171719;
    color: rgba(255, 255, 255, 0.44);
}

@media screen and (max-width: 991px) {
    #amandalite-header .header-maintop {
        min-height: 68px;
    }

    .cg-header-actions {
        margin-left: auto;
    }

    .cg-header-cart {
        display: none;
    }

    #amandalite-footer .instagram-cta-gallery {
        grid-template-columns: repeat(3, minmax(88px, 1fr));
        width: 100%;
        max-width: 430px;
    }

    #amandalite-footer .instagram-cta-gallery img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    #amandalite-footer .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #amandalite-footer .footer-brand {
        text-align: left;
    }
}

@media screen and (max-width: 575px) {
    #amandalite-header .header-maintop {
        gap: 12px;
        padding: 0 16px;
    }

    #amandalite-header .amandalite-logo img {
        max-width: 78px;
    }

    .cg-header-cta {
        min-height: 36px;
        padding: 10px 14px;
        font-size: 12px;
    }

    #amandalite-footer .instagram-cta-gallery {
        gap: 10px;
    }

    #amandalite-footer .footer-columns {
        grid-template-columns: 1fr;
    }
}
.exif-info > .exif-exposure_bias:before{
    content: "\f185";
}

.header-search{
    text-align:right;
}

.header-search > a {
    margin-left:8px;
    float:none;
}

/* ==========================================================================
   FOOTER NAVIGATION STYLES
   ========================================================================== */

#amandalite-footer .footer-navigation {
    background: #1a1a1a;
    padding: 50px 20px 30px;
    border-top: 1px solid #333;
}

#amandalite-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

#amandalite-footer .footer-column {
    display: flex;
    flex-direction: column;
}

#amandalite-footer .footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ff9a76;
    padding-bottom: 10px;
}

#amandalite-footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#amandalite-footer .footer-links li {
    margin: 0;
}

#amandalite-footer .footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

#amandalite-footer .footer-links a:hover {
    color: #ff9a76;
    transform: translateX(5px);
}

#amandalite-footer .footer-copyright {
    background: #0d0d0d;
    padding: 20px;
    border-top: 1px solid #333;
}

#amandalite-footer .footer-copyright .copyright {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    #amandalite-footer .footer-navigation {
        padding: 40px 20px 20px;
    }
    
    #amandalite-footer .footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    #amandalite-footer .footer-column {
        text-align: left;
    }
    
    #amandalite-footer .footer-heading {
        font-size: 1rem;
    }
    
    #amandalite-footer .footer-links a:hover {
        transform: translateX(3px);
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    #amandalite-footer .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    #amandalite-footer .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

.pswp__caption {
  z-index: -1;
}


/* CSS below is to make WooCommerce shopping cart responsive */

@media screen and (max-width: 600px) {
  .woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
    width: 100%;
    float: none;
  }
}

/* CSS below is to make larger the search and cart buttons */
.fa-search, .fa-shopping-cart {
    font-size: x-large;
    margin-right: 8px;
}

/* Change size of logo - always use smaller size */
.amandalite-logo img {
    max-width: 80px !important;
}

/* Override parent theme mobile logo size and alignment */
@media (max-width: 767.98px) {
    .amandalite-logo {
        text-align: left !important;
        padding: 20px 15px !important;
    }
    .amandalite-logo img {
        max-width: 80px !important;
    }
}

/* Enlace ver carrito tras añadir un producto */
.woocommerce a.added_to_cart {
    padding-left: .5em;
}

#customer_details {
    display: flex;
}

/* ==========================================================================
   ENHANCED RELATED PRODUCTS AND WOOCOMMERCE STYLING
   ========================================================================== */

/* Related Products Section */
.related.products {
    clear: both;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    display: block !important;
}

.related.products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.related.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* WooCommerce Product Grid - Enhanced Specificity */
.woocommerce ul.products,
.woocommerce ul.products.columns-4,
.wc-block-grid__products,
body.woocommerce ul.products,
body.woocommerce-page ul.products,
.woocommerce-page ul.products {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 25px !important;
    justify-content: center !important;
    width: 100% !important;
    grid-auto-rows: 1fr !important;
    box-sizing: border-box !important;
}

.wc-block-grid__products li,
.woocommerce ul.products li.product {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    width: 100% !important;
    position: relative;
    padding: 0;
    margin: 0;
}

.wc-block-grid__products li:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* WooCommerce Product Link Container */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Image Container */
.wc-block-grid__product-image,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
}

.wc-block-grid__product-image img,
.woocommerce ul.products li.product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.wc-block-grid__products li:hover .wc-block-grid__product-image img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Product Content */
.wc-block-grid__product-title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 20px 25px 15px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    flex-grow: 1;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
}

.wc-block-grid__product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wc-block-grid__product-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    padding: 10px 25px 20px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: left;
}

.woocommerce ul.products li.product .price del {
    color: var(--light-text);
    font-size: 0.9rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--accent-color);
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin: 0 25px 25px;
    padding: 15px 20px;
    background: var(--accent-color);
    color: white !important;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    width: calc(100% - 50px);
    box-sizing: border-box;
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Product Badge/Sale */
.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Tablet Responsiveness */
@media screen and (max-width: 1024px) {
    .wc-block-grid__products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
        gap: 20px !important;
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .related.products {
        margin-top: 40px;
        padding: 25px 15px;
    }
    
    .wc-block-grid__products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 15px !important;
    }
    
    .wc-block-grid__products li,
    .woocommerce ul.products li.product {
        min-height: 320px;
    }
    
    .wc-block-grid__product-image,
    .woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
        height: 180px;
    }
    
    .related.products h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .wc-block-grid__product-title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem;
        padding: 15px 12px 10px;
        min-height: auto;
    }
    
    .woocommerce ul.products li.product .price {
        padding: 8px 12px 12px;
        font-size: 1rem;
    }
    
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button {
        margin: 0 12px 12px;
        padding: 10px 12px;
        font-size: 0.85rem;
        width: calc(100% - 24px);
    }
}

/* Small Mobile - Single Column */
@media screen and (max-width: 480px) {
    .related.products {
        padding: 20px 10px;
    }
    
    .wc-block-grid__products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .wc-block-grid__products li,
    .woocommerce ul.products li.product {
        min-height: 280px;
    }
    
    .wc-block-grid__product-image,
    .woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
        height: 150px;
    }
    
    .related.products h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .wc-block-grid__product-title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem;
        padding: 12px 10px 8px;
    }
    
    .woocommerce ul.products li.product .price {
        padding: 6px 10px 10px;
        font-size: 0.95rem;
    }
    
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button {
        margin: 0 10px 10px;
        padding: 8px 10px;
        font-size: 0.8rem;
        width: calc(100% - 20px);
    }
}

/* Extra Small Mobile - Force 2 Columns */
@media screen and (max-width: 360px) {
    .wc-block-grid__products,
    .woocommerce ul.products {
        gap: 10px !important;
    }
    
    .wc-block-grid__products li,
    .woocommerce ul.products li.product {
        min-height: 240px;
    }
    
    .wc-block-grid__product-image,
    .woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
        height: 130px;
    }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
  display: none;
}

#primary::after {
    content: "";
    display: table;
    clear: both;
}

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, var(--soft-accent) 0%, #fff 100%);
    padding: 60px 0;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Professional Section Styling */
.content-section {
    padding: 50px 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Enhanced Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Professional Feature Boxes */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-box i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Enhanced Testimonials */
.testimonial {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    position: relative;
    box-shadow: var(--shadow-light);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Enhanced Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 30px 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Enhanced Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-card p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Enhanced WooCommerce Integration */
.woocommerce .product {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.woocommerce .product:hover {
    box-shadow: var(--shadow-medium);
}

.woocommerce .product .woocommerce-loop-product__title {
    color: var(--primary-color);
    font-weight: 600;
}

.woocommerce .product .price {
    color: var(--accent-color);
    font-weight: 600;
}

.woocommerce .button {
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.woocommerce .button:hover {
    background: #d63031;
    transform: translateY(-2px);
}

/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .feature-box {
        padding: 20px 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .professional-card {
        padding: 20px;
    }
    
    .sidebar .inner-sidebar > * {
        padding: 15px;
    }
}

/* Enhanced Header Styling */
.header {
    background: white;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 100;
}

.header-maintop {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

/* Enhanced Footer */
.footer-social {
    background: var(--primary-color);
    color: white;
}

.footer-social .social-network a {
    color: white;
    transition: var(--transition);
}

.footer-social .social-network a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Professional Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Typography Scale */
.text-large {
    font-size: 1.2rem;
    line-height: 1.7;
}

.text-small {
    font-size: 0.9rem;
    color: var(--light-text);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

.text-primary {
    color: var(--primary-color);
}

/* Professional Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 50px; }

/* ==========================================================================
   LIGHTBOX AND INTERACTIVE FEATURES
   ========================================================================== */

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Header always maintains consistent appearance */

/* Loading States */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced hover effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Professional scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d63031;
}

/* Mobile responsiveness for interactive elements */
@media screen and (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
    
    /* Removed sticky header mobile styles */
}


/* Hide modal menus until JavaScript initializes them */
.cover-modal {
    display: none;
}

/* ==========================================================================
   LINKTREE-STYLE INSTAGRAM LANDING PAGE
   ========================================================================== */

/* Hide header navigation on Instagram landing page */
.instagram-landing-page #amandalite-header {
  display: none !important;
}

/* Hide footer Instagram CTA on Instagram landing page */
.instagram-landing-page .footer-instagram-cta {
  display: none !important;
}

/* Hide footer navigation links on Instagram landing page */
.instagram-landing-page #amandalite-footer nav,
.instagram-landing-page .footer-copyright nav {
  display: none !important;
}

/* Adjust body for cleaner layout */
.instagram-landing-page #amandalite-primary {
  padding-top: 0 !important;
}

/* LinkTree-style container */
.cg-linktree-style {
  min-height: 100vh;
  background: linear-gradient(135deg, #fef9f3 0%, #fef5eb 100%);
  padding: 40px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-linktree-style .cg-landing-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.cg-linktree-style .cg-landing-content {
  text-align: center;
}

/* Profile section */
.cg-linktree-style .cg-landing-content > p:first-of-type,
.cg-linktree-style .cg-landing-content > h1 {
  margin-bottom: 12px;
}

.cg-linktree-style .cg-landing-content > p:first-of-type {
  font-size: 20px;
  font-weight: 600;
  color: #2d2d2d;
  margin-top: 0;
}

.cg-linktree-style .cg-landing-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.cg-linktree-style .cg-landing-content > p:nth-of-type(2) {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Navigation links (main CTAs) */
.cg-linktree-style nav {
  margin: 0 0 32px 0;
}

.cg-linktree-style nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-height: 70px;
}

.cg-linktree-style nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #ff9a76;
  background: #fffbf8;
}

.cg-linktree-style nav a:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Icon styling */
.cg-linktree-style nav a img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Text content in links */
.cg-linktree-style nav a > span,
.cg-linktree-style nav a > strong {
  display: block;
  text-align: left;
  flex: 1;
}

.cg-linktree-style nav a > strong,
.cg-linktree-style nav a > span:first-of-type {
  font-size: 18px;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cg-linktree-style nav a > span:last-of-type {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  line-height: 1.4;
}

/* Trust badges section */
.cg-linktree-style .cg-landing-content > p:has(img[alt*="📦"]),
.cg-linktree-style .cg-landing-content > p:has(img[alt*="💳"]),
.cg-linktree-style .cg-landing-content > p:has(img[alt*="🧶"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  margin: 8px 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  border: 1px solid #f0f0f0;
}

/* Last paragraph (CTA text) */
.cg-linktree-style .cg-landing-content > p:last-of-type {
  font-size: 14px;
  color: #777;
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  line-height: 1.6;
}

/* Make strong text more prominent */
.cg-linktree-style strong {
  color: #ff9a76;
  font-weight: 700;
}

/* Footer adjustments */
.instagram-landing-page #amandalite-footer {
  background: #2d2d2d;
  padding: 24px 20px;
}

.instagram-landing-page .footer-copyright {
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* Mobile optimizations */
@media screen and (max-width: 640px) {
  .cg-linktree-style {
    padding: 32px 16px 48px;
  }
  
  .cg-linktree-style .cg-landing-content h1 {
    font-size: 22px;
  }
  
  .cg-linktree-style nav a {
    padding: 18px 20px;
    gap: 14px;
  }
  
  .cg-linktree-style nav a > strong,
  .cg-linktree-style nav a > span:first-of-type {
    font-size: 16px;
  }
  
  .cg-linktree-style nav a > span:last-of-type {
    font-size: 13px;
  }
}

/* ==========================================================================
   LEGACY LANDING STYLES (fallback)
   ========================================================================== */

/* Contenedor simple y más cómodo en móvil */
.cg-landing-wrap:not(.cg-linktree-style) {
  padding: 16px 12px;
}

.cg-landing-wrap:not(.cg-linktree-style) .cg-landing-container {
  max-width: 820px;
  margin: 0 auto;
}

/* En móvil, reduce márgenes típicos del tema y mejora legibilidad */
.cg-landing-wrap:not(.cg-linktree-style) .cg-landing-content {
  font-size: 16px;
  line-height: 1.6;
}

/* Asegura que imágenes y embeds no desborden */
.cg-landing-content img,
.cg-landing-content iframe,
.cg-landing-content video {
  max-width: 100%;
  height: auto;
}

/* Si tu contenido tiene botones/enlaces, que se vean "tocables" en móvil */
.cg-landing-content a {
  word-break: break-word;
}

/* ==========================================================================
   INSTAGRAM CTA SECTION
   ========================================================================== */

#amandalite-footer .footer-instagram-cta {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    padding: 60px 20px !important;
    margin-top: 0 !important;
    position: relative;
    overflow: hidden;
    border: none !important;
}

#amandalite-footer .footer-instagram-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

#amandalite-footer .footer-instagram-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

#amandalite-footer .instagram-cta-inner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#amandalite-footer .instagram-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

#amandalite-footer .instagram-icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

#amandalite-footer .instagram-icon-wrapper .fab.fa-instagram {
    font-size: 50px !important;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#amandalite-footer .instagram-cta-content {
    flex: 1;
    text-align: left;
}

#amandalite-footer .instagram-cta-title {
    color: white !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

#amandalite-footer .instagram-cta-text {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

#amandalite-footer .instagram-cta-button {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: white !important;
    color: #bc1888 !important;
    padding: 14px 30px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transition: var(--transition);
    border: none;
}

#amandalite-footer .instagram-cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4) !important;
    background: #fafafa !important;
    color: #bc1888 !important;
    text-decoration: none !important;
}

#amandalite-footer .instagram-cta-button .fab.fa-instagram {
    font-size: 1.3rem !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    #amandalite-footer .footer-instagram-cta {
        padding: 40px 15px !important;
    }
    
    #amandalite-footer .instagram-cta-inner {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }
    
    #amandalite-footer .instagram-icon-wrapper {
        width: 80px !important;
        height: 80px !important;
    }
    
    #amandalite-footer .instagram-icon-wrapper .fab.fa-instagram {
        font-size: 40px !important;
    }
    
    #amandalite-footer .instagram-cta-content {
        text-align: center !important;
    }
    
    #amandalite-footer .instagram-cta-title {
        font-size: 1.6rem !important;
    }
    
    #amandalite-footer .instagram-cta-text {
        font-size: 1rem !important;
    }
    
    #amandalite-footer .instagram-cta-button {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }
}

/* ==========================================================================
   CUSTOM INSTAGRAM LANDING (HTML BLOCK SUPPORT)
   Override conflicts between LinkTree theme styles and custom HTML block
   ========================================================================== */

/* Reset linktree styles when cg-ig-landing is present */
.cg-linktree-style:has(.cg-ig-landing) {
  padding: 0 !important;
  background: none !important;
}

.cg-linktree-style:has(.cg-ig-landing) .cg-landing-container {
  max-width: none !important;
}

.cg-linktree-style:has(.cg-ig-landing) .cg-landing-content {
  text-align: left !important;
}

/* Prevent theme nav styles from affecting custom buttons */
.cg-linktree-style nav.cg-ig-actions a > span,
.cg-linktree-style nav.cg-ig-actions a > strong {
  flex: none !important;
  text-align: inherit !important;
}

.cg-linktree-style nav.cg-ig-actions a img {
  flex: none !important;
}

/* === CUSTOM INSTAGRAM LANDING === */
.cg-ig-landing {
  min-height: 100vh;
  padding: 32px 16px;
  background: linear-gradient(135deg, #fef9f3 0%, #fef5eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-ig-wrap {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

/* === PROFILE HEADER === */
.cg-ig-header {
  text-align: center;
  margin-bottom: 32px;
}

.cg-ig-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 4px solid white;
  overflow: hidden;
}

.cg-ig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cg-ig-name {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.cg-ig-bio {
  margin: 0 auto;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.5;
  color: #4a5568;
}

/* Fix emoji rendering in bio */
.cg-ig-bio img.emoji {
  display: inline !important;
  width: 1.2em !important;
  height: 1.2em !important;
  vertical-align: -0.2em !important;
  margin: 0 !important;
}

/* === BUTTONS === */
.cg-ig-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.cg-ig-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  min-height: 72px !important;
  padding: 16px 20px !important;
  background: white !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #1a1a1a !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.cg-ig-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  border-color: #ff9a76 !important;
  background: #fffbf8 !important;
}

.cg-ig-btn:active {
  transform: translateY(0) !important;
}

.cg-ig-btn-icon {
  font-size: 32px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
}

/* Fix emoji images in button icons */
.cg-ig-btn-icon img.emoji {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
}

.cg-ig-btn-content {
  flex: 0 1 auto !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.cg-ig-btn-content strong {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.3 !important;
  display: block !important;
}

.cg-ig-btn-content small {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  display: block !important;
}

/* Primary Button */
.cg-ig-btn--primary {
  background: linear-gradient(135deg, #ff9a76 0%, #ff6b9d 100%) !important;
  border-color: #ff9a76 !important;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3) !important;
}

.cg-ig-btn--primary:hover {
  background: linear-gradient(135deg, #ff8860 0%, #ff5587 100%) !important;
  border-color: #ff8860 !important;
  box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4) !important;
}

.cg-ig-btn--primary .cg-ig-btn-content strong,
.cg-ig-btn--primary .cg-ig-btn-content small {
  color: white !important;
}

.cg-ig-btn--primary .cg-ig-btn-content small {
  opacity: 0.95 !important;
}

/* === FOOTER === */
.cg-ig-footer {
  text-align: center;
}

.cg-ig-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.cg-ig-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #4a5568 !important;
  white-space: nowrap !important;
}

/* Fix emoji images in badges */
.cg-ig-badge img.emoji {
  display: inline !important;
  width: 14px !important;
  height: 14px !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.cg-ig-help {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.cg-ig-help strong {
  color: #ff9a76;
  font-weight: 700;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 640px) {
  .cg-ig-landing {
    padding: 24px 12px;
  }
  
  .cg-ig-avatar {
    width: 80px;
    height: 80px;
  }
  
  .cg-ig-name {
    font-size: 22px;
  }
  
  .cg-ig-bio {
    font-size: 14px;
  }
  
  .cg-ig-btn {
    min-height: 68px !important;
    padding: 14px 18px !important;
    gap: 14px !important;
  }
  
  .cg-ig-btn-icon {
    font-size: 28px !important;
    width: 32px !important;
    height: 32px !important;
  }
  
  .cg-ig-btn-icon img.emoji {
    width: 28px !important;
    height: 28px !important;
  }
  
  .cg-ig-btn-content strong {
    font-size: 15px !important;
  }
  
  .cg-ig-btn-content small {
    font-size: 12px !important;
  }
  
  .cg-ig-badge {
    font-size: 11px !important;
    padding: 7px 12px !important;
  }
}

@media (max-width: 380px) {
  .cg-ig-btn {
    gap: 12px !important;
    padding: 12px 16px !important;
  }
  
  .cg-ig-btn-icon {
    font-size: 24px !important;
    width: 28px !important;
    height: 28px !important;
  }
  
  .cg-ig-btn-icon img.emoji {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ==========================================================================
   PRESUPUESTO PAGE UX/UI ENHANCEMENTS
   Mobile-first design optimized for conversion
   ========================================================================== */

/* === PRESUPUESTO PAGE TYPOGRAPHY === */
body.single-presupuesto .post-title,
body.post-type-presupuesto .post-title,
.single-presupuesto .post-title,
.post-type-presupuesto .post-title {
  font-size: clamp(28px, 5vw, 36px) !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.2 !important;
  margin-top: 24px !important;
  margin-bottom: 8px !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.single-presupuesto .post-header,
.post-type-presupuesto .post-header {
  text-align: center;
  margin-bottom: 20px;
}

/* Subtitle/validity text */
.single-presupuesto .post-header + p,
.single-presupuesto .post-info > p:first-child,
.post-type-presupuesto .post-header + p {
  font-size: 16px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  font-style: normal !important;
  text-align: center;
  margin: 8px 0 24px !important;
}

/* Section headings with emoji */
.single-presupuesto h2,
.post-type-presupuesto h2 {
  font-size: clamp(22px, 4vw, 28px) !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin-top: 48px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  line-height: 1.3 !important;
}

.single-presupuesto h2 img,
.post-type-presupuesto h2 img {
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0;
}

/* Improved body text */
.single-presupuesto .post-content,
.single-presupuesto .post-info,
.post-type-presupuesto .post-content {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}

.single-presupuesto .post-content p,
.post-type-presupuesto .post-content p {
  margin-bottom: 16px;
}

/* Improved text contrast for accessibility */
.single-presupuesto,
.post-type-presupuesto {
  --light-text: #4a5568;
  --text-color: #334155;
}

/* === PRICE DISPLAY ENHANCEMENT === */
.precio-total-container,
.price-total,
.single-presupuesto .post-content > p:has(strong:contains("Total")),
.wp-block-group.price-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(135deg, #fef9f3 0%, #fef5eb 100%);
  border-radius: 16px;
  border: 2px solid #ff9a76;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(255, 154, 118, 0.15);
}

.price-total-label,
.precio-label {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.price-total-amount,
.precio-amount {
  font-size: 36px;
  font-weight: 800;
  color: #ff6b35;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .precio-total-container,
  .price-total {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  
  .price-total-amount,
  .precio-amount {
    font-size: 32px;
  }
}

/* === PAYMENT BREAKDOWN === */
.payment-breakdown,
.forma-pago-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.payment-item,
.pago-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
}

.payment-item:hover,
.pago-item:hover {
  border-color: #ff9a76;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.payment-percentage,
.pago-porcentaje {
  font-size: 32px;
  font-weight: 700;
  color: #ff9a76;
  display: block;
  margin-bottom: 8px;
}

.payment-amount,
.pago-cantidad {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  display: block;
}

.payment-description,
.pago-descripcion {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .payment-breakdown,
  .forma-pago-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* === DELIVERY DATE HIGHLIGHT === */
.delivery-highlight,
.fecha-entrega-highlight,
.wp-block-group.fecha-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.delivery-icon,
.fecha-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.delivery-content,
.fecha-content {
  flex: 1;
}

.delivery-label,
.fecha-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.delivery-date,
.fecha-date {
  font-size: 24px;
  font-weight: 700;
  color: #059669;
  display: block;
}

@media (max-width: 640px) {
  .delivery-highlight,
  .fecha-entrega-highlight {
    flex-direction: column;
    text-align: center;
  }
  
  .delivery-date,
  .fecha-date {
    font-size: 20px;
  }
}

/* === TRUST BADGES === */
.trust-badges,
.confianza-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  justify-content: center;
}

.trust-badge,
.badge-confianza {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #10b981;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.trust-badge:hover,
.badge-confianza:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.trust-badge-icon {
  font-size: 20px;
}

/* === EXPIRY/URGENCY NOTICE === */
.expiry-notice,
.validez-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin: 8px 0;
}

.expiry-notice img,
.validez-notice img {
  width: 16px;
  height: 16px;
}

/* === BUTTON HIERARCHY === */
/* Primary CTA - Accept/Aceptar */
.single-presupuesto .wp-block-button.is-style-primary .wp-block-button__link,
.single-presupuesto .btn-accept,
.single-presupuesto .btn-aceptar,
.single-presupuesto button[class*="aceptar"],
.single-presupuesto a[href*="aceptar"],
.wp-block-button.is-style-primary .wp-block-button__link,
.btn-accept,
.btn-aceptar,
button[class*="aceptar"],
a[href*="aceptar"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  padding: 18px 32px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  min-height: 56px !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  width: 100% !important;
}

.btn-accept:hover,
.btn-aceptar:hover,
button[class*="aceptar"]:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

/* Secondary CTA - Request changes/Solicitar ajustes */
.wp-block-button.is-style-secondary .wp-block-button__link,
.btn-adjust,
.btn-solicitar,
button[class*="solicitar"],
a[href*="solicitar"] {
  background: white !important;
  color: #3b82f6 !important;
  padding: 18px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  min-height: 56px !important;
  line-height: 1.2 !important;
}

.btn-adjust:hover,
.btn-solicitar:hover,
button[class*="solicitar"]:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}

/* Tertiary CTA - Decline/No seguir */
.wp-block-button.is-style-outline .wp-block-button__link,
.btn-decline,
.btn-rechazar,
button[class*="rechazar"],
button[class*="no-seguir"],
a[class*="rechazar"] {
  background: transparent !important;
  color: #64748b !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  min-height: 44px !important;
}

.btn-decline:hover,
.btn-rechazar:hover,
button[class*="rechazar"]:hover,
button[class*="no-seguir"]:hover {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: #94a3b8 !important;
}

/* Button container */
.wp-block-buttons,
.cta-buttons,
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
  justify-content: center;
}

@media (max-width: 768px) {
  .wp-block-buttons,
  .cta-buttons,
  .action-buttons {
    flex-direction: column;
  }
  
  .wp-block-button,
  .btn-accept,
  .btn-aceptar,
  .btn-adjust,
  .btn-solicitar,
  .btn-decline,
  .btn-rechazar {
    width: 100%;
  }
  
  /* Primary button is larger on mobile */
  .btn-accept,
  .btn-aceptar,
  button[class*="aceptar"] {
    order: -1;
    padding: 20px 32px !important;
  }
}

/* === STICKY CTA ON MOBILE === */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 998;
  display: none;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta-mobile.visible {
  display: flex;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
}

.sticky-cta-mobile .btn-accept,
.sticky-cta-mobile .btn-aceptar {
  flex: 2;
  padding: 16px 24px !important;
  font-size: 16px !important;
}

.sticky-cta-mobile .btn-adjust,
.sticky-cta-mobile .btn-solicitar {
  flex: 1;
  padding: 16px 16px !important;
  font-size: 14px !important;
}

@media (min-width: 769px) {
  .sticky-cta-mobile {
    display: none !important;
  }
}

/* === LOADING STATES === */
.btn.loading,
button.loading,
.wp-block-button__link.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after,
button.loading::after,
.wp-block-button__link.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* === PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff9a76 0%, #ff6b9d 100%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9998;
  transition: transform 0.1s ease-out;
}

/* === TOUCH TARGET ACCESSIBILITY === */
@media (max-width: 768px) {
  button,
  .btn,
  a.button,
  .wp-block-button__link,
  input[type="submit"],
  input[type="button"] {
    min-height: 48px !important;
    padding: 14px 24px !important;
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}

/* === SPACING AND WHITE SPACE === */
.single-presupuesto .post-content,
.post-type-presupuesto .post-content {
  padding: 20px;
}

@media (min-width: 769px) {
  .single-presupuesto .post-content,
  .post-type-presupuesto .post-content {
    padding: 40px;
  }
}

/* Section spacing */
.single-presupuesto .wp-block-group,
.post-type-presupuesto .wp-block-group {
  margin-bottom: 32px;
}

.single-presupuesto .wp-block-separator,
.post-type-presupuesto .wp-block-separator {
  margin: 48px 0;
}

/* === ENHANCED LIST STYLING === */
/* Only apply to lists within post content, not navigation menus */
.single-presupuesto .post-content ul:not([class]),
.single-presupuesto .post-info ul:not([class]),
.post-type-presupuesto .post-content ul:not([class]),
.post-type-presupuesto .post-info ul:not([class]) {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.single-presupuesto .post-content ul:not([class]) li,
.single-presupuesto .post-info ul:not([class]) li,
.post-type-presupuesto .post-content ul:not([class]) li,
.post-type-presupuesto .post-info ul:not([class]) li {
  padding: 12px 0 12px 32px;
  position: relative;
  line-height: 1.6;
}

.single-presupuesto .post-content ul:not([class]) li::before,
.single-presupuesto .post-info ul:not([class]) li::before,
.post-type-presupuesto .post-content ul:not([class]) li::before,
.post-type-presupuesto .post-info ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
  font-size: 18px;
}

/* === COLLAPSIBLE SECTIONS (for terms) === */
.collapsible-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 16px 0;
  overflow: hidden;
}

.collapsible-header {
  padding: 16px 20px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.3s ease;
}

.collapsible-header:hover {
  background: #f1f5f9;
}

.collapsible-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.collapsible-section.active .collapsible-content {
  padding: 20px;
  max-height: 1000px;
}

/* === MICRO-INTERACTIONS === */
.single-presupuesto img,
.post-type-presupuesto img {
  transition: transform 0.3s ease;
}

.single-presupuesto a:hover img,
.post-type-presupuesto a:hover img {
  transform: scale(1.02);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* === 3-STEP PROCESS LAYOUT === */
/* Make steps horizontal on desktop (3 columns) */
@media (min-width: 992px) {
  .process-steps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

/* Stack steps vertically on mobile/tablet */
@media (max-width: 991px) {
  .process-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* === PRINT STYLES === */
@media print {
  .sticky-cta-mobile,
  .scroll-progress {
    display: none !important;
  }
}

/* Final brand chrome overrides for the homepage redesign. */
#amandalite-footer .footer-instagram-cta {
  padding: 44px 20px !important;
  background: linear-gradient(135deg, #ed6948 0%, #ea4e75 52%, #d84cbd 100%) !important;
}

#amandalite-footer .instagram-cta-inner {
  max-width: 1120px !important;
  justify-content: space-between !important;
}

#amandalite-footer .instagram-icon-wrapper {
  width: 72px !important;
  height: 72px !important;
  border-radius: 14px !important;
  animation: none !important;
}

#amandalite-footer .instagram-cta-gallery {
  display: grid;
  grid-template-columns: repeat(3, 128px);
  gap: 18px;
}

#amandalite-footer .instagram-cta-gallery img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(38, 32, 54, 0.24);
}

#amandalite-footer .footer-navigation,
#amandalite-footer .footer-copyright {
  background: #171719 !important;
}

#amandalite-footer .footer-navigation {
  padding: 54px 0 36px;
}

#amandalite-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

@media screen and (max-width: 991px) {
  #amandalite-footer .instagram-cta-gallery {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    width: 100%;
    max-width: 430px;
  }

  #amandalite-footer .instagram-cta-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  #amandalite-footer .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 575px) {
  #amandalite-footer .footer-columns {
    grid-template-columns: 1fr;
  }
}
