/* ===== ESTILOS GENERALES ===== */
.custom-shortcodes-container {
    margin: 20px 0;
}

/* ===== ESTILOS PARA BOXES ===== */
.custom-box {
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #0073aa;
    background-color: #f8f9fa;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.custom-box:hover {
    transform: translateY(-2px);
}

.box-icon {
    font-size: 24px;
    margin-right: 15px;
    float: left;
    line-height: 1;
}

.box-content {
    overflow: hidden;
}

.box-content p:last-child {
    margin-bottom: 0;
}

/* Tamaños de boxes */
.box-size-small {
    padding: 15px 20px;
}

.box-size-medium {
    padding: 25px;
}

.box-size-large {
    padding: 30px;
    font-size: 1.05em;
}

.box-size-xlarge {
    padding: 40px;
    font-size: 1.1em;
}

/* Box con borde completo */
.custom-box[style*="border:"] {
    border-left: none !important;
}

/* Box con borde superior */
.custom-box[style*="border-top:"] {
    border-left: none !important;
}

/* Boxes por tipo - COLORES ACTUALIZADOS */
.custom-box-info {
    border-color: #0073aa !important;
    background-color: #e7f3ff;
    color: #004170;
}

.custom-box-success {
    border-color: #28a745 !important;
    background-color: #f0f9f0;
    color: #155724;
}

.custom-box-warning {
    border-color: #ffc107 !important;
    background-color: #fff8e5;
    color: #856404;
}

.custom-box-error {
    border-color: #dc3545 !important;
    background-color: #ffeaea;
    color: #721c24;
}

.custom-box-primary {
    border-color: #007bff !important;
    background-color: #e3f2fd;
    color: #004085;
}

.custom-box-secondary {
    border-color: #6c757d !important;
    background-color: #f8f9fa;
    color: #383d41;
}

.custom-box-dark {
    border-color: #343a40 !important;
    background-color: #d6d8d9;
    color: #1b1e21;
}

.custom-box-light {
    border-color: #f8f9fa !important;
    background-color: #fefefe;
    color: #818182;
    border-color: #e9ecef !important;
}

.custom-box-purple {
    border-color: #6f42c1 !important;
    background-color: #f3e8fd;
    color: #4a2d7a;
}

.custom-box-pink {
    border-color: #e83e8c !important;
    background-color: #fce4ec;
    color: #881c4f;
}

.custom-box-teal {
    border-color: #20c997 !important;
    background-color: #e8f6f1;
    color: #0c5460;
}

.custom-box-orange {
    border-color: #fd7e14 !important;
    background-color: #fff3e5;
    color: #84410c;
}

/* Box Gradient - Gradientes modernos */
.custom-box.gradient-info {
    background: linear-gradient(135deg, #e7f3ff 0%, #d4e7ff 100%);
    border-color: #0073aa !important;
    color: #004170;
}

.custom-box.gradient-success {
    background: linear-gradient(135deg, #f0f9f0 0%, #e1f5e1 100%);
    border-color: #28a745 !important;
    color: #155724;
}

.custom-box.gradient-warning {
    background: linear-gradient(135deg, #fff8e5 0%, #ffefcc 100%);
    border-color: #ffc107 !important;
    color: #856404;
}

.custom-box.gradient-purple {
    background: linear-gradient(135deg, #f3e8fd 0%, #e9d5ff 100%);
    border-color: #6f42c1 !important;
    color: #4a2d7a;
}

/* Box con sombra */
.custom-box.shadow-box {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Box redondeado */
.custom-box.rounded-box {
    border-radius: 12px;
}

/* Box con icono centrado */
.custom-box.icon-center {
    text-align: center;
}

.custom-box.icon-center .box-icon {
    float: none;
    display: block;
    margin: 0 auto 15px auto;
    font-size: 32px;
}

/* Efectos hover para boxes */
.custom-box.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.custom-box.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.3);
}

/* ===== ESTILOS PARA QUOTE ===== */
.custom-quote {
    padding: 30px 40px;
    margin: 25px 0;
    border-left: 4px solid #0073aa;
    background-color: #f8f9fa;
    font-style: italic;
    position: relative;
    line-height: 1.7;
}

.custom-quote-left {
    text-align: left;
}

.custom-quote-center {
    text-align: center;
    border-left: none;
    border-top: 4px solid #0073aa;
}

.custom-quote-right {
    text-align: right;
    border-left: none;
    border-right: 4px solid #0073aa;
}

.quote-icon {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 15px;
    line-height: 1;
}

.quote-content {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.quote-footer {
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    text-align: right;
}

.quote-footer cite {
    font-style: normal;
    color: #0073aa;
}

.quote-source {
    display: block;
    font-weight: normal;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* ===== ESTILOS PARA TABS ===== */
.custom-tabs {
    margin: 25px 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

/* Estilo por defecto */
.tabs-style-default .tab-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tabs-style-default .tab-nav-item {
    margin: 0;
}

.tabs-style-default .tab-nav-item a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    background: transparent;
    border: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tabs-style-default .tab-nav-item.active a {
    background: #fff;
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.tabs-style-default .tab-contents {
    background: #fff;
    padding: 0;
}

.tabs-style-default .tab-content {
    display: none;
    padding: 25px;
}

.tabs-style-default .tab-content.active {
    display: block;
}

/* Estilo moderno */
.tabs-style-modern .tab-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tabs-style-modern .tab-nav-item a {
    color: rgba(255, 255, 255, 0.8);
}

.tabs-style-modern .tab-nav-item.active a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Estilo minimal */
.tabs-style-minimal .tab-nav {
    background: transparent;
    border-bottom: 2px solid #f1f3f4;
}

.tabs-style-minimal .tab-nav-item a {
    border: none;
    border-bottom: 2px solid transparent;
}

.tabs-style-minimal .tab-nav-item.active a {
    background: transparent;
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.tab-icon {
    margin-right: 8px;
}

/* ===== ESTILOS PARA ACORDEÓN ===== */
.custom-accordion {
    margin: 25px 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e9ecef;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    padding: 20px 25px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-title:hover {
    background: #e9ecef;
}

.accordion-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.accordion-icon:before,
.accordion-icon:after {
    content: '';
    position: absolute;
    background: #6c757d;
    transition: all 0.3s ease;
}

.accordion-icon:before {
    width: 16px;
    height: 2px;
    top: 7px;
    left: 0;
}

.accordion-icon:after {
    width: 2px;
    height: 16px;
    top: 0;
    left: 7px;
}

.accordion-item.active .accordion-icon:after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fff;
}

.accordion-item.active .accordion-content {
    padding: 25px;
    max-height: 1000px;
}

/* Estilo moderno para acordeón */
.accordion-style-modern .accordion-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.accordion-style-modern .accordion-icon:before,
.accordion-style-modern .accordion-icon:after {
    background: white;
}

/* Estilo con bordes */
.accordion-style-bordered .accordion-item {
    margin: 10px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.accordion-style-bordered .accordion-item:not(:last-child) {
    margin-bottom: 10px;
}

.accordion-style-bordered .accordion-title {
    border-radius: 8px 8px 0 0;
}

.item-icon {
    margin-right: 10px;
}

/* ===== ESTILOS PARA BARRA DE TÍTULOS ===== */
.custom-title-bar {
    padding: 20px 25px;
    margin: 25px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #0073aa;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.custom-title-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.custom-title-bar > * {
    position: relative;
    z-index: 2;
}

.title-align-left {
    text-align: left;
}

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

.title-align-right {
    text-align: right;
}

.title-icon {
    margin-right: 15px;
    font-size: 1.2em;
}

.title-underline {
    border-bottom: 3px solid currentColor;
    padding-bottom: 10px;
}

/* ===== ESTILOS PARA BOTONES ===== */
.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 8px 5px;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    gap: 8px;
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tamaños de botones */
.button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.button-medium {
    padding: 12px 24px;
    font-size: 16px;
}

.button-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Colores de botones */
.button-primary {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.button-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.button-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.button-warning {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.button-error {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.button-info {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

/* Botones outline */
.button-outline {
    background: transparent;
}

.button-outline.button-primary {
    color: #0073aa;
}

.button-outline.button-secondary {
    color: #6c757d;
}

.button-outline.button-success {
    color: #28a745;
}

.button-outline.button-warning {
    color: #ffc107;
}

.button-outline.button-error {
    color: #dc3545;
}

.button-outline.button-info {
    color: #17a2b8;
}

/* Botón en bloque */
.button-block {
    display: flex;
    width: 100%;
    margin: 10px 0;
}

.button-icon {
    font-size: 1.1em;
}

/* ===== ESTILOS RESPONSIVOS ===== */
@media (max-width: 768px) {
    .custom-box {
        padding: 20px;
        margin: 15px 0;
    }
    
    .box-icon {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        text-align: center;
    }
    
    .custom-tabs .tab-nav {
        flex-direction: column;
    }
    
    .custom-tabs .tab-nav-item a {
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    .custom-button {
        display: flex;
        width: 100%;
        margin: 10px 0;
    }
    
    .custom-quote {
        padding: 20px;
    }
    
    .quote-icon {
        font-size: 36px;
    }
    
    .accordion-title {
        padding: 15px 20px;
    }
    
    .accordion-item.active .accordion-content {
        padding: 20px;
    }
}

/* Limpiar floats */
.custom-box:after,
.custom-quote:after {
    content: "";
    display: table;
    clear: both;
}