/* CSS v2.1.4 - Estilos visuales exactos del contenedor y tarjetas */
:root {
    --rcao-banner-w: 260px;
    --rcao-gap: 40px; 
}

.rcao-wrapper {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    border-radius: 12px;
    overflow: hidden;
}

.rcao-wrapper * {
    box-sizing: border-box;
}

/* Cabecera Superior */
.rcao-top-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.rcao-main-title {
    font-size: 32px;
    font-weight: bold;
    color: #222;
    margin: 0;
}

.rcao-tabs-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Óvalos de Pestaña - Estado Inactivo */
.rcao-wrapper .rcao-tab-btn {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: none !important;
    padding: 8px 24px !important;
    border-radius: 30px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    outline: none !important;
    display: inline-block !important;
}

.rcao-wrapper .rcao-tab-btn:hover {
    background-color: #f0f0f0 !important;
    color: #333333 !important;
}

/* Óvalo Activo (Adopta el color verde / principal del plugin) */
.rcao-wrapper .rcao-tab-btn.active,
.rcao-wrapper .rcao-tab-btn.active:hover {
    background-color: var(--rcao-primary) !important;
    color: #ffffff !important;
}

/* Layout Dividido */
.rcao-content-layout {
    display: flex;
    gap: var(--rcao-gap);
    align-items: stretch;
}

.rcao-left-banner {
    flex: 0 0 var(--rcao-banner-w);
    max-width: var(--rcao-banner-w);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
}

.rcao-left-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Riel y Controles */
.rcao-right-slider-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.rcao-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.rcao-2row-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 5px;
}
.rcao-2row-grid::-webkit-scrollbar { display: none; }

/* Botones Navegación */
.rcao-arrow {
    background: #ffffff !important;
    color: #333 !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    position: absolute !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s, background 0.3s !important;
}

.rcao-arrow:hover { background: #f0f0f0 !important; transform: scale(1.05); }

.rcao-prev { left: -20px !important; } 
.rcao-next { right: -20px !important; }

/* Tarjetas */
.rcao-item { height: 100%; }
.rcao-item-link { text-decoration: none !important; color: inherit; display: block; height: 100%; }

.rcao-card-box {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.rcao-card-box:hover { transform: translateY(-3px); }

/* Formato Tarjeta */
.rcao-format-card { background-color: var(--rcao-card-bg); }
.rcao-format-card .rcao-img-container { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.rcao-format-card .rcao-img-container img { width: 100%; height: 100%; object-fit: cover; }
.rcao-details { padding: 12px 10px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }

.rcao-title { margin: 0 0 8px 0; font-size: 17px; font-weight: bold; color: #333; }

.rcao-prices { display: flex; justify-content: center; align-items: center; gap: 8px; }
.rcao-price-curr { font-weight: bold; font-size: 17px; color: var(--rcao-primary); }
.rcao-price-prev { font-size: 13px; color: #888; }

.rcao-format-full { background-color: transparent; }
.rcao-format-full .rcao-img-container { width: 100%; height: 100%; overflow: hidden; }
.rcao-format-full .rcao-img-container img { width: 100%; height: 100%; object-fit: cover; }

.rcao-badge { position: absolute; top: 10px; left: 10px; background: #e63946; color: #ffffff; padding: 4px 10px; font-size: 11px; font-weight: bold; border-radius: 20px; z-index: 2; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* Responsividad */
@media (max-width: 900px) {
    .rcao-content-layout { flex-direction: column; }
    .rcao-left-banner { flex: auto; max-width: 100%; width: 100%; height: 300px; }
    .rcao-top-header { justify-content: center; flex-direction: column; text-align: center; }
    .rcao-prev { left: 0px !important; }
    .rcao-next { right: 0px !important; }
}
@media (max-width: 600px) {
    .rcao-main-title { font-size: 24px; }
    .rcao-2row-grid { grid-auto-columns: 180px; gap: 15px; }
}

@media (min-width: 901px) {
    .rcao-top-header { margin-left: calc(var(--rcao-banner-w) + var(--rcao-gap)); }
    .rcao-2row-grid { grid-auto-columns: 168px; gap: 14px; }
    .rcao-details { padding: 8px 6px; }
    
    .rcao-title { font-size: 14px; margin: 0 0 5px 0; }
    
    .rcao-price-curr { font-size: 13px; }
    .rcao-price-prev { font-size: 11px; }
    .rcao-badge { padding: 3px 7px; font-size: 9px; top: 6px; left: 6px; }
}