:root {
    --primary-color: #fc222a;
    --primary-hover: #e01e25;
    --secondary-color: #64748b;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;

    --teal-800: #00695C;
    --blue-gray-500: #607D8B;
    --blue-gray-600: #546E7A;

    --border-color: #28242d;
    --text-primary: #28242d;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --badge-hot: #ff6b35;
    --badge-new: #4ade80;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --color: #3c3163;
    --transition-time: 0.5s;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

.navbar {
    background: var(--blue-gray-500) !important;
    box-shadow: var(--shadow-sm);
    color:white;
}

.navbar-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
    
}


.navbar-brand {
    margin: 0 !important;
}

.navbar-search-container {
    width: 100%;
    padding: 0 5rem;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.more-resources-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(252, 34, 42, 0.2);
}

.more-resources-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 34, 42, 0.3);
}

.navbar-toggler {
    display: block;
    margin-left: auto;
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1100;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 26px;
    height: 20px;
    margin: auto;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.navbar-collapse {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    height: 100vh;
    z-index: 1000;
}

.navbar-collapse.show {
    display: block;
}

.navbar-brand {
    padding: 0 !important;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--primary-hover) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    border-radius: 6px;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(252, 34, 42, 0.05);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(252, 34, 42, 0.1);
}

.navbar-light .navbar-nav .nav-item {
    margin-right: 0.25rem;
}


.navbar-collapse .navbar-nav {
    padding: 0.5rem;
}

.navbar-collapse .navbar-nav .nav-item {
    margin: 0;
}

.navbar-collapse .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    display: block;
}


.search-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1.75rem 0;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    border-radius: 30px;
    border: 2px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(252, 34, 42, 0.1);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-right:20px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    border: none;
    margin-left: 20px;
    font-size: 1rem;
    background: transparent;
    outline: none;
    box-shadow: none !important;
    padding: 12px 12px 12px 16px;
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

#abrir-buscador-amazon {

    background: #FFA500;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#abrir-buscador-amazon:hover {
    background: var(--primary-hover);
}

.footer {
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.footer-brand {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-brand:hover {
    color: var(--primary-hover);
}

.footer-menu {
align-items: end;
}

.footer-menu-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-menu-link:hover {
    color: var(--primary-color);
}

.footer-menu li {
    display: block;
}

.search-btn {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(252, 34, 42, 0.25);
}

.search-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(252, 34, 42, 0.35);
}

.search-btn i {
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
}

.results-header {
    padding: 1.5rem 0 1rem 0;

    margin-bottom: 1.5rem;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.alert {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.intro-section {
    background: var(--card-bg);

    box-shadow: var(--shadow-sm);
}

.intro-section .text-center {
    text-align: left;
}

.intro-section p,
.intro-section ul,
.intro-section li,
.intro-section a {
    color: var(--text-primary);
}

.intro-section a:hover {
    color: var(--primary-color);
}

.text-center.py-5 {
    color: var(--text-muted);
    padding: 4rem 1rem !important;
}

.text-center.py-5 i {
    color: var(--text-muted);
    opacity: 0.5;
}


body {
    font-size: 14px;
}

.navbar-brand {
    font-size: 1.2rem;
}

.search-section {
    padding: 1.25rem 0;
}


.search-btn {
    width: 38px;
    height: 38px;
}


.navbar-main-content:has(.a-la-izq) {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.a-la-izq {
    display: block;
    height: 56px;
    margin-right: 1rem;
}

.a-la-izq .logo {
    height: 56px;
    width: auto;
    min-width: 150px;
}

.navbar-main-content:has(.a-la-izq) .navbar-search-container {
    height: 56px;


}

.container {
    max-width: 1200px;
}

.logo {
    width: 600px;
    height: 150px;
    background-image: url('/images/navbar_logo.png');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    
}

.logo-texto {
    background-image: url('/images/logo_texto.png');
    height: 100px;
}

@media (max-width: 768px) {
    .logo {
        width: 300px;
        height: 75px;
    }
}

.card.external-link-card-card {
    width: 12em !important;
}

.external-links-section {
    padding-top: 1rem;

}

.external-links-section h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.external-link-card-wrapper{
    position: relative;
    float: left;
}

.external-link-card {
    text-decoration: none;
    display: block;
    transition: var(--transition-smooth);
    height: 100%;
}

.external-link-card .card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    background: var(--card-bg);
    height: 100%;
}

.external-link-card:hover .card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.external-link-card .card-body {
    padding: 0;
    padding-bottom: 1rem;
}

.external-link-card i {
    color: var(--primary-color);
}

.external-link-card .card-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.external-link-card .card-text {
    font-size: 0.75rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.external-link-card:hover .card-title {
    color: var(--primary-color);
}

.external-links-section h3 {
    font-size: 1.25rem;
}

.external-link-card i {
    font-size: 1.25rem !important;
}

.post-content-1 {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    
}

/* =======================================
   ESTILOS DE TARJETA DE OFERTA (MEJORADOS)
   ======================================= */

.card {
    
    --bg-filter-opacity: 0.5;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    height: 25em;
    width: 25em;
    float: left;
    margin-right: 2em;
    margin-bottom: 1.5rem;

    
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    justify-content: flex-end; 

    border-radius: 10px; 
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth); 
    border: none; 
}


.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}


.card h2 {
    color: white; 
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    z-index: 2; 
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 

    
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;

    
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin: 0 0 0.5rem 0; 
}


.card .card-text {
    z-index: 2; 
    padding: 0.75rem 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

   
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin: 0 !important;
}


.price-section {
    line-height: 1;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color); 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.current-price span:last-child {
    font-size: 0.6em; 
    vertical-align: top;
    margin-left: -0.1em;
}


.card-text a {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-text a:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}


.card .tags {
    
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.card .date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.tag {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.products-section-search{
    padding-top: 15px;
    min-height: 80vh;
}
