/* Estilos responsivos para los dominios */

/* Estilos base para los dominios */
.domain-boxes {
    width: 100%;
    padding: 20px 15px;
}

.domain-boxes .row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.domain-boxes .row > [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 25px;
}

.domain-boxes .box {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: visible;
}

.domain-boxes .box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.domain-boxes .box-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.domain-boxes .domain-image {
    max-width: 80px;
    height: 60px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}

.domain-boxes .domain-extension {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: block;
    margin: 10px 0;
}

.domain-boxes .price {
    font-size: 14px;
    color: #666;
}

.domain-boxes .price .text:last-child {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Tags de promoción */
.hot-tag, .sale-tag, .new-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.hot-tag {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
}

.sale-tag {
    background: linear-gradient(45deg, #2ed573, #1dd1a1);
    color: white;
}

.new-tag {
    background: linear-gradient(45deg, #3742fa, #2f3542);
    color: white;
}

/* Responsive Design */

/* Tablets (768px - 991px) */
@media only screen and (max-width: 991.98px) {
    .domain-boxes .box {
        padding: 18px 12px;
        margin-bottom: 12px;
    }
    
    .domain-boxes .domain-image {
        max-width: 70px;
        height: 50px;
    }
    
    .domain-boxes .domain-extension {
        font-size: 18px;
    }
    
    .domain-boxes .box-title {
        font-size: 16px;
    }
}

/* Mobile Large (576px - 767px) */
@media only screen and (max-width: 767.98px) {
    /* OCULTAR COMPLETAMENTE LA SECCIÓN DE DOMINIOS EN MÓVIL */
    .domain-boxes,
    #domain-boxes,
    .boxes,
    header .boxes,
    header #domain-boxes,
    .domain-search,
    .domain-section,
    section.domain-boxes,
    div[id*="domain"],
    div[class*="domain"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Backup: ocultar cualquier elemento que contenga dominios */
    *[class*="domain"],
    *[id*="domain"] {
        display: none !important;
    }
    
    .domain-boxes .row {
        margin: 0 -10px;
        justify-content: center;
        gap: 15px;
    }
    
    .domain-boxes .row > [class*="col-"] {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .domain-boxes .box {
        padding: 20px 15px;
        margin-bottom: 10px;
        border-radius: 12px;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }
    
    .domain-boxes .box:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    }
    
    .domain-boxes .domain-image {
        max-width: 65px;
        height: 50px;
        margin: 8px auto 12px;
        object-fit: contain;
    }
    
    .domain-boxes .domain-extension {
        font-size: 18px;
        margin: 8px 0 12px;
        font-weight: 600;
        color: #333;
    }
    
    .domain-boxes .box-title {
        font-size: 16px;
        margin-bottom: 12px;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .domain-boxes .price {
        font-size: 13px;
        margin-top: auto;
    }
    
    .domain-boxes .price .text:first-child {
        font-size: 11px;
        color: #666;
        margin-bottom: 3px;
    }
    
    .domain-boxes .price .text:last-child {
        font-size: 16px;
        font-weight: 700;
        color: #007bff;
    }
    
    .hot-tag, .sale-tag, .new-tag {
        top: -6px;
        right: -6px;
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 12px;
        font-weight: 600;
    }
}

/* Mobile Small (hasta 575px) */
@media only screen and (max-width: 575.98px) {
    .domain-boxes .row {
        margin: 0 -8px;
        justify-content: center;
        gap: 12px;
    }
    
    .domain-boxes .row > [class*="col-"] {
        padding: 0 8px;
        margin-bottom: 15px;
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
    
    .domain-boxes .box {
        padding: 18px 12px;
        margin-bottom: 8px;
        border-radius: 10px;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
        border: 1px solid #e9ecef;
    }
    
    .domain-boxes .domain-image {
        max-width: 55px;
        height: 40px;
        margin: 5px auto 10px;
        object-fit: contain;
    }
    
    .domain-boxes .domain-extension {
        font-size: 16px;
        margin: 5px 0 10px;
        font-weight: 600;
        color: #333;
    }
    
    .domain-boxes .box-title {
        font-size: 14px;
        margin-bottom: 10px;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .domain-boxes .price {
        font-size: 12px;
        margin-top: auto;
    }
    
    .domain-boxes .price .text:first-child {
        font-size: 10px;
        color: #666;
        margin-bottom: 2px;
    }
    
    .domain-boxes .price .text:last-child {
        font-size: 14px;
        font-weight: 700;
        color: #007bff;
    }
    
    .hot-tag, .sale-tag, .new-tag {
        top: -5px;
        right: -5px;
        padding: 3px 6px;
        font-size: 9px;
        border-radius: 10px;
        font-weight: 600;
    }
}

/* Extra Small Mobile (hasta 400px) */
@media only screen and (max-width: 400px) {
    .domain-boxes .box {
        padding: 10px 6px;
        min-height: 110px;
    }
    
    .domain-boxes .domain-image {
        max-width: 45px;
        height: 30px;
    }
    
    .domain-boxes .domain-extension {
        font-size: 12px;
    }
    
    .domain-boxes .box-title {
        font-size: 11px;
    }
    
    .domain-boxes .price {
        font-size: 10px;
    }
    
    .domain-boxes .price .text:last-child {
        font-size: 12px;
    }
}

/* Mejoras adicionales para la experiencia móvil */
@media only screen and (max-width: 767.98px) {
    /* Mejorar el espaciado del contenedor principal */
    .domain-boxes {
        padding: 25px 15px;
        overflow-x: hidden;
    }
    
    header .boxes {
        padding: 0 15px;
    }
    
    /* Añadir más espacio entre filas */
    .domain-boxes .row {
        row-gap: 20px;
    }
    
    /* Mejorar la legibilidad en móviles */
    .domain-boxes .price .text:first-child {
        color: #888;
        font-size: 10px;
    }
    
    /* Ajustar el hover para dispositivos táctiles */
    .domain-boxes .box:active {
        transform: scale(0.98);
    }
}

/* Optimización para pantallas muy anchas */
@media only screen and (min-width: 1400px) {
    .domain-boxes .box {
        padding: 25px 20px;
    }
    
    .domain-boxes .domain-image {
        max-width: 90px;
        height: 70px;
    }
    
    .domain-boxes .domain-extension {
        font-size: 22px;
    }
    
    .domain-boxes .box-title {
        font-size: 20px;
    }
}