:root {
    --rosatel-red: #E3000F;
    --rosatel-red-hover: #c0000d;
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --font-family: 'Poppins', sans-serif;
    --border-color: #eaeaea;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.rosatel-header {
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}
.header-top {
    border-bottom: 1px solid #f5f5f5;
    padding: 8px 0;
    font-size: 12px;
}
.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-icons i { margin-right: 15px; cursor: pointer; color: #333; font-size: 14px;}
.header-main { padding: 20px 0; }
.main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.location-picker {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
}
.location-picker .flag, .location-picker .where-to {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #eee;
    background: #fafafa;
}
.btn-elegir { color: var(--rosatel-red); border: 1px solid var(--rosatel-red); padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;}
.brand-logo img { height: 50px; }
.header-actions { display: flex; align-items: center; gap: 25px; }
.search-box {
    position: relative;
    width: 280px;
}
.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-family: var(--font-family);
    font-size: 14px;
}
.search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
}
.icon-link { font-size: 22px; color: #000; position: relative;}
.icon-link .badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--rosatel-red);
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

.header-nav { padding: 12px 0; border-top: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5;}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.btn-menu-desktop { border: 1px solid var(--rosatel-red); color: var(--rosatel-red); padding: 6px 18px; border-radius: 20px; font-weight: 600; font-size: 13px;}
.btn-menu-desktop i { margin-right: 5px; color: var(--rosatel-red); }
.nav-links-desktop { display: flex; gap: 30px; font-size: 13px;}
.nav-links-desktop a { color: #555; transition: color 0.2s;}
.nav-links-desktop a:hover { color: var(--rosatel-red); }
.btn-promociones-desktop { border: 1px solid var(--rosatel-red); color: var(--rosatel-red); padding: 6px 18px; border-radius: 20px; font-weight: 500; font-size: 13px;}

/* New Desktop Header Layout */
.header-top { border-top: 2px solid #333; background: #fff; padding: 5px 0; border-bottom: 1px solid #f5f5f5; }
.header-top .social-icons i { font-size: 12px; color: #666; }
.header-top .currency-selector { border: 1px solid #ddd; border-radius: 20px; padding: 2px 10px; font-size: 11px; }

.desktop-flex { display: flex; align-items: center; }
.header-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.header-center { flex: 1; display: flex; justify-content: center; align-items: center; }
.header-right { display: flex; align-items: center; gap: 25px; flex: 1; justify-content: flex-end; }

.main-logo-img { height: 75px; object-fit: contain; transition: transform 0.3s ease; }
.brand-logo:hover .main-logo-img { transform: scale(1.05); }

.flag-picker { border: 1px solid #eaeaea; padding: 8px 14px; border-radius: 25px; display: flex; align-items: center; gap: 6px; font-size: 13px; background: #fff; cursor: pointer; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.location-picker-desktop { border: 1px solid #eaeaea; padding: 8px 14px; border-radius: 25px; display: flex; align-items: center; gap: 8px; font-size: 13px; background: #fff; cursor: pointer; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.flag-picker:hover, .location-picker-desktop:hover { border-color: #ddd; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.btn-elegir-outline { border: 1px solid var(--rosatel-red); color: var(--rosatel-red); border-radius: 12px; padding: 3px 12px; font-size: 11px; font-weight: 600; margin-left: 5px; transition: 0.3s; }
.location-picker-desktop:hover .btn-elegir-outline { background: var(--rosatel-red); color: #fff; }

.search-box-desktop { position: relative; width: 300px; }
.search-box-desktop input { width: 100%; padding: 10px 15px 10px 40px; border: 1px solid #eaeaea; border-radius: 30px; outline: none; font-size: 13px; background: #fafafa; transition: 0.3s; }
.search-box-desktop input:focus { border-color: var(--rosatel-red); background: #fff; box-shadow: 0 0 10px rgba(227, 0, 15, 0.08); }
.search-box-desktop .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #888; }

.icons-group { display: flex; gap: 25px; align-items: center; }
.icon-link { font-size: 22px; color: #444; transition: 0.3s; }
.icon-link:hover { color: var(--rosatel-red); transform: translateY(-2px); }
.icons-group-desktop { display: flex; gap: 20px; align-items: center; }

/* Main */
.rosatel-main { padding-bottom: 60px; }

/* Hero Slider */
.hero-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.hero-banner {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fcebeb;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    font-size: 28px;
    color: var(--rosatel-red);
    cursor: pointer;
}
.slider-arrow.left { left: 5%; }
.slider-arrow.right { right: 5%; }

/* Category Circles */
.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 50px 0 40px;
    color: #000;
}
.circles-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s;
}
.circle-item:hover { transform: translateY(-5px); }
.circle-img {
    width: 130px; height: 130px;
    border-radius: 50%;
    overflow: hidden;
    background: #fdfdfd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.circle-img i { font-size: 50px; color: var(--rosatel-red); }
.circle-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.circle-name {
    color: var(--rosatel-red);
    font-weight: 600;
    font-size: 16px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.rosatel-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.card-image-wrapper {
    height: 220px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border-radius: 8px;
    overflow: hidden;
}
.card-image-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.card-image {
    max-width: 90%; max-height: 90%;
    object-fit: contain;
}
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    height: 42px;
    margin: 0 0 10px;
    line-height: 1.4;
    overflow: hidden;
}
.card-price {
    color: var(--rosatel-red);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.qty-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}
.quantity-selector input {
    width: 30px; text-align: center; border: none; font-size: 14px; color: #333; outline: none;
}
.btn-text {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}
.btn-outline-red {
    width: 100%;
    border: 1px solid var(--rosatel-red);
    background: #fff;
    color: var(--rosatel-red);
    padding: 12px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.btn-outline-red:hover {
    background: var(--rosatel-red);
    color: #fff;
}

/* Footer */
.rosatel-footer { margin-top: 80px; background: linear-gradient(to bottom, #fff, #fef4f4); position: relative;}
.rosatel-footer::before {
    content: '';
    position: absolute;
    top: -30px; left: 0; width: 100%; height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 30" preserveAspectRatio="none"><path d="M0,30 Q250,0 500,30 T1000,30 L1000,30 L0,30 Z" fill="%23fff"/></svg>');
    background-size: 100% 100%;
}
.footer-trust {
    display: flex;
    justify-content: center;
    margin-bottom: -25px;
    position: relative;
    z-index: 10;
}
.trust-box {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    display: flex;
    padding: 20px 40px;
    gap: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.trust-item {
    display: flex; align-items: center; gap: 15px; font-size: 12px; color: #333; max-width: 200px; line-height: 1.4;
}
.trust-item i { font-size: 28px; color: #000; }

.footer-newsletter {
    background: #e94b4b;
    padding: 70px 0 50px;
    color: #fff;
}
.newsletter-content {
    display: flex; justify-content: space-between; align-items: center;
}
.newsletter-text h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600;}
.newsletter-text p { margin: 0; font-size: 14px; max-width: 500px;}
.newsletter-form {
    display: flex; gap: 10px;
}
.newsletter-form input {
    padding: 14px 20px; border-radius: 25px; border: none; width: 350px; outline: none; font-family: var(--font-family);
}
.newsletter-form button {
    padding: 14px 30px; border-radius: 25px; border: none; background: #ff9e9e; color: #fff; font-weight: 600; cursor: pointer; font-family: var(--font-family); transition: background 0.3s;
}
.newsletter-form button:hover { background: #ff8585; }

.footer-links {
    padding: 60px 0;
    font-size: 12px;
    color: #333;
}
.links-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.brand-info { max-width: 280px; line-height: 1.6;}
.footer-logo { width: 140px; margin-bottom: 20px;}
.link-column h4 { color: var(--rosatel-red); margin: 0 0 20px; font-size: 14px; font-weight: 600;}
.link-column a { display: block; margin-bottom: 12px; color: #333;}
.link-column a i { margin-right: 8px; width: 15px; text-align: center; }
/* Sidebar Menu */
.mobile-sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 998;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.mobile-sidebar-overlay.active { opacity: 1; visibility: visible; }
.mobile-sidebar {
    position: fixed; top: 0; left: -100%; width: 85%; max-width: 350px; height: 100vh;
    background: #fff; z-index: 999; overflow-y: auto;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.mobile-sidebar.active { left: 0; }
.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #f0f0f0;
}
.btn-close-sidebar, .btn-close-x {
    background: none; border: none; font-size: 16px; font-weight: 600; cursor: pointer; color: #000;
}
.btn-close-sidebar i { margin-right: 8px; }
.btn-close-x { font-size: 20px; color: #666; }
.sidebar-content { padding: 20px; }
.sidebar-content h3 { margin: 0 0 15px; font-size: 18px; font-weight: 700; color: #000; }
.sidebar-menu-list { list-style: none; padding: 0; margin: 0; }
.sidebar-menu-list li { border-bottom: 1px solid #f5f5f5; }
.sidebar-menu-list a {
    display: block; padding: 15px 0; font-size: 15px; color: #333;
}

/* Utils */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }
.mobile-top-row { display: none; }

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .desktop-only { display: none !important; }
    .desktop-flex { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .mobile-top-row {
        display: block;
        border-bottom: 1px solid #f5f5f5;
        padding: 8px 0;
        background: #fdfdfd;
    }
    .mobile-top-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        padding: 0 10px;
    }
    .mobile-top-container .flag {
        border: 1px solid #ddd; padding: 4px 10px; border-radius: 20px; color: #333;
    }
    .mobile-top-container .location-picker {
        border: 1px solid #ddd; padding: 4px 15px; border-radius: 20px;
        display: flex; align-items: center; gap: 8px; color: #333;
    }
    .mobile-top-container .btn-elegir {
        color: var(--rosatel-red); border: 1px solid var(--rosatel-red); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
    }
    .mobile-top-container .currency-selector {
        border: 1px solid #ddd; padding: 4px 10px; border-radius: 20px; color: #333;
    }
    
    .header-main { padding: 15px 0; }
    .main-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .header-left, .header-center, .header-right { flex: 1; display: flex; align-items: center; }
    .header-left { justify-content: flex-start; }
    .header-center { justify-content: center; }
    .header-right { justify-content: flex-end; padding-right: 5px; }
    
    .btn-menu-mobile {
        color: var(--rosatel-red); font-size: 18px; border: 1px solid var(--rosatel-red); border-radius: 20px; width: 45px; height: 35px; display: flex; justify-content: center; align-items: center; text-decoration: none;
    }
    .brand-logo img { height: 35px; }
    .icons-group { display: flex; gap: 15px; align-items: center;}
    
    .mobile-search-row { padding-bottom: 15px; display: block !important; }
    .search-box.full-width { width: 100%; position: relative;}
    .search-box.full-width input { width: 100%; padding: 10px 15px 10px 40px; border: 1px solid #ddd; border-radius: 25px; outline: none; box-sizing: border-box; }
    .search-box.full-width .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
    
    /* Hero */
    .hero-banner {
        font-size: 20px !important;
        text-align: center;
        padding: 0 40px;
        height: 250px;
    }
    
    /* Footer */
    .trust-box {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center;
        text-align: center;
    }
    .trust-item {
        flex-direction: column;
    }
    .newsletter-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    .newsletter-form input {
        width: 100%;
        box-sizing: border-box;
    }
    .links-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .brand-info {
        margin: 0 auto;
    }
    .payment-icons {
        justify-content: center;
    }
}
/* Micro-interacciones y Animaciones */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.rosatel-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}
.rosatel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(227, 0, 15, 0.08);
    border-color: rgba(227, 0, 15, 0.2);
}

.rosatel-card:hover .card-image {
    transform: scale(1.08);
}

.card-image {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-outline-red {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-red:active {
    transform: scale(0.95);
}

.circle-item:hover .circle-img {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 10px 25px rgba(227, 0, 15, 0.15);
}

.circle-img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}
