/* ============================================
   YELLOW REPOSTERÍA CREATIVA - CUSTOM STYLES
   Paleta de colores del nuevo branding
   ============================================ */

:root {
    /* Colores principales del logo */
    --yellow-primary: #FDB913;      /* Amarillo principal */
    --yellow-dark: #E5A410;         /* Amarillo oscuro */
    --purple-primary: #9B4F96;      /* Púrpura */
    --purple-light: #B565B0;        /* Púrpura claro */
    --blue-primary: #2C4B7C;        /* Azul del logo */
    --blue-dark: #1E3557;           /* Azul oscuro */
    --pink-accent: #E76F7A;         /* Rosa del botón "INICIO" */
    
    /* Colores de soporte */
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #666666;
    --gray-dark: #333333;
}

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

.header_logo {
    display: flex;
    align-items: center;
}

.header_logo a img {
    max-width: 400px !important;
    max-height: 155px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Para dispositivos móviles */
@media (max-width: 767px) {
    .header_logo a img {
        max-width: 220px !important;
        max-height: 85px !important;
    }
}

/* Para tablets */
@media (max-width: 991px) and (min-width: 768px) {
    .header_logo a img {
        max-width: 270px !important;
        max-height: 100px !important;
    }
}

/* ============================================
   HEADER STYLES
   ============================================ */

/* Header top background - Mantener estilos originales */
.header_top .welcome_text p {
    font-weight: 500;
}

/* Dropdown account menu */
.dropdown_account_link li a:hover {
    background: var(--yellow-primary) !important;
    color: var(--blue-primary) !important;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.main_menu nav > ul > li > a {
    color: var(--gray-dark) !important;
    font-weight: 500;
}

.main_menu nav > ul > li > a:hover,
.main_menu nav > ul > li > a.active {
    color: #ffffff !important;
}

/* Dropdown menu hover */
.bucker-dropdown li a:hover,
.dropdown_account_link li a:hover {
    background: var(--yellow-primary) !important;
    color: var(--blue-primary) !important;
}

.bucker-dropdown li a:hover i,
.dropdown_account_link li a:hover i {
    color: #ffffff !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.button {
    background: var(--pink-accent) !important;
    border-color: var(--pink-accent) !important;
    color: var(--white) !important;
}

.btn-primary:hover,
.button:hover {
    background: var(--purple-primary) !important;
    border-color: var(--purple-primary) !important;
    color: var(--white) !important;
}

/* Secondary buttons (amarillo) */
.btn-yellow,
.button-yellow {
    background: var(--yellow-primary) !important;
    border-color: var(--yellow-primary) !important;
    color: var(--blue-primary) !important;
    font-weight: 600;
}

.btn-yellow:hover,
.button-yellow:hover {
    background: var(--yellow-dark) !important;
    border-color: var(--yellow-dark) !important;
    color: var(--blue-primary) !important;
}

/* ============================================
   CART & WISHLIST ICONS
   ============================================ */

.header_account ul li a i {
    color: var(--gray-dark) !important;
}

.header_account ul li a:hover i {
    color: var(--yellow-primary) !important;
}

.cart_count,
.wishlist_count {
    background: var(--pink-accent) !important;
    color: var(--white) !important;
}

/* ============================================
   LINKS & ACCENTS
   ============================================ */

a {
    color: var(--purple-primary);
}

a:hover {
    color: var(--yellow-primary);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product_badge.new {
    background: var(--yellow-primary) !important;
    color: var(--blue-primary) !important;
}

.product_badge.sale {
    background: var(--pink-accent) !important;
    color: var(--white) !important;
}

.product_name a:hover {
    color: var(--yellow-primary) !important;
}

.price_box .current_price {
    color: var(--purple-primary) !important;
    font-weight: 700;
}

.price_box .old_price {
    color: var(--gray-medium) !important;
    text-decoration: line-through !important;
    font-size: 0.9em;
    margin-right: 8px;
}

.price_box .current_price {
    font-weight: 700;
}

/* Sale Labels */
.product_thumb {
    position: relative;
}

.label_product {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 9;
}

.label_sale {
    background: var(--pink-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Product Cards - Fixed Image Heights */
.single_product .product_thumb {
    height: 250px;
    overflow: hidden;
}

.single_product .product_thumb > a {
    display: block;
    height: 100%;
}

.single_product .product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   FOOTER
   ============================================ */

.footer_top {
    background: var(--blue-primary) !important;
}

.footer_top h3,
.footer_top h4 {
    color: var(--yellow-primary) !important;
}

.footer_top p,
.footer_top li,
.footer_top a {
    color: var(--white) !important;
}

.footer_top a:hover {
    color: var(--yellow-primary) !important;
}

.footer_bottom {
    background: var(--blue-dark) !important;
}

.footer_bottom p,
.footer_bottom a {
    color: var(--white) !important;
}

.footer_bottom a:hover {
    color: var(--yellow-primary) !important;
}

/* ============================================
   SLIDER & HERO SECTIONS
   ============================================ */

.slider_content h1,
.slider_content h2 {
    color: var(--blue-primary) !important;
}

.slider_content h1 span,
.slider_content h2 span {
    color: var(--yellow-primary) !important;
}

.slider_button a {
    background: var(--pink-accent) !important;
    border-color: var(--pink-accent) !important;
}

.slider_button a:hover {
    background: var(--purple-primary) !important;
    border-color: var(--purple-primary) !important;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section_title h2 {
    color: var(--blue-primary) !important;
}

.section_title h2 span {
    color: var(--yellow-primary) !important;
}

/* ============================================
   FORMS
   ============================================ */

.form-control:focus {
    border-color: var(--yellow-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(253, 185, 19, 0.25) !important;
}

input[type="submit"],
button[type="submit"] {
    background: var(--pink-accent) !important;
    border-color: var(--pink-accent) !important;
    color: var(--white) !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--purple-primary) !important;
    border-color: var(--purple-primary) !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.offcanvas_menu {
    background: var(--white) !important;
}

.offcanvas_main_menu li a {
    color: var(--gray-dark) !important;
}

.offcanvas_main_menu li a:hover {
    color: var(--yellow-primary) !important;
}

.canvas_close a {
    color: var(--pink-accent) !important;
}

.canvas_close a:hover {
    color: var(--purple-primary) !important;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

a, button, .btn, .button {
    transition: all 0.3s ease-in-out;
}

/* ============================================
   UTILITIES
   ============================================ */

.bg-yellow {
    background-color: var(--yellow-primary) !important;
}

.bg-purple {
    background-color: var(--purple-primary) !important;
}

.bg-blue {
    background-color: var(--blue-primary) !important;
}

.bg-pink {
    background-color: var(--pink-accent) !important;
}

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

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

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

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
    .header_top_inner {
        flex-direction: column !important;
        text-align: center;
    }
    
    .header_top_sidebar ul {
        flex-direction: column !important;
        gap: 10px;
    }
}

/* ── Dropdown Cuenta: iconos ── */
.dropdown_account_link li a i {
    display: inline-block;
    width: 18px;
    margin-right: 7px;
    font-size: 14px;
    color: var(--blue-primary); /* Color normal del icono */
}

.dropdown_account_link li a:hover i {
    color: #ffffff !important; /* Ícono blanco en hover */
}
.dropdown_account_link li a:hover i {
    color: #fc7c7c;
}

/* Active Filters UI */
.active_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}
.active_filter_badge {
    background: rgba(245, 197, 24, 0.2);
    border: 1px solid var(--yellow-primary);
    color: var(--blue-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.active_filter_badge .clear-filter {
    color: var(--pink-accent);
    font-size: 14px;
    transition: transform 0.2s;
}
.active_filter_badge .clear-filter:hover {
    transform: scale(1.2);
    color: red;
}
.clear-all-filters:hover {
    color: var(--purple-primary) !important;
}

/* ============================================
   CONTACT PAGE IMPROVEMENTS
   ============================================ */

.contact_info_content h2 {
    color: var(--blue-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact_info_content p {
    color: var(--gray-medium);
    line-height: 1.8;
}

.contact_info_details {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact_info_details:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact_info_details h3 {
    color: var(--blue-primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact_info_details h3 i {
    margin-right: 10px;
}

.contact_info_details p {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact_info_details p strong {
    color: var(--gray-dark);
    font-weight: 600;
}

.contact_info_details a {
    color: var(--purple-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact_info_details a:hover {
    color: var(--pink-accent);
    text-decoration: underline;
}

.contact_form {
    background: var(--gray-light);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.contact_form h2 {
    color: var(--blue-primary);
    font-weight: 700;
    margin-bottom: 25px;
}

.form_input input,
.form_textarea textarea {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form_input input:focus,
.form_textarea textarea:focus {
    border-color: var(--yellow-primary);
    box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
    outline: none;
}

.map-container {
    padding: 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================
   MAP CARDS - IMPROVED UI
   ============================================ */

.map-card {
    width: 100%;
    height: 100%;
    min-height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.map-card-header {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--purple-primary) 100%);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-card-header i {
    font-size: 32px;
    color: var(--yellow-primary);
}

.map-card-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.map-card-address {
    padding: 20px 30px;
    color: var(--gray-medium);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    background: var(--gray-light);
    border-bottom: 2px solid var(--yellow-primary);
}

.map-card-iframe {
    flex: 1;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.map-card-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .map-card {
        min-height: 500px;
    }
    
    .map-card-iframe {
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .map-card {
        min-height: 450px;
    }
    
    .map-card-header {
        padding: 20px 20px;
    }
    
    .map-card-header h3 {
        font-size: 1.25rem;
    }
    
    .map-card-address {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .map-card-iframe {
        min-height: 300px;
    }
}

/* ============================================
   MAP CARDS - SIMPLE & CLEAN (v2)
   ============================================ */

.map-card-simple {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.map-card-simple:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.map-card-simple-header {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--purple-primary) 100%);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.map-card-simple-header i {
    font-size: 36px;
    color: var(--yellow-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.map-card-simple-header h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.map-card-simple-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.map-card-simple-body {
    padding: 0;
    background: #f8f8f8;
}

.map-card-simple-body iframe {
    display: block;
    width: 100%;
}

/* Responsive */
@media (max-width: 767px) {
    .map-card-simple-header {
        padding: 20px;
    }
    
    .map-card-simple-header i {
        font-size: 28px;
    }
    
    .map-card-simple-header h3 {
        font-size: 1.3rem;
    }
    
    .map-card-simple-header p {
        font-size: 13px;
    }
    
    .map-card-simple-body iframe {
        height: 350px !important;
    }
}

/* ============================================
   BRANCH SELECTOR + SINGLE MAP CARD
   ============================================ */

.branch-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.branch-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: white;
    border: 2px solid #e8e8e8;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.branch-tab i {
    font-size: 26px;
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.25s;
}

.branch-tab-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.2;
    transition: color 0.25s;
}

.branch-tab-address {
    display: block;
    font-size: 12px;
    color: var(--gray-medium);
    margin-top: 3px;
}

.branch-tab:hover {
    border-color: var(--yellow-primary);
    background: #fffdf0;
}

.branch-tab:hover i {
    color: var(--yellow-primary);
}

.branch-tab.active {
    background: white;
    border-color: var(--blue-primary);
    border-bottom: 2px solid white;
    position: relative;
    z-index: 1;
    margin-bottom: -2px;
}

.branch-tab.active i {
    color: var(--blue-primary);
}

.branch-tab.active .branch-tab-name {
    color: var(--blue-primary);
}

/* Map single card */
.map-single-card {
    background: white;
    border: 2px solid var(--blue-primary);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    position: relative;
    z-index: 0;
}

.map-info-bar {
    background: var(--blue-primary);
    padding: 18px 28px;
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.map-info-item > i {
    font-size: 20px;
    color: var(--yellow-primary);
    flex-shrink: 0;
}

.map-info-item > span {
    flex: 1;
    min-width: 200px;
}

.map-info-phone {
    color: var(--yellow-primary) !important;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.map-info-phone:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

.map-info-phone i {
    font-size: 15px;
}

.map-info-hours {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    white-space: nowrap;
}

.map-info-hours i {
    font-size: 14px;
    margin-right: 4px;
}

.map-iframe-wrapper iframe {
    display: block;
}

/* Responsive */
@media (max-width: 767px) {
    .branch-tabs {
        gap: 8px;
    }

    .branch-tab {
        padding: 14px 16px;
        gap: 10px;
    }

    .branch-tab i {
        font-size: 22px;
    }

    .branch-tab-name {
        font-size: 13px;
    }

    .map-info-bar {
        padding: 14px 18px;
    }

    .map-info-item {
        gap: 10px;
    }

    .map-info-item > span {
        min-width: 0;
        width: 100%;
    }

    .map-iframe-wrapper iframe {
        height: 350px !important;
    }
}

/* ============================================
   BOOTSTRAP ALERTS - FIX CLOSE BUTTON
   ============================================ */

/* Estilos para los botones de cerrar en alertas */
.alert .close {
    position: relative;
    top: -2px;
    right: -12px;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.alert .close:hover,
.alert .close:focus {
    opacity: 0.75;
    outline: none;
}

.alert .close span {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 20px;
    text-align: center;
}

/* Alertas específicas con mejor contraste */
.alert-success .close {
    color: #155724;
}

.alert-danger .close {
    color: #721c24;
}

.alert-warning .close {
    color: #856404;
}

.alert-info .close {
    color: #004085;
}

/* Para alertas dismissibles con fade */
.alert-dismissible {
    padding-right: 3.5rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
}
